@elizaos/ui 2.0.0-alpha.52 → 2.0.0-alpha.521
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-companion/src/emotes/catalog.d.ts +31 -0
- package/apps/app-companion/src/emotes/catalog.d.ts.map +1 -0
- package/apps/app-companion/src/emotes/catalog.js +402 -0
- package/apps/app-companion/src/emotes/index.d.ts +2 -0
- package/apps/app-companion/src/emotes/index.d.ts.map +1 -0
- package/apps/app-companion/src/emotes/index.js +1 -0
- package/apps/app-elizamaker/src/drop-routes.d.ts +22 -0
- package/apps/app-elizamaker/src/drop-routes.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-routes.js +155 -0
- package/apps/app-elizamaker/src/drop-service-registry.d.ts +4 -0
- package/apps/app-elizamaker/src/drop-service-registry.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-service-registry.js +7 -0
- package/apps/app-elizamaker/src/drop-service.d.ts +31 -0
- package/apps/app-elizamaker/src/drop-service.d.ts.map +1 -0
- package/apps/app-elizamaker/src/drop-service.js +134 -0
- package/apps/app-elizamaker/src/index.d.ts +10 -0
- package/apps/app-elizamaker/src/index.d.ts.map +1 -0
- package/apps/app-elizamaker/src/index.js +7 -0
- package/apps/app-elizamaker/src/merkle-tree.d.ts +90 -0
- package/apps/app-elizamaker/src/merkle-tree.d.ts.map +1 -0
- package/apps/app-elizamaker/src/merkle-tree.js +174 -0
- package/apps/app-elizamaker/src/og-tracker.d.ts +28 -0
- package/apps/app-elizamaker/src/og-tracker.d.ts.map +1 -0
- package/apps/app-elizamaker/src/og-tracker.js +60 -0
- package/apps/app-elizamaker/src/plugin.d.ts +4 -0
- package/apps/app-elizamaker/src/plugin.d.ts.map +1 -0
- package/apps/app-elizamaker/src/plugin.js +80 -0
- package/apps/app-elizamaker/src/twitter-verify.d.ts +25 -0
- package/apps/app-elizamaker/src/twitter-verify.d.ts.map +1 -0
- package/apps/app-elizamaker/src/twitter-verify.js +167 -0
- package/apps/app-lifeops/src/actions/website-blocker.d.ts +8 -0
- package/apps/app-lifeops/src/actions/website-blocker.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/website-blocker.js +832 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts +28 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-repo.js +62 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts +52 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/activity-tracker-reporting.js +129 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts +10 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/profile-metadata.js +25 -0
- package/apps/app-lifeops/src/activity-profile/redactor.d.ts +18 -0
- package/apps/app-lifeops/src/activity-profile/redactor.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/redactor.js +39 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts +8 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/system-inactivity-apps.js +75 -0
- package/apps/app-lifeops/src/activity-profile/types.d.ts +89 -0
- package/apps/app-lifeops/src/activity-profile/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/activity-profile/types.js +29 -0
- package/apps/app-lifeops/src/contracts/index.d.ts +3 -0
- package/apps/app-lifeops/src/contracts/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/contracts/index.js +2 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts +7 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/channel-deep-links.js +108 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts +47 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/message-fetcher.js +445 -0
- package/apps/app-lifeops/src/inbox/types.d.ts +118 -0
- package/apps/app-lifeops/src/inbox/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/inbox/types.js +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts +22 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.js +72 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts +58 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/apple-reminders.js +325 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/awake-probability.js +169 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts +47 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/bill-extraction.js +355 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-extension-store.js +181 -0
- package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts +16 -0
- package/apps/app-lifeops/src/lifeops/browser-readiness.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-readiness.js +74 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/browser-session-lifecycle.js +267 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/checkin-service.js +975 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts +18 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/sleep-cycle-dispatch.js +26 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.d.ts +78 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/checkin/types.js +7 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts +45 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/circadian-rules.js +291 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts +31 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/continuity-probe.js +187 -0
- package/apps/app-lifeops/src/lifeops/defaults.d.ts +24 -0
- package/apps/app-lifeops/src/lifeops/defaults.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/defaults.js +212 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts +109 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/discord-browser-scraper.js +536 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts +33 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/discord-desktop-cdp.js +521 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-classifier.js +337 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts +64 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-gmail.js +273 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts +67 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/email-unsubscribe-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts +34 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/enforcement-windows.js +103 -0
- package/apps/app-lifeops/src/lifeops/engine.d.ts +8 -0
- package/apps/app-lifeops/src/lifeops/engine.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/engine.js +393 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/fda-probe.js +70 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.d.ts +20 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.js +241 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts +144 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/feature-flags.types.js +178 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/goal-grounding.js +151 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/goal-semantic-evaluator.js +160 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-api-error.js +35 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts +67 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.js +299 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +32 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.js +88 -0
- package/apps/app-lifeops/src/lifeops/google-drive.d.ts +103 -0
- package/apps/app-lifeops/src/lifeops/google-drive.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-drive.js +271 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +16 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.js +122 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +76 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.js +691 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +172 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.js +351 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +65 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.js +614 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.js +107 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.d.ts +57 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-bridge.js +556 -0
- package/apps/app-lifeops/src/lifeops/health-connectors.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/health-connectors.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-connectors.js +962 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.d.ts +62 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/health-oauth.js +496 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts +99 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/imessage-bridge.js +556 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts +7 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/imessage-outbound-probe.js +67 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.js +426 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-csv-import.js +244 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-recurrence.js +218 -0
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts +158 -0
- package/apps/app-lifeops/src/lifeops/payment-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/payment-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts +110 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/paypal-managed-client.js +148 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts +86 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/plaid-managed-client.js +134 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts +51 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/priority-scoring.js +220 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts +32 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/redact-sensitive-data.js +123 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/relative-schedule-resolver.js +111 -0
- package/apps/app-lifeops/src/lifeops/relative-time.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/relative-time.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/relative-time.js +233 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts +506 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/repository.js +5204 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts +133 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-insight.js +769 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts +39 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-state.js +651 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts +35 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-client.js +184 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts +89 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schedule-sync-contracts.js +13 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/scheduler-task.js +165 -0
- package/apps/app-lifeops/src/lifeops/schema.d.ts +28558 -0
- package/apps/app-lifeops/src/lifeops/schema.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/schema.js +1148 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts +20 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/seed-routines.js +133 -0
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts +68 -0
- package/apps/app-lifeops/src/lifeops/service-constants.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-constants.js +130 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts +41 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-browser.js +296 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts +68 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-misc.js +493 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts +23 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-occurrence.js +240 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts +76 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-helpers-reminder.js +376 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-browser.js +689 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts +44 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-calendar.js +737 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts +55 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-core.js +443 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-definitions.js +375 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-discord.js +1115 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-dossier.js +262 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts +12 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-drive.js +231 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-email-unsubscribe.js +394 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts +42 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-gmail.js +1570 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts +22 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-goals.js +896 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts +10 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-google.js +873 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-health.js +582 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-imessage.js +423 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts +46 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-inbox.js +608 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts +6 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-payments.js +1047 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-relationships.js +109 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts +78 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-reminders.js +3170 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-scheduling.js +335 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-screentime.js +873 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-signal.js +424 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-sleep.js +174 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-status.js +433 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-subscriptions.js +826 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-telegram.js +325 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts +33 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-travel.js +274 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-whatsapp.js +243 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-workflows.js +775 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts +2 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x-read.js +350 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts +65 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-mixin-x.js +569 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts +43 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-calendar.js +305 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-connector.js +601 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts +95 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-gmail.js +977 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts +3 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-health.js +56 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts +9 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize-task.js +361 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.d.ts +27 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-normalize.js +193 -0
- package/apps/app-lifeops/src/lifeops/service-types.d.ts +59 -0
- package/apps/app-lifeops/src/lifeops/service-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service-types.js +8 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts +1345 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service.js +64 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts +36 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-auth.js +348 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts +68 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-local-client.js +236 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/signal-runtime-config.js +42 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts +38 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-cycle.js +448 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-episode-store.js +54 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-regularity.js +221 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts +48 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sleep-wake-events.js +150 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/social-taxonomy.js +273 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts +38 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/source-reliability.js +66 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts +26 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sql.js +140 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts +79 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-playbooks.js +852 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts +80 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/subscriptions-types.js +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts +69 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-auth.js +597 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts +122 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telegram-local-client.js +561 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telemetry-mapping.js +139 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts +21 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/telemetry-retention.js +19 -0
- package/apps/app-lifeops/src/lifeops/time-util.d.ts +10 -0
- package/apps/app-lifeops/src/lifeops/time-util.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/time-util.js +18 -0
- package/apps/app-lifeops/src/lifeops/time.d.ts +17 -0
- package/apps/app-lifeops/src/lifeops/time.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/time.js +132 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.d.ts +49 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/token-encryption.js +123 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts +181 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/travel-adapters/duffel.js +422 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts +46 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/travel-booking.types.js +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts +34 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.js +200 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/whatsapp-client.js +234 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts +124 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-managed-client.js +238 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts +41 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-poster.js +334 -0
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts +70 -0
- package/apps/app-lifeops/src/lifeops/x-reader.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-reader.js +269 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts +85 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x402-payment-handler.js +142 -0
- package/apps/app-lifeops/src/providers/website-blocker.d.ts +3 -0
- package/apps/app-lifeops/src/providers/website-blocker.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/website-blocker.js +116 -0
- package/apps/app-lifeops/src/public.d.ts +4 -0
- package/apps/app-lifeops/src/public.d.ts.map +1 -0
- package/apps/app-lifeops/src/public.js +3 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts +9 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/cloud-features-routes.js +171 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.d.ts +20 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/lifeops-routes.js +2411 -0
- package/apps/app-lifeops/src/routes/plugin.d.ts +3 -0
- package/apps/app-lifeops/src/routes/plugin.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/plugin.js +415 -0
- package/apps/app-lifeops/src/routes/sleep-routes.d.ts +3 -0
- package/apps/app-lifeops/src/routes/sleep-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/sleep-routes.js +109 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts +9 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/travel-provider-relay-routes.js +144 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts +7 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/website-blocker-routes.js +169 -0
- package/apps/app-lifeops/src/website-blocker/access.d.ts +8 -0
- package/apps/app-lifeops/src/website-blocker/access.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/access.js +45 -0
- package/apps/app-lifeops/src/website-blocker/engine.d.ts +137 -0
- package/apps/app-lifeops/src/website-blocker/engine.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/engine.js +1256 -0
- package/apps/app-lifeops/src/website-blocker/permissions.d.ts +9 -0
- package/apps/app-lifeops/src/website-blocker/permissions.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/permissions.js +1 -0
- package/apps/app-lifeops/src/website-blocker/public.d.ts +13 -0
- package/apps/app-lifeops/src/website-blocker/public.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/public.js +10 -0
- package/apps/app-lifeops/src/website-blocker/roles.d.ts +11 -0
- package/apps/app-lifeops/src/website-blocker/roles.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/roles.js +17 -0
- package/apps/app-lifeops/src/website-blocker/service.d.ts +21 -0
- package/apps/app-lifeops/src/website-blocker/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/website-blocker/service.js +268 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts +2 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-capability.js +1 -0
- package/apps/app-steward/src/api/wallet-dex-prices.d.ts +43 -0
- package/apps/app-steward/src/api/wallet-dex-prices.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-dex-prices.js +149 -0
- package/apps/app-steward/src/api/wallet-evm-balance.d.ts +66 -0
- package/apps/app-steward/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-evm-balance.js +666 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts +28 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-routes.js +525 -0
- package/apps/app-steward/src/api/wallet-rpc.d.ts +67 -0
- package/apps/app-steward/src/api/wallet-rpc.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-rpc.js +452 -0
- package/apps/app-steward/src/api/wallet.d.ts +60 -0
- package/apps/app-steward/src/api/wallet.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet.js +641 -0
- package/apps/app-steward/src/routes/server-wallet-trade.d.ts +27 -0
- package/apps/app-steward/src/routes/server-wallet-trade.d.ts.map +1 -0
- package/apps/app-steward/src/routes/server-wallet-trade.js +56 -0
- package/apps/app-steward/src/routes/wallet-core-routes.d.ts +16 -0
- package/apps/app-steward/src/routes/wallet-core-routes.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-core-routes.js +57 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts +44 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts.map +1 -0
- package/apps/app-steward/src/routes/wallet-export-guard.js +248 -0
- package/apps/app-steward/src/services/privy-wallets.d.ts +18 -0
- package/apps/app-steward/src/services/privy-wallets.d.ts.map +1 -0
- package/apps/app-steward/src/services/privy-wallets.js +225 -0
- package/apps/app-steward/src/services/steward-evm-account.d.ts +67 -0
- package/apps/app-steward/src/services/steward-evm-account.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-evm-account.js +309 -0
- package/apps/app-steward/src/services/steward-evm-bridge.d.ts +35 -0
- package/apps/app-steward/src/services/steward-evm-bridge.d.ts.map +1 -0
- package/apps/app-steward/src/services/steward-evm-bridge.js +101 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts +23 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coding-agents-auth-sanitize.js +39 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts +29 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coding-agents-preflight-normalize.js +45 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.d.ts +49 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-types.js +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts +46 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.d.ts.map +1 -0
- package/apps/app-task-coordinator/src/api/coordinator-wiring.js +108 -0
- package/apps/app-training/src/backends/atropos.d.ts +31 -0
- package/apps/app-training/src/backends/atropos.d.ts.map +1 -0
- package/apps/app-training/src/backends/atropos.js +61 -0
- package/apps/app-training/src/backends/native.d.ts +50 -0
- package/apps/app-training/src/backends/native.d.ts.map +1 -0
- package/apps/app-training/src/backends/native.js +130 -0
- package/apps/app-training/src/backends/tinker.d.ts +27 -0
- package/apps/app-training/src/backends/tinker.d.ts.map +1 -0
- package/apps/app-training/src/backends/tinker.js +56 -0
- package/apps/app-training/src/core/context-audit.d.ts +51 -0
- package/apps/app-training/src/core/context-audit.d.ts.map +1 -0
- package/apps/app-training/src/core/context-audit.js +141 -0
- package/apps/app-training/src/core/context-catalog.d.ts +47 -0
- package/apps/app-training/src/core/context-catalog.d.ts.map +1 -0
- package/apps/app-training/src/core/context-catalog.js +265 -0
- package/apps/app-training/src/core/context-types.d.ts +3 -0
- package/apps/app-training/src/core/context-types.d.ts.map +1 -0
- package/apps/app-training/src/core/context-types.js +11 -0
- package/apps/app-training/src/core/dataset-generator.d.ts +125 -0
- package/apps/app-training/src/core/dataset-generator.d.ts.map +1 -0
- package/apps/app-training/src/core/dataset-generator.js +703 -0
- package/apps/app-training/src/core/index.d.ts +13 -0
- package/apps/app-training/src/core/index.d.ts.map +1 -0
- package/apps/app-training/src/core/index.js +12 -0
- package/apps/app-training/src/core/privacy-filter.d.ts +73 -0
- package/apps/app-training/src/core/privacy-filter.d.ts.map +1 -0
- package/apps/app-training/src/core/privacy-filter.js +169 -0
- package/apps/app-training/src/core/replay-validator.d.ts +136 -0
- package/apps/app-training/src/core/replay-validator.d.ts.map +1 -0
- package/apps/app-training/src/core/replay-validator.js +305 -0
- package/apps/app-training/src/core/roleplay-executor.d.ts +123 -0
- package/apps/app-training/src/core/roleplay-executor.d.ts.map +1 -0
- package/apps/app-training/src/core/roleplay-executor.js +645 -0
- package/apps/app-training/src/core/roleplay-trajectories.d.ts +54 -0
- package/apps/app-training/src/core/roleplay-trajectories.d.ts.map +1 -0
- package/apps/app-training/src/core/roleplay-trajectories.js +73 -0
- package/apps/app-training/src/core/scenario-blueprints.d.ts +62 -0
- package/apps/app-training/src/core/scenario-blueprints.d.ts.map +1 -0
- package/apps/app-training/src/core/scenario-blueprints.js +790 -0
- package/apps/app-training/src/core/training-config.d.ts +52 -0
- package/apps/app-training/src/core/training-config.d.ts.map +1 -0
- package/apps/app-training/src/core/training-config.js +135 -0
- package/apps/app-training/src/core/training-orchestrator.d.ts +107 -0
- package/apps/app-training/src/core/training-orchestrator.d.ts.map +1 -0
- package/apps/app-training/src/core/training-orchestrator.js +413 -0
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts +38 -0
- package/apps/app-training/src/core/trajectory-task-datasets.d.ts.map +1 -0
- package/apps/app-training/src/core/trajectory-task-datasets.js +300 -0
- package/apps/app-training/src/core/vertex-tuning.d.ts +139 -0
- package/apps/app-training/src/core/vertex-tuning.d.ts.map +1 -0
- package/apps/app-training/src/core/vertex-tuning.js +268 -0
- package/apps/app-training/src/index.d.ts +4 -0
- package/apps/app-training/src/index.d.ts.map +1 -0
- package/apps/app-training/src/index.js +3 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts +42 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/bootstrap-fewshot.js +94 -0
- package/apps/app-training/src/optimizers/index.d.ts +6 -0
- package/apps/app-training/src/optimizers/index.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/index.js +4 -0
- package/apps/app-training/src/optimizers/instruction-search.d.ts +39 -0
- package/apps/app-training/src/optimizers/instruction-search.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/instruction-search.js +87 -0
- package/apps/app-training/src/optimizers/prompt-evolution.d.ts +39 -0
- package/apps/app-training/src/optimizers/prompt-evolution.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/prompt-evolution.js +116 -0
- package/apps/app-training/src/optimizers/scoring.d.ts +80 -0
- package/apps/app-training/src/optimizers/scoring.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/scoring.js +151 -0
- package/apps/app-training/src/optimizers/types.d.ts +105 -0
- package/apps/app-training/src/optimizers/types.d.ts.map +1 -0
- package/apps/app-training/src/optimizers/types.js +17 -0
- package/apps/app-training/src/routes/index.d.ts +3 -0
- package/apps/app-training/src/routes/index.d.ts.map +1 -0
- package/apps/app-training/src/routes/index.js +2 -0
- package/apps/app-training/src/routes/training-routes.d.ts +11 -0
- package/apps/app-training/src/routes/training-routes.d.ts.map +1 -0
- package/apps/app-training/src/routes/training-routes.js +777 -0
- package/apps/app-training/src/routes/trajectory-routes.d.ts +19 -0
- package/apps/app-training/src/routes/trajectory-routes.d.ts.map +1 -0
- package/apps/app-training/src/routes/trajectory-routes.js +912 -0
- package/apps/app-training/src/services/index.d.ts +5 -0
- package/apps/app-training/src/services/index.d.ts.map +1 -0
- package/apps/app-training/src/services/index.js +3 -0
- package/apps/app-training/src/services/training-backend-check.d.ts +8 -0
- package/apps/app-training/src/services/training-backend-check.d.ts.map +1 -0
- package/apps/app-training/src/services/training-backend-check.js +28 -0
- package/apps/app-training/src/services/training-service-like.d.ts +39 -0
- package/apps/app-training/src/services/training-service-like.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service-like.js +1 -0
- package/apps/app-training/src/services/training-service.d.ts +46 -0
- package/apps/app-training/src/services/training-service.d.ts.map +1 -0
- package/apps/app-training/src/services/training-service.js +109 -0
- package/apps/app-training/src/services/training-trigger.d.ts +180 -0
- package/apps/app-training/src/services/training-trigger.d.ts.map +1 -0
- package/apps/app-training/src/services/training-trigger.js +385 -0
- package/package.json +78 -51
- package/packages/agent/src/actions/agent-inbox.d.ts +14 -0
- package/packages/agent/src/actions/agent-inbox.d.ts.map +1 -0
- package/packages/agent/src/actions/agent-inbox.js +124 -0
- package/packages/agent/src/actions/browser-session.d.ts +3 -0
- package/packages/agent/src/actions/browser-session.d.ts.map +1 -0
- package/packages/agent/src/actions/browser-session.js +305 -0
- package/packages/agent/src/actions/configure-plugin.d.ts +11 -0
- package/packages/agent/src/actions/configure-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/configure-plugin.js +137 -0
- package/packages/agent/src/actions/connector-control.d.ts +24 -0
- package/packages/agent/src/actions/connector-control.d.ts.map +1 -0
- package/packages/agent/src/actions/connector-control.js +479 -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 +256 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts +17 -0
- package/packages/agent/src/actions/context-signal-lexicon.d.ts.map +1 -0
- package/packages/agent/src/actions/context-signal-lexicon.js +212 -0
- package/packages/agent/src/actions/context-signal.d.ts +46 -0
- package/packages/agent/src/actions/context-signal.d.ts.map +1 -0
- package/packages/agent/src/actions/context-signal.js +134 -0
- package/packages/agent/src/actions/database.d.ts +15 -0
- package/packages/agent/src/actions/database.d.ts.map +1 -0
- package/packages/agent/src/actions/database.js +473 -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 +80 -0
- package/packages/agent/src/actions/entity-actions.d.ts +7 -0
- package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/entity-actions.js +1016 -0
- package/packages/agent/src/actions/extract-page.d.ts +3 -0
- package/packages/agent/src/actions/extract-page.d.ts.map +1 -0
- package/packages/agent/src/actions/extract-page.js +162 -0
- package/packages/agent/src/actions/extract-params.d.ts +87 -0
- package/packages/agent/src/actions/extract-params.d.ts.map +1 -0
- package/packages/agent/src/actions/extract-params.js +194 -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 +107 -0
- package/packages/agent/src/actions/grounded-action-reply.d.ts +22 -0
- package/packages/agent/src/actions/grounded-action-reply.d.ts.map +1 -0
- package/packages/agent/src/actions/grounded-action-reply.js +288 -0
- package/packages/agent/src/actions/index.d.ts +26 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -0
- package/packages/agent/src/actions/index.js +25 -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 +97 -0
- package/packages/agent/src/actions/launchpad-launch.d.ts +16 -0
- package/packages/agent/src/actions/launchpad-launch.d.ts.map +1 -0
- package/packages/agent/src/actions/launchpad-launch.js +207 -0
- 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 +79 -0
- package/packages/agent/src/actions/list-installed-plugins.d.ts +11 -0
- package/packages/agent/src/actions/list-installed-plugins.d.ts.map +1 -0
- package/packages/agent/src/actions/list-installed-plugins.js +142 -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 +126 -0
- package/packages/agent/src/actions/logs.d.ts +12 -0
- package/packages/agent/src/actions/logs.d.ts.map +1 -0
- package/packages/agent/src/actions/logs.js +317 -0
- package/packages/agent/src/actions/manage-tasks.d.ts +8 -0
- package/packages/agent/src/actions/manage-tasks.d.ts.map +1 -0
- package/packages/agent/src/actions/manage-tasks.js +323 -0
- 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 +504 -0
- package/packages/agent/src/actions/memories.d.ts +12 -0
- package/packages/agent/src/actions/memories.d.ts.map +1 -0
- package/packages/agent/src/actions/memories.js +310 -0
- package/packages/agent/src/actions/page-action-groups.d.ts +17 -0
- package/packages/agent/src/actions/page-action-groups.d.ts.map +1 -0
- package/packages/agent/src/actions/page-action-groups.js +171 -0
- package/packages/agent/src/actions/read-channel.d.ts +3 -0
- package/packages/agent/src/actions/read-channel.d.ts.map +1 -0
- package/packages/agent/src/actions/read-channel.js +265 -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 +269 -0
- package/packages/agent/src/actions/recent-conversation-texts.d.ts +9 -0
- package/packages/agent/src/actions/recent-conversation-texts.d.ts.map +1 -0
- package/packages/agent/src/actions/recent-conversation-texts.js +76 -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 +79 -0
- package/packages/agent/src/actions/restart.d.ts +19 -0
- package/packages/agent/src/actions/restart.d.ts.map +1 -0
- package/packages/agent/src/actions/restart.js +139 -0
- package/packages/agent/src/actions/runtime.d.ts +14 -0
- package/packages/agent/src/actions/runtime.d.ts.map +1 -0
- package/packages/agent/src/actions/runtime.js +287 -0
- package/packages/agent/src/actions/scratchpad.d.ts +7 -0
- package/packages/agent/src/actions/scratchpad.d.ts.map +1 -0
- package/packages/agent/src/actions/scratchpad.js +409 -0
- package/packages/agent/src/actions/search-conversations.d.ts +3 -0
- package/packages/agent/src/actions/search-conversations.d.ts.map +1 -0
- package/packages/agent/src/actions/search-conversations.js +222 -0
- package/packages/agent/src/actions/send-admin-message.d.ts +3 -0
- package/packages/agent/src/actions/send-admin-message.d.ts.map +1 -0
- package/packages/agent/src/actions/send-admin-message.js +136 -0
- package/packages/agent/src/actions/send-message.d.ts +4 -0
- package/packages/agent/src/actions/send-message.d.ts.map +1 -0
- package/packages/agent/src/actions/send-message.js +410 -0
- package/packages/agent/src/actions/set-user-name.d.ts +13 -0
- package/packages/agent/src/actions/set-user-name.d.ts.map +1 -0
- package/packages/agent/src/actions/set-user-name.js +106 -0
- package/packages/agent/src/actions/settings-actions.d.ts +28 -0
- package/packages/agent/src/actions/settings-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/settings-actions.js +564 -0
- package/packages/agent/src/actions/skill-command.d.ts +20 -0
- package/packages/agent/src/actions/skill-command.d.ts.map +1 -0
- package/packages/agent/src/actions/skill-command.js +142 -0
- package/packages/agent/src/actions/stream-control.d.ts +11 -0
- package/packages/agent/src/actions/stream-control.d.ts.map +1 -0
- package/packages/agent/src/actions/stream-control.js +182 -0
- 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 +76 -0
- package/packages/agent/src/actions/tasks-coding.d.ts +10 -0
- package/packages/agent/src/actions/tasks-coding.d.ts.map +1 -0
- package/packages/agent/src/actions/tasks-coding.js +171 -0
- package/packages/agent/src/actions/terminal.d.ts +15 -0
- package/packages/agent/src/actions/terminal.d.ts.map +1 -0
- package/packages/agent/src/actions/terminal.js +283 -0
- package/packages/agent/src/actions/toggle-plugin.d.ts +11 -0
- package/packages/agent/src/actions/toggle-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/toggle-plugin.js +125 -0
- package/packages/agent/src/actions/trajectories.d.ts +12 -0
- package/packages/agent/src/actions/trajectories.d.ts.map +1 -0
- package/packages/agent/src/actions/trajectories.js +347 -0
- package/packages/agent/src/actions/uninstall-plugin.d.ts +12 -0
- package/packages/agent/src/actions/uninstall-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/uninstall-plugin.js +110 -0
- package/packages/agent/src/actions/update-owner-name.d.ts +12 -0
- package/packages/agent/src/actions/update-owner-name.d.ts.map +1 -0
- package/packages/agent/src/actions/update-owner-name.js +83 -0
- package/packages/agent/src/actions/update-plugin.d.ts +10 -0
- package/packages/agent/src/actions/update-plugin.d.ts.map +1 -0
- package/packages/agent/src/actions/update-plugin.js +131 -0
- package/packages/agent/src/actions/web-search.d.ts +10 -0
- package/packages/agent/src/actions/web-search.d.ts.map +1 -0
- package/packages/agent/src/actions/web-search.js +282 -0
- package/packages/agent/src/actions/workflow/api.d.ts +24 -0
- package/packages/agent/src/actions/workflow/api.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/api.js +42 -0
- package/packages/agent/src/actions/workflow/create-workflow.d.ts +11 -0
- package/packages/agent/src/actions/workflow/create-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/create-workflow.js +120 -0
- package/packages/agent/src/actions/workflow/delete-workflow.d.ts +11 -0
- package/packages/agent/src/actions/workflow/delete-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/delete-workflow.js +100 -0
- package/packages/agent/src/actions/workflow/index.d.ts +5 -0
- package/packages/agent/src/actions/workflow/index.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/index.js +4 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts +12 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/promote-task-to-workflow.js +154 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts +10 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.d.ts.map +1 -0
- package/packages/agent/src/actions/workflow/toggle-workflow-active.js +132 -0
- package/packages/agent/src/api/accounts-routes.d.ts +39 -0
- package/packages/agent/src/api/accounts-routes.d.ts.map +1 -0
- package/packages/agent/src/api/accounts-routes.js +701 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts +39 -0
- package/packages/agent/src/api/agent-admin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-admin-routes.js +155 -0
- package/packages/agent/src/api/agent-lifecycle-routes.d.ts +16 -0
- package/packages/agent/src/api/agent-lifecycle-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-lifecycle-routes.js +94 -0
- package/packages/agent/src/api/agent-model.d.ts +5 -0
- package/packages/agent/src/api/agent-model.d.ts.map +1 -0
- package/packages/agent/src/api/agent-model.js +154 -0
- package/packages/agent/src/api/agent-status-routes.d.ts +96 -0
- package/packages/agent/src/api/agent-status-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-status-routes.js +274 -0
- package/packages/agent/src/api/agent-transfer-routes.d.ts +16 -0
- package/packages/agent/src/api/agent-transfer-routes.d.ts.map +1 -0
- package/packages/agent/src/api/agent-transfer-routes.js +124 -0
- package/packages/agent/src/api/app-package-routes.d.ts +7 -0
- package/packages/agent/src/api/app-package-routes.d.ts.map +1 -0
- package/packages/agent/src/api/app-package-routes.js +59 -0
- package/packages/agent/src/api/apps-routes.d.ts +32 -0
- package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
- package/packages/agent/src/api/apps-routes.js +982 -0
- package/packages/agent/src/api/auth-routes.d.ts +11 -0
- package/packages/agent/src/api/auth-routes.d.ts.map +1 -0
- package/packages/agent/src/api/auth-routes.js +74 -0
- package/packages/agent/src/api/avatar-routes.d.ts +11 -0
- package/packages/agent/src/api/avatar-routes.d.ts.map +1 -0
- package/packages/agent/src/api/avatar-routes.js +205 -0
- package/packages/agent/src/api/binance-skill-helpers.d.ts +26 -0
- package/packages/agent/src/api/binance-skill-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/binance-skill-helpers.js +785 -0
- package/packages/agent/src/api/bluebubbles-routes.d.ts +10 -0
- package/packages/agent/src/api/bluebubbles-routes.d.ts.map +1 -0
- package/packages/agent/src/api/bluebubbles-routes.js +129 -0
- package/packages/agent/src/api/browser-workspace-routes.d.ts +5 -0
- package/packages/agent/src/api/browser-workspace-routes.d.ts.map +1 -0
- package/packages/agent/src/api/browser-workspace-routes.js +100 -0
- package/packages/agent/src/api/bug-report-routes.d.ts +10 -0
- package/packages/agent/src/api/bug-report-routes.d.ts.map +1 -0
- package/packages/agent/src/api/bug-report-routes.js +271 -0
- package/packages/agent/src/api/character-routes.d.ts +52 -0
- package/packages/agent/src/api/character-routes.d.ts.map +1 -0
- package/packages/agent/src/api/character-routes.js +377 -0
- package/packages/agent/src/api/chat-augmentation.d.ts +70 -0
- package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
- package/packages/agent/src/api/chat-augmentation.js +465 -0
- package/packages/agent/src/api/chat-routes.d.ts +110 -0
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/chat-routes.js +1516 -0
- package/packages/agent/src/api/chat-text-helpers.d.ts +11 -0
- package/packages/agent/src/api/chat-text-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/chat-text-helpers.js +184 -0
- package/packages/agent/src/api/client-chat-admin.d.ts +19 -0
- package/packages/agent/src/api/client-chat-admin.d.ts.map +1 -0
- package/packages/agent/src/api/client-chat-admin.js +27 -0
- package/packages/agent/src/api/cloud-billing-routes.d.ts +9 -0
- package/packages/agent/src/api/cloud-billing-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-billing-routes.js +388 -0
- package/packages/agent/src/api/cloud-compat-routes.d.ts +10 -0
- package/packages/agent/src/api/cloud-compat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-compat-routes.js +212 -0
- package/packages/agent/src/api/cloud-provisioning.d.ts +14 -0
- package/packages/agent/src/api/cloud-provisioning.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-provisioning.js +30 -0
- package/packages/agent/src/api/cloud-relay-routes.d.ts +22 -0
- package/packages/agent/src/api/cloud-relay-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-relay-routes.js +53 -0
- package/packages/agent/src/api/cloud-routes.d.ts +83 -0
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-routes.js +635 -0
- package/packages/agent/src/api/cloud-status-routes.d.ts +15 -0
- package/packages/agent/src/api/cloud-status-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-status-routes.js +152 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.d.ts +12 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-fallback-routes.js +523 -0
- package/packages/agent/src/api/compat-utils.d.ts +49 -0
- package/packages/agent/src/api/compat-utils.d.ts.map +1 -0
- package/packages/agent/src/api/compat-utils.js +122 -0
- package/packages/agent/src/api/config-env.d.ts +43 -0
- package/packages/agent/src/api/config-env.d.ts.map +1 -0
- package/packages/agent/src/api/config-env.js +284 -0
- package/packages/agent/src/api/config-routes.d.ts +40 -0
- package/packages/agent/src/api/config-routes.d.ts.map +1 -0
- package/packages/agent/src/api/config-routes.js +433 -0
- package/packages/agent/src/api/connector-health.d.ts +42 -0
- package/packages/agent/src/api/connector-health.d.ts.map +1 -0
- package/packages/agent/src/api/connector-health.js +132 -0
- package/packages/agent/src/api/connector-routes.d.ts +29 -0
- package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
- package/packages/agent/src/api/connector-routes.js +137 -0
- package/packages/agent/src/api/conversation-metadata.d.ts +10 -0
- package/packages/agent/src/api/conversation-metadata.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-metadata.js +107 -0
- package/packages/agent/src/api/conversation-routes.d.ts +43 -0
- package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-routes.js +1198 -0
- package/packages/agent/src/api/credit-detection.d.ts +9 -0
- package/packages/agent/src/api/credit-detection.d.ts.map +1 -0
- package/packages/agent/src/api/credit-detection.js +47 -0
- package/packages/agent/src/api/curated-skills-routes.d.ts +22 -0
- package/packages/agent/src/api/curated-skills-routes.d.ts.map +1 -0
- package/packages/agent/src/api/curated-skills-routes.js +295 -0
- package/packages/agent/src/api/database.d.ts +35 -0
- package/packages/agent/src/api/database.d.ts.map +1 -0
- package/packages/agent/src/api/database.js +1141 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts +60 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
- package/packages/agent/src/api/diagnostics-routes.js +365 -0
- package/packages/agent/src/api/discord-avatar-cache.d.ts +10 -0
- package/packages/agent/src/api/discord-avatar-cache.d.ts.map +1 -0
- package/packages/agent/src/api/discord-avatar-cache.js +149 -0
- package/packages/agent/src/api/discord-profiles.d.ts +26 -0
- package/packages/agent/src/api/discord-profiles.d.ts.map +1 -0
- package/packages/agent/src/api/discord-profiles.js +279 -0
- package/packages/agent/src/api/early-logs.d.ts +29 -0
- package/packages/agent/src/api/early-logs.d.ts.map +1 -0
- package/packages/agent/src/api/early-logs.js +96 -0
- package/packages/agent/src/api/experience-routes.d.ts +8 -0
- package/packages/agent/src/api/experience-routes.d.ts.map +1 -0
- package/packages/agent/src/api/experience-routes.js +433 -0
- package/packages/agent/src/api/health-routes.d.ts +44 -0
- package/packages/agent/src/api/health-routes.d.ts.map +1 -0
- package/packages/agent/src/api/health-routes.js +449 -0
- package/packages/agent/src/api/http-helpers.d.ts +50 -0
- package/packages/agent/src/api/http-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/http-helpers.js +167 -0
- package/packages/agent/src/api/inbox-routes.d.ts +48 -0
- package/packages/agent/src/api/inbox-routes.d.ts.map +1 -0
- package/packages/agent/src/api/inbox-routes.js +1577 -0
- package/packages/agent/src/api/index.d.ts +58 -0
- package/packages/agent/src/api/index.d.ts.map +1 -0
- package/packages/agent/src/api/index.js +61 -0
- package/packages/agent/src/api/knowledge-routes.d.ts +2 -0
- package/packages/agent/src/api/knowledge-routes.d.ts.map +1 -0
- package/packages/agent/src/api/knowledge-routes.js +2 -0
- package/packages/agent/src/api/knowledge-service-loader.d.ts +2 -0
- package/packages/agent/src/api/knowledge-service-loader.d.ts.map +1 -0
- package/packages/agent/src/api/knowledge-service-loader.js +2 -0
- package/packages/agent/src/api/mcp-routes.d.ts +33 -0
- package/packages/agent/src/api/mcp-routes.d.ts.map +1 -0
- package/packages/agent/src/api/mcp-routes.js +186 -0
- package/packages/agent/src/api/memory-bounds.d.ts +51 -0
- package/packages/agent/src/api/memory-bounds.d.ts.map +1 -0
- package/packages/agent/src/api/memory-bounds.js +81 -0
- package/packages/agent/src/api/memory-routes.d.ts +9 -0
- package/packages/agent/src/api/memory-routes.d.ts.map +1 -0
- package/packages/agent/src/api/memory-routes.js +483 -0
- package/packages/agent/src/api/misc-routes.d.ts +64 -0
- package/packages/agent/src/api/misc-routes.d.ts.map +1 -0
- package/packages/agent/src/api/misc-routes.js +589 -0
- package/packages/agent/src/api/model-provider-helpers.d.ts +84 -0
- package/packages/agent/src/api/model-provider-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/model-provider-helpers.js +588 -0
- package/packages/agent/src/api/models-routes.d.ts +14 -0
- package/packages/agent/src/api/models-routes.d.ts.map +1 -0
- package/packages/agent/src/api/models-routes.js +37 -0
- package/packages/agent/src/api/music-player-route-fallback.d.ts +16 -0
- package/packages/agent/src/api/music-player-route-fallback.d.ts.map +1 -0
- package/packages/agent/src/api/music-player-route-fallback.js +65 -0
- package/packages/agent/src/api/nfa-routes.d.ts +5 -0
- package/packages/agent/src/api/nfa-routes.d.ts.map +1 -0
- package/packages/agent/src/api/nfa-routes.js +133 -0
- package/packages/agent/src/api/onboarding-routes.d.ts +50 -0
- package/packages/agent/src/api/onboarding-routes.d.ts.map +1 -0
- package/packages/agent/src/api/onboarding-routes.js +590 -0
- package/packages/agent/src/api/owner-contact-helpers.d.ts +39 -0
- package/packages/agent/src/api/owner-contact-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/owner-contact-helpers.js +47 -0
- package/packages/agent/src/api/parse-action-block.d.ts +35 -0
- package/packages/agent/src/api/parse-action-block.d.ts.map +1 -0
- package/packages/agent/src/api/parse-action-block.js +113 -0
- package/packages/agent/src/api/permissions-routes-extra.d.ts +30 -0
- package/packages/agent/src/api/permissions-routes-extra.d.ts.map +1 -0
- package/packages/agent/src/api/permissions-routes-extra.js +78 -0
- package/packages/agent/src/api/permissions-routes.d.ts +28 -0
- package/packages/agent/src/api/permissions-routes.d.ts.map +1 -0
- package/packages/agent/src/api/permissions-routes.js +180 -0
- package/packages/agent/src/api/plugin-discovery-helpers.d.ts +147 -0
- package/packages/agent/src/api/plugin-discovery-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-discovery-helpers.js +1136 -0
- package/packages/agent/src/api/plugin-routes.d.ts +127 -0
- package/packages/agent/src/api/plugin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-routes.js +1250 -0
- package/packages/agent/src/api/plugin-runtime-apply.d.ts +31 -0
- package/packages/agent/src/api/plugin-runtime-apply.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-runtime-apply.js +217 -0
- package/packages/agent/src/api/plugin-validation.d.ts +86 -0
- package/packages/agent/src/api/plugin-validation.d.ts.map +1 -0
- package/packages/agent/src/api/plugin-validation.js +259 -0
- package/packages/agent/src/api/provider-switch-config.d.ts +63 -0
- package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-config.js +721 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts +28 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-routes.js +127 -0
- package/packages/agent/src/api/rate-limiter.d.ts +29 -0
- package/packages/agent/src/api/rate-limiter.d.ts.map +1 -0
- package/packages/agent/src/api/rate-limiter.js +57 -0
- package/packages/agent/src/api/registry-routes.d.ts +29 -0
- package/packages/agent/src/api/registry-routes.d.ts.map +1 -0
- package/packages/agent/src/api/registry-routes.js +98 -0
- package/packages/agent/src/api/registry-service.d.ts +77 -0
- package/packages/agent/src/api/registry-service.d.ts.map +1 -0
- package/packages/agent/src/api/registry-service.js +190 -0
- package/packages/agent/src/api/relationships-routes.d.ts +7 -0
- package/packages/agent/src/api/relationships-routes.d.ts.map +1 -0
- package/packages/agent/src/api/relationships-routes.js +275 -0
- package/packages/agent/src/api/route-helpers.d.ts +16 -0
- package/packages/agent/src/api/route-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/route-helpers.js +1 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts +26 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/runtime-plugin-routes.js +196 -0
- package/packages/agent/src/api/sandbox-routes.d.ts +12 -0
- package/packages/agent/src/api/sandbox-routes.d.ts.map +1 -0
- package/packages/agent/src/api/sandbox-routes.js +1334 -0
- package/packages/agent/src/api/server-auth.d.ts +46 -0
- package/packages/agent/src/api/server-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-auth.js +509 -0
- package/packages/agent/src/api/server-helpers-auth.d.ts +40 -0
- package/packages/agent/src/api/server-helpers-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-auth.js +609 -0
- package/packages/agent/src/api/server-helpers-config.d.ts +37 -0
- package/packages/agent/src/api/server-helpers-config.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-config.js +295 -0
- package/packages/agent/src/api/server-helpers-fetch.d.ts +15 -0
- package/packages/agent/src/api/server-helpers-fetch.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-fetch.js +149 -0
- package/packages/agent/src/api/server-helpers-mcp.d.ts +12 -0
- package/packages/agent/src/api/server-helpers-mcp.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-mcp.js +315 -0
- package/packages/agent/src/api/server-helpers-plugin.d.ts +13 -0
- package/packages/agent/src/api/server-helpers-plugin.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-plugin.js +158 -0
- package/packages/agent/src/api/server-helpers-swarm.d.ts +59 -0
- package/packages/agent/src/api/server-helpers-swarm.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-swarm.js +416 -0
- package/packages/agent/src/api/server-helpers-wallet.d.ts +18 -0
- package/packages/agent/src/api/server-helpers-wallet.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers-wallet.js +178 -0
- package/packages/agent/src/api/server-helpers.d.ts +96 -0
- package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers.js +601 -0
- package/packages/agent/src/api/server-types.d.ts +238 -0
- package/packages/agent/src/api/server-types.d.ts.map +1 -0
- package/packages/agent/src/api/server-types.js +6 -0
- package/packages/agent/src/api/server.d.ts +61 -0
- package/packages/agent/src/api/server.d.ts.map +1 -0
- package/packages/agent/src/api/server.js +3227 -0
- package/packages/agent/src/api/signal-routes.d.ts +42 -0
- package/packages/agent/src/api/signal-routes.d.ts.map +1 -0
- package/packages/agent/src/api/signal-routes.js +231 -0
- package/packages/agent/src/api/skill-discovery-helpers.d.ts +80 -0
- package/packages/agent/src/api/skill-discovery-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/skill-discovery-helpers.js +383 -0
- package/packages/agent/src/api/skills-routes.d.ts +32 -0
- package/packages/agent/src/api/skills-routes.d.ts.map +1 -0
- package/packages/agent/src/api/skills-routes.js +975 -0
- package/packages/agent/src/api/static-file-server.d.ts +19 -0
- package/packages/agent/src/api/static-file-server.d.ts.map +1 -0
- package/packages/agent/src/api/static-file-server.js +233 -0
- package/packages/agent/src/api/stream-persistence.d.ts +64 -0
- package/packages/agent/src/api/stream-persistence.d.ts.map +1 -0
- package/packages/agent/src/api/stream-persistence.js +231 -0
- package/packages/agent/src/api/stream-route-state.d.ts +56 -0
- package/packages/agent/src/api/stream-route-state.d.ts.map +1 -0
- package/packages/agent/src/api/stream-route-state.js +1 -0
- package/packages/agent/src/api/stream-routes.d.ts +24 -0
- package/packages/agent/src/api/stream-routes.d.ts.map +1 -0
- package/packages/agent/src/api/stream-routes.js +728 -0
- package/packages/agent/src/api/streaming-text.d.ts +9 -0
- package/packages/agent/src/api/streaming-text.d.ts.map +1 -0
- package/packages/agent/src/api/streaming-text.js +85 -0
- package/packages/agent/src/api/streaming-types.d.ts +30 -0
- package/packages/agent/src/api/streaming-types.d.ts.map +1 -0
- package/packages/agent/src/api/streaming-types.js +1 -0
- package/packages/agent/src/api/subscription-routes.d.ts +20 -0
- package/packages/agent/src/api/subscription-routes.d.ts.map +1 -0
- package/packages/agent/src/api/subscription-routes.js +268 -0
- package/packages/agent/src/api/task-agent-message-routing.d.ts +10 -0
- package/packages/agent/src/api/task-agent-message-routing.d.ts.map +1 -0
- package/packages/agent/src/api/task-agent-message-routing.js +62 -0
- package/packages/agent/src/api/telegram-account-routes.d.ts +26 -0
- package/packages/agent/src/api/telegram-account-routes.d.ts.map +1 -0
- package/packages/agent/src/api/telegram-account-routes.js +229 -0
- package/packages/agent/src/api/terminal-run-limits.d.ts +5 -0
- package/packages/agent/src/api/terminal-run-limits.d.ts.map +1 -0
- package/packages/agent/src/api/terminal-run-limits.js +22 -0
- package/packages/agent/src/api/trade-safety.d.ts +35 -0
- package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
- package/packages/agent/src/api/trade-safety.js +62 -0
- package/packages/agent/src/api/training-backend-check.d.ts +2 -0
- package/packages/agent/src/api/training-backend-check.d.ts.map +1 -0
- package/packages/agent/src/api/training-backend-check.js +2 -0
- package/packages/agent/src/api/training-routes.d.ts +2 -0
- package/packages/agent/src/api/training-routes.d.ts.map +1 -0
- package/packages/agent/src/api/training-routes.js +2 -0
- package/packages/agent/src/api/training-service-like.d.ts +2 -0
- package/packages/agent/src/api/training-service-like.d.ts.map +1 -0
- package/packages/agent/src/api/training-service-like.js +1 -0
- package/packages/agent/src/api/trajectory-routes.d.ts +3 -0
- package/packages/agent/src/api/trajectory-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trajectory-routes.js +2 -0
- package/packages/agent/src/api/trigger-routes.d.ts +64 -0
- package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trigger-routes.js +431 -0
- package/packages/agent/src/api/tts-routes.d.ts +24 -0
- package/packages/agent/src/api/tts-routes.d.ts.map +1 -0
- package/packages/agent/src/api/tts-routes.js +200 -0
- package/packages/agent/src/api/tx-service.d.ts +53 -0
- package/packages/agent/src/api/tx-service.d.ts.map +1 -0
- package/packages/agent/src/api/tx-service.js +217 -0
- package/packages/agent/src/api/update-routes.d.ts +19 -0
- package/packages/agent/src/api/update-routes.d.ts.map +1 -0
- package/packages/agent/src/api/update-routes.js +54 -0
- package/packages/agent/src/api/wallet-capability.d.ts +32 -0
- package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-capability.js +189 -0
- package/packages/agent/src/api/wallet-env-sync.d.ts +2 -0
- package/packages/agent/src/api/wallet-env-sync.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-env-sync.js +108 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts +72 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-evm-balance.js +663 -0
- package/packages/agent/src/api/wallet-routes.d.ts +42 -0
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-routes.js +863 -0
- package/packages/agent/src/api/wallet-rpc.d.ts +73 -0
- package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-rpc.js +471 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts +31 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-trading-profile.js +565 -0
- package/packages/agent/src/api/wallet.d.ts +64 -0
- package/packages/agent/src/api/wallet.d.ts.map +1 -0
- package/packages/agent/src/api/wallet.js +782 -0
- package/packages/agent/src/api/whatsapp-routes.d.ts +39 -0
- package/packages/agent/src/api/whatsapp-routes.d.ts.map +1 -0
- package/packages/agent/src/api/whatsapp-routes.js +275 -0
- package/packages/agent/src/api/workbench-helpers.d.ts +39 -0
- package/packages/agent/src/api/workbench-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/workbench-helpers.js +141 -0
- package/packages/agent/src/api/workbench-routes.d.ts +53 -0
- package/packages/agent/src/api/workbench-routes.d.ts.map +1 -0
- package/packages/agent/src/api/workbench-routes.js +391 -0
- package/packages/agent/src/api/x-relay-routes.d.ts +27 -0
- package/packages/agent/src/api/x-relay-routes.d.ts.map +1 -0
- package/packages/agent/src/api/x-relay-routes.js +135 -0
- package/packages/agent/src/api/zip-utils.d.ts +8 -0
- package/packages/agent/src/api/zip-utils.d.ts.map +1 -0
- package/packages/agent/src/api/zip-utils.js +115 -0
- package/packages/agent/src/auth/account-storage.d.ts +48 -0
- package/packages/agent/src/auth/account-storage.d.ts.map +1 -0
- package/packages/agent/src/auth/account-storage.js +238 -0
- package/packages/agent/src/auth/anthropic.d.ts +24 -0
- package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
- package/packages/agent/src/auth/anthropic.js +38 -0
- package/packages/agent/src/auth/claude-code-stealth.d.ts +2 -0
- package/packages/agent/src/auth/claude-code-stealth.d.ts.map +1 -0
- package/packages/agent/src/auth/claude-code-stealth.js +114 -0
- package/packages/agent/src/auth/credentials.d.ts +95 -0
- package/packages/agent/src/auth/credentials.d.ts.map +1 -0
- package/packages/agent/src/auth/credentials.js +444 -0
- package/packages/agent/src/auth/index.d.ts +8 -0
- package/packages/agent/src/auth/index.d.ts.map +1 -0
- package/packages/agent/src/auth/index.js +7 -0
- package/packages/agent/src/auth/oauth-flow.d.ts +106 -0
- package/packages/agent/src/auth/oauth-flow.d.ts.map +1 -0
- package/packages/agent/src/auth/oauth-flow.js +349 -0
- package/packages/agent/src/auth/openai-codex.d.ts +27 -0
- package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
- package/packages/agent/src/auth/openai-codex.js +76 -0
- package/packages/agent/src/auth/refresh-mutex.d.ts +19 -0
- package/packages/agent/src/auth/refresh-mutex.d.ts.map +1 -0
- package/packages/agent/src/auth/refresh-mutex.js +33 -0
- package/packages/agent/src/auth/types.d.ts +18 -0
- package/packages/agent/src/auth/types.d.ts.map +1 -0
- package/packages/agent/src/auth/types.js +8 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts +48 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/anthropic-login.js +113 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts +26 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/openai-codex-login.js +342 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts +9 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.d.ts.map +1 -0
- package/packages/agent/src/auth/vendor/pi-oauth/pkce.js +21 -0
- package/packages/agent/src/awareness/index.d.ts +2 -0
- package/packages/agent/src/awareness/index.d.ts.map +1 -0
- package/packages/agent/src/awareness/index.js +1 -0
- package/packages/agent/src/awareness/registry.d.ts +27 -0
- package/packages/agent/src/awareness/registry.d.ts.map +1 -0
- package/packages/agent/src/awareness/registry.js +161 -0
- package/packages/agent/src/cli/parse-duration.d.ts +5 -0
- package/packages/agent/src/cli/parse-duration.d.ts.map +1 -0
- package/packages/agent/src/cli/parse-duration.js +27 -0
- package/packages/agent/src/cloud/auth.d.ts +19 -0
- package/packages/agent/src/cloud/auth.d.ts.map +1 -0
- package/packages/agent/src/cloud/auth.js +110 -0
- package/packages/agent/src/cloud/backup.d.ts +18 -0
- package/packages/agent/src/cloud/backup.d.ts.map +1 -0
- package/packages/agent/src/cloud/backup.js +42 -0
- package/packages/agent/src/cloud/base-url.d.ts +3 -0
- package/packages/agent/src/cloud/base-url.d.ts.map +1 -0
- package/packages/agent/src/cloud/base-url.js +53 -0
- package/packages/agent/src/cloud/bridge-client.d.ts +126 -0
- package/packages/agent/src/cloud/bridge-client.d.ts.map +1 -0
- package/packages/agent/src/cloud/bridge-client.js +380 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts +33 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-manager.js +130 -0
- package/packages/agent/src/cloud/cloud-proxy.d.ts +20 -0
- package/packages/agent/src/cloud/cloud-proxy.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-proxy.js +34 -0
- package/packages/agent/src/cloud/cloud-wallet.d.ts +92 -0
- package/packages/agent/src/cloud/cloud-wallet.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-wallet.js +199 -0
- package/packages/agent/src/cloud/index.d.ts +9 -0
- package/packages/agent/src/cloud/index.d.ts.map +1 -0
- package/packages/agent/src/cloud/index.js +8 -0
- package/packages/agent/src/cloud/reconnect.d.ts +26 -0
- package/packages/agent/src/cloud/reconnect.d.ts.map +1 -0
- package/packages/agent/src/cloud/reconnect.js +89 -0
- package/packages/agent/src/cloud/validate-url.d.ts +2 -0
- package/packages/agent/src/cloud/validate-url.d.ts.map +1 -0
- package/packages/agent/src/cloud/validate-url.js +162 -0
- package/packages/agent/src/config/character-schema.d.ts +25 -0
- package/packages/agent/src/config/character-schema.d.ts.map +1 -0
- package/packages/agent/src/config/character-schema.js +39 -0
- package/packages/agent/src/config/config.d.ts +6 -0
- package/packages/agent/src/config/config.d.ts.map +1 -0
- package/packages/agent/src/config/config.js +279 -0
- package/packages/agent/src/config/env-vars.d.ts +9 -0
- package/packages/agent/src/config/env-vars.d.ts.map +1 -0
- package/packages/agent/src/config/env-vars.js +284 -0
- package/packages/agent/src/config/feature-flags.d.ts +17 -0
- package/packages/agent/src/config/feature-flags.d.ts.map +1 -0
- package/packages/agent/src/config/feature-flags.js +37 -0
- package/packages/agent/src/config/includes.d.ts +26 -0
- package/packages/agent/src/config/includes.d.ts.map +1 -0
- package/packages/agent/src/config/includes.js +148 -0
- package/packages/agent/src/config/index.d.ts +20 -0
- package/packages/agent/src/config/index.d.ts.map +1 -0
- package/packages/agent/src/config/index.js +19 -0
- package/packages/agent/src/config/model-metadata.d.ts +20 -0
- package/packages/agent/src/config/model-metadata.d.ts.map +1 -0
- package/packages/agent/src/config/model-metadata.js +133 -0
- package/packages/agent/src/config/object-utils.d.ts +2 -0
- package/packages/agent/src/config/object-utils.d.ts.map +1 -0
- package/packages/agent/src/config/object-utils.js +6 -0
- package/packages/agent/src/config/owner-contacts.d.ts +42 -0
- package/packages/agent/src/config/owner-contacts.d.ts.map +1 -0
- package/packages/agent/src/config/owner-contacts.js +223 -0
- package/packages/agent/src/config/paths.d.ts +19 -0
- package/packages/agent/src/config/paths.d.ts.map +1 -0
- package/packages/agent/src/config/paths.js +115 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts +44 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-auto-enable.js +557 -0
- package/packages/agent/src/config/plugin-widgets.d.ts +29 -0
- package/packages/agent/src/config/plugin-widgets.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-widgets.js +61 -0
- package/packages/agent/src/config/schema.d.ts +87 -0
- package/packages/agent/src/config/schema.d.ts.map +1 -0
- package/packages/agent/src/config/schema.js +922 -0
- package/packages/agent/src/config/telegram-custom-commands.d.ts +25 -0
- package/packages/agent/src/config/telegram-custom-commands.d.ts.map +1 -0
- package/packages/agent/src/config/telegram-custom-commands.js +71 -0
- package/packages/agent/src/config/types.agent-defaults.d.ts +363 -0
- package/packages/agent/src/config/types.agent-defaults.d.ts.map +1 -0
- package/packages/agent/src/config/types.agent-defaults.js +1 -0
- package/packages/agent/src/config/types.agents.d.ts +114 -0
- package/packages/agent/src/config/types.agents.d.ts.map +1 -0
- package/packages/agent/src/config/types.agents.js +1 -0
- package/packages/agent/src/config/types.d.ts +8 -0
- package/packages/agent/src/config/types.d.ts.map +1 -0
- package/packages/agent/src/config/types.eliza.d.ts +716 -0
- package/packages/agent/src/config/types.eliza.d.ts.map +1 -0
- package/packages/agent/src/config/types.eliza.js +1 -0
- package/packages/agent/src/config/types.gateway.d.ts +216 -0
- package/packages/agent/src/config/types.gateway.d.ts.map +1 -0
- package/packages/agent/src/config/types.gateway.js +1 -0
- package/packages/agent/src/config/types.hooks.d.ts +107 -0
- package/packages/agent/src/config/types.hooks.d.ts.map +1 -0
- package/packages/agent/src/config/types.hooks.js +1 -0
- package/packages/agent/src/config/types.js +7 -0
- package/packages/agent/src/config/types.messages.d.ts +176 -0
- package/packages/agent/src/config/types.messages.d.ts.map +1 -0
- package/packages/agent/src/config/types.messages.js +1 -0
- package/packages/agent/src/config/types.tools.d.ts +400 -0
- package/packages/agent/src/config/types.tools.d.ts.map +1 -0
- package/packages/agent/src/config/types.tools.js +1 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.d.ts +1137 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.agent-runtime.js +782 -0
- package/packages/agent/src/config/zod-schema.core.d.ts +1021 -0
- package/packages/agent/src/config/zod-schema.core.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.core.js +701 -0
- package/packages/agent/src/config/zod-schema.d.ts +3185 -0
- package/packages/agent/src/config/zod-schema.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.hooks.d.ts +88 -0
- package/packages/agent/src/config/zod-schema.hooks.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.hooks.js +133 -0
- package/packages/agent/src/config/zod-schema.js +850 -0
- package/packages/agent/src/config/zod-schema.providers-core.d.ts +2746 -0
- package/packages/agent/src/config/zod-schema.providers-core.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.providers-core.js +961 -0
- package/packages/agent/src/config/zod-schema.session.d.ts +183 -0
- package/packages/agent/src/config/zod-schema.session.d.ts.map +1 -0
- package/packages/agent/src/config/zod-schema.session.js +86 -0
- package/packages/agent/src/contracts/apps.d.ts +2 -0
- package/packages/agent/src/contracts/apps.d.ts.map +1 -0
- package/packages/agent/src/contracts/apps.js +1 -0
- package/packages/agent/src/contracts/awareness.d.ts +38 -0
- package/packages/agent/src/contracts/awareness.d.ts.map +1 -0
- package/packages/agent/src/contracts/awareness.js +7 -0
- package/packages/agent/src/contracts/config.d.ts +160 -0
- package/packages/agent/src/contracts/config.d.ts.map +1 -0
- package/packages/agent/src/contracts/config.js +4 -0
- package/packages/agent/src/contracts/onboarding.d.ts +2 -0
- package/packages/agent/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/agent/src/contracts/onboarding.js +1 -0
- package/packages/agent/src/contracts/service-routing.d.ts +2 -0
- package/packages/agent/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/agent/src/contracts/service-routing.js +1 -0
- package/packages/agent/src/contracts/wallet.d.ts +2 -0
- package/packages/agent/src/contracts/wallet.d.ts.map +1 -0
- package/packages/agent/src/contracts/wallet.js +1 -0
- package/packages/agent/src/diagnostics/integration-observability.d.ts +40 -0
- package/packages/agent/src/diagnostics/integration-observability.d.ts.map +1 -0
- package/packages/agent/src/diagnostics/integration-observability.js +78 -0
- package/packages/agent/src/evaluators/late-join-whitelist.d.ts +16 -0
- package/packages/agent/src/evaluators/late-join-whitelist.d.ts.map +1 -0
- package/packages/agent/src/evaluators/late-join-whitelist.js +67 -0
- package/packages/agent/src/hooks/discovery.d.ts +13 -0
- package/packages/agent/src/hooks/discovery.d.ts.map +1 -0
- package/packages/agent/src/hooks/discovery.js +191 -0
- package/packages/agent/src/hooks/eligibility.d.ts +12 -0
- package/packages/agent/src/hooks/eligibility.d.ts.map +1 -0
- package/packages/agent/src/hooks/eligibility.js +105 -0
- package/packages/agent/src/hooks/index.d.ts +3 -0
- package/packages/agent/src/hooks/index.d.ts.map +1 -0
- package/packages/agent/src/hooks/index.js +2 -0
- package/packages/agent/src/hooks/loader.d.ts +34 -0
- package/packages/agent/src/hooks/loader.d.ts.map +1 -0
- package/packages/agent/src/hooks/loader.js +214 -0
- package/packages/agent/src/hooks/registry.d.ts +11 -0
- package/packages/agent/src/hooks/registry.d.ts.map +1 -0
- package/packages/agent/src/hooks/registry.js +58 -0
- package/packages/agent/src/hooks/types.d.ts +104 -0
- package/packages/agent/src/hooks/types.d.ts.map +1 -0
- package/packages/agent/src/hooks/types.js +8 -0
- package/packages/agent/src/index.d.ts +57 -0
- package/packages/agent/src/index.d.ts.map +1 -0
- package/packages/agent/src/index.js +64 -0
- package/packages/agent/src/middleware/x402/payment-config.d.ts +251 -0
- package/packages/agent/src/middleware/x402/payment-config.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/payment-config.js +568 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.d.ts +42 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/payment-wrapper.js +1342 -0
- package/packages/agent/src/middleware/x402/startup-validator.d.ts +28 -0
- package/packages/agent/src/middleware/x402/startup-validator.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/startup-validator.js +225 -0
- package/packages/agent/src/middleware/x402/types.d.ts +158 -0
- package/packages/agent/src/middleware/x402/types.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/types.js +5 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts +9 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-facilitator-binding.js +74 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts +30 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-durable.js +202 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts +28 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-guard.js +134 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts +21 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-replay-keys.js +141 -0
- package/packages/agent/src/middleware/x402/x402-resolve.d.ts +6 -0
- package/packages/agent/src/middleware/x402/x402-resolve.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-resolve.js +31 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts +130 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-standard-payment.js +387 -0
- package/packages/agent/src/middleware/x402/x402-types.d.ts +130 -0
- package/packages/agent/src/middleware/x402/x402-types.d.ts.map +1 -0
- package/packages/agent/src/middleware/x402/x402-types.js +189 -0
- package/packages/agent/src/plugins/custom-rtmp/index.d.ts +12 -0
- package/packages/agent/src/plugins/custom-rtmp/index.d.ts.map +1 -0
- package/packages/agent/src/plugins/custom-rtmp/index.js +26 -0
- package/packages/agent/src/providers/admin-panel.d.ts +4 -0
- package/packages/agent/src/providers/admin-panel.d.ts.map +1 -0
- package/packages/agent/src/providers/admin-panel.js +83 -0
- package/packages/agent/src/providers/admin-trust.d.ts +4 -0
- package/packages/agent/src/providers/admin-trust.d.ts.map +1 -0
- package/packages/agent/src/providers/admin-trust.js +34 -0
- package/packages/agent/src/providers/automation-terminal-bridge.d.ts +3 -0
- package/packages/agent/src/providers/automation-terminal-bridge.d.ts.map +1 -0
- package/packages/agent/src/providers/automation-terminal-bridge.js +71 -0
- package/packages/agent/src/providers/conversation-utils.d.ts +11 -0
- package/packages/agent/src/providers/conversation-utils.d.ts.map +1 -0
- package/packages/agent/src/providers/conversation-utils.js +69 -0
- package/packages/agent/src/providers/escalation-trigger.d.ts +15 -0
- package/packages/agent/src/providers/escalation-trigger.d.ts.map +1 -0
- package/packages/agent/src/providers/escalation-trigger.js +165 -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/page-scoped-context.d.ts +3 -0
- package/packages/agent/src/providers/page-scoped-context.d.ts.map +1 -0
- package/packages/agent/src/providers/page-scoped-context.js +533 -0
- package/packages/agent/src/providers/recent-conversations.d.ts +3 -0
- package/packages/agent/src/providers/recent-conversations.d.ts.map +1 -0
- package/packages/agent/src/providers/recent-conversations.js +94 -0
- package/packages/agent/src/providers/relevant-conversations.d.ts +3 -0
- package/packages/agent/src/providers/relevant-conversations.d.ts.map +1 -0
- package/packages/agent/src/providers/relevant-conversations.js +93 -0
- package/packages/agent/src/providers/role-backfill.d.ts +18 -0
- package/packages/agent/src/providers/role-backfill.d.ts.map +1 -0
- package/packages/agent/src/providers/role-backfill.js +84 -0
- package/packages/agent/src/providers/rolodex.d.ts +3 -0
- package/packages/agent/src/providers/rolodex.d.ts.map +1 -0
- package/packages/agent/src/providers/rolodex.js +78 -0
- package/packages/agent/src/providers/session-bridge.d.ts +24 -0
- package/packages/agent/src/providers/session-bridge.d.ts.map +1 -0
- package/packages/agent/src/providers/session-bridge.js +85 -0
- package/packages/agent/src/providers/session-utils.d.ts +20 -0
- package/packages/agent/src/providers/session-utils.d.ts.map +1 -0
- package/packages/agent/src/providers/session-utils.js +33 -0
- package/packages/agent/src/providers/simple-mode.d.ts +4 -0
- package/packages/agent/src/providers/simple-mode.d.ts.map +1 -0
- package/packages/agent/src/providers/simple-mode.js +85 -0
- package/packages/agent/src/providers/skill-provider.d.ts +16 -0
- package/packages/agent/src/providers/skill-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/skill-provider.js +331 -0
- package/packages/agent/src/providers/tasks.d.ts +9 -0
- package/packages/agent/src/providers/tasks.d.ts.map +1 -0
- package/packages/agent/src/providers/tasks.js +113 -0
- package/packages/agent/src/providers/ui-catalog.d.ts +3 -0
- package/packages/agent/src/providers/ui-catalog.d.ts.map +1 -0
- package/packages/agent/src/providers/ui-catalog.js +95 -0
- package/packages/agent/src/providers/user-name.d.ts +11 -0
- package/packages/agent/src/providers/user-name.d.ts.map +1 -0
- package/packages/agent/src/providers/user-name.js +40 -0
- package/packages/agent/src/providers/workspace-provider.d.ts +14 -0
- package/packages/agent/src/providers/workspace-provider.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace-provider.js +177 -0
- package/packages/agent/src/providers/workspace.d.ts +55 -0
- package/packages/agent/src/providers/workspace.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace.js +484 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.d.ts +8 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.d.ts.map +1 -0
- package/packages/agent/src/runtime/advanced-capabilities-config.js +42 -0
- package/packages/agent/src/runtime/agent-event-service.d.ts +35 -0
- package/packages/agent/src/runtime/agent-event-service.d.ts.map +1 -0
- package/packages/agent/src/runtime/agent-event-service.js +16 -0
- package/packages/agent/src/runtime/cloud-onboarding.d.ts +35 -0
- package/packages/agent/src/runtime/cloud-onboarding.d.ts.map +1 -0
- package/packages/agent/src/runtime/cloud-onboarding.js +279 -0
- package/packages/agent/src/runtime/core-plugins.d.ts +39 -0
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
- package/packages/agent/src/runtime/core-plugins.js +85 -0
- package/packages/agent/src/runtime/custom-actions.d.ts +43 -0
- package/packages/agent/src/runtime/custom-actions.d.ts.map +1 -0
- package/packages/agent/src/runtime/custom-actions.js +507 -0
- package/packages/agent/src/runtime/default-knowledge.d.ts +20 -0
- package/packages/agent/src/runtime/default-knowledge.d.ts.map +1 -0
- package/packages/agent/src/runtime/default-knowledge.js +256 -0
- package/packages/agent/src/runtime/discord-local-plugin.d.ts +86 -0
- package/packages/agent/src/runtime/discord-local-plugin.d.ts.map +1 -0
- package/packages/agent/src/runtime/discord-local-plugin.js +1116 -0
- package/packages/agent/src/runtime/eliza-plugin.d.ts +16 -0
- package/packages/agent/src/runtime/eliza-plugin.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza-plugin.js +235 -0
- package/packages/agent/src/runtime/eliza.d.ts +91 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza.js +3464 -0
- package/packages/agent/src/runtime/embedding-presets.d.ts +19 -0
- package/packages/agent/src/runtime/embedding-presets.d.ts.map +1 -0
- package/packages/agent/src/runtime/embedding-presets.js +60 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts +46 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
- package/packages/agent/src/runtime/first-time-setup.js +693 -0
- package/packages/agent/src/runtime/native-runtime-features.d.ts +4 -0
- package/packages/agent/src/runtime/native-runtime-features.d.ts.map +1 -0
- package/packages/agent/src/runtime/native-runtime-features.js +10 -0
- package/packages/agent/src/runtime/onboarding-names.d.ts +11 -0
- package/packages/agent/src/runtime/onboarding-names.d.ts.map +1 -0
- package/packages/agent/src/runtime/onboarding-names.js +81 -0
- package/packages/agent/src/runtime/operations/classifier.d.ts +36 -0
- package/packages/agent/src/runtime/operations/classifier.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/classifier.js +72 -0
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts +19 -0
- package/packages/agent/src/runtime/operations/cold-strategy.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/cold-strategy.js +83 -0
- package/packages/agent/src/runtime/operations/health-checks.d.ts +24 -0
- package/packages/agent/src/runtime/operations/health-checks.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/health-checks.js +186 -0
- package/packages/agent/src/runtime/operations/health.d.ts +32 -0
- package/packages/agent/src/runtime/operations/health.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/health.js +151 -0
- package/packages/agent/src/runtime/operations/index.d.ts +16 -0
- package/packages/agent/src/runtime/operations/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/index.js +14 -0
- package/packages/agent/src/runtime/operations/manager.d.ts +68 -0
- package/packages/agent/src/runtime/operations/manager.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/manager.js +182 -0
- package/packages/agent/src/runtime/operations/reload-hot.d.ts +40 -0
- package/packages/agent/src/runtime/operations/reload-hot.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/reload-hot.js +176 -0
- package/packages/agent/src/runtime/operations/repository.d.ts +44 -0
- package/packages/agent/src/runtime/operations/repository.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/repository.js +233 -0
- package/packages/agent/src/runtime/operations/types.d.ts +201 -0
- package/packages/agent/src/runtime/operations/types.d.ts.map +1 -0
- package/packages/agent/src/runtime/operations/types.js +30 -0
- package/packages/agent/src/runtime/owner-entity.d.ts +4 -0
- package/packages/agent/src/runtime/owner-entity.d.ts.map +1 -0
- package/packages/agent/src/runtime/owner-entity.js +30 -0
- package/packages/agent/src/runtime/pglite-error-compat.d.ts +28 -0
- package/packages/agent/src/runtime/pglite-error-compat.d.ts.map +1 -0
- package/packages/agent/src/runtime/pglite-error-compat.js +54 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts +26 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-collector.js +443 -0
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts +44 -0
- package/packages/agent/src/runtime/plugin-lifecycle.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-lifecycle.js +578 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts +32 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-resolver.js +971 -0
- package/packages/agent/src/runtime/plugin-role-gating.d.ts +34 -0
- package/packages/agent/src/runtime/plugin-role-gating.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-role-gating.js +267 -0
- package/packages/agent/src/runtime/plugin-types.d.ts +65 -0
- package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-types.js +331 -0
- package/packages/agent/src/runtime/prompt-compaction.d.ts +80 -0
- package/packages/agent/src/runtime/prompt-compaction.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-compaction.js +307 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts +34 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-optimization.js +686 -0
- package/packages/agent/src/runtime/release-plugin-policy.d.ts +20 -0
- package/packages/agent/src/runtime/release-plugin-policy.d.ts.map +1 -0
- package/packages/agent/src/runtime/release-plugin-policy.js +85 -0
- package/packages/agent/src/runtime/restart.d.ts +21 -0
- package/packages/agent/src/runtime/restart.d.ts.map +1 -0
- package/packages/agent/src/runtime/restart.js +20 -0
- package/packages/agent/src/runtime/roles/src/action.d.ts +11 -0
- package/packages/agent/src/runtime/roles/src/action.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/action.js +665 -0
- package/packages/agent/src/runtime/roles/src/index.d.ts +24 -0
- package/packages/agent/src/runtime/roles/src/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/index.js +243 -0
- package/packages/agent/src/runtime/roles/src/intent.d.ts +18 -0
- package/packages/agent/src/runtime/roles/src/intent.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/intent.js +293 -0
- package/packages/agent/src/runtime/roles/src/provider.d.ts +7 -0
- package/packages/agent/src/runtime/roles/src/provider.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/provider.js +133 -0
- package/packages/agent/src/runtime/roles/src/types.d.ts +3 -0
- package/packages/agent/src/runtime/roles/src/types.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/types.js +1 -0
- package/packages/agent/src/runtime/roles/src/utils.d.ts +2 -0
- package/packages/agent/src/runtime/roles/src/utils.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles/src/utils.js +1 -0
- package/packages/agent/src/runtime/roles.d.ts +3 -0
- package/packages/agent/src/runtime/roles.d.ts.map +1 -0
- package/packages/agent/src/runtime/roles.js +5 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts +226 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-internals.js +1327 -0
- package/packages/agent/src/runtime/trajectory-persistence.d.ts +15 -0
- package/packages/agent/src/runtime/trajectory-persistence.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-persistence.js +29 -0
- package/packages/agent/src/runtime/trajectory-query.d.ts +8 -0
- package/packages/agent/src/runtime/trajectory-query.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-query.js +27 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts +91 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-storage.js +1155 -0
- package/packages/agent/src/runtime/version.d.ts +2 -0
- package/packages/agent/src/runtime/version.d.ts.map +1 -0
- package/packages/agent/src/runtime/version.js +5 -0
- package/packages/agent/src/runtime/web-search-tools.d.ts +22 -0
- package/packages/agent/src/runtime/web-search-tools.d.ts.map +1 -0
- package/packages/agent/src/runtime/web-search-tools.js +149 -0
- package/packages/agent/src/security/access.d.ts +17 -0
- package/packages/agent/src/security/access.d.ts.map +1 -0
- package/packages/agent/src/security/access.js +129 -0
- package/packages/agent/src/security/audit-log.d.ts +47 -0
- package/packages/agent/src/security/audit-log.d.ts.map +1 -0
- package/packages/agent/src/security/audit-log.js +161 -0
- package/packages/agent/src/security/index.d.ts +4 -0
- package/packages/agent/src/security/index.d.ts.map +1 -0
- package/packages/agent/src/security/index.js +3 -0
- package/packages/agent/src/security/network-policy.d.ts +6 -0
- package/packages/agent/src/security/network-policy.d.ts.map +1 -0
- package/packages/agent/src/security/network-policy.js +85 -0
- package/packages/agent/src/services/agent-export.d.ts +100 -0
- package/packages/agent/src/services/agent-export.d.ts.map +1 -0
- package/packages/agent/src/services/agent-export.js +729 -0
- package/packages/agent/src/services/app-manager.d.ts +108 -0
- package/packages/agent/src/services/app-manager.d.ts.map +1 -0
- package/packages/agent/src/services/app-manager.js +1623 -0
- package/packages/agent/src/services/app-package-modules.d.ts +22 -0
- package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
- package/packages/agent/src/services/app-package-modules.js +388 -0
- package/packages/agent/src/services/app-run-store.d.ts +6 -0
- package/packages/agent/src/services/app-run-store.d.ts.map +1 -0
- package/packages/agent/src/services/app-run-store.js +490 -0
- package/packages/agent/src/services/app-session-gate.d.ts +15 -0
- package/packages/agent/src/services/app-session-gate.d.ts.map +1 -0
- package/packages/agent/src/services/app-session-gate.js +71 -0
- package/packages/agent/src/services/browser-capture.d.ts +41 -0
- package/packages/agent/src/services/browser-capture.d.ts.map +1 -0
- package/packages/agent/src/services/browser-capture.js +173 -0
- package/packages/agent/src/services/browser-workspace-desktop.d.ts +22 -0
- package/packages/agent/src/services/browser-workspace-desktop.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-desktop.js +1490 -0
- package/packages/agent/src/services/browser-workspace-elements.d.ts +42 -0
- package/packages/agent/src/services/browser-workspace-elements.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-elements.js +508 -0
- package/packages/agent/src/services/browser-workspace-forms.d.ts +19 -0
- package/packages/agent/src/services/browser-workspace-forms.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-forms.js +245 -0
- package/packages/agent/src/services/browser-workspace-helpers.d.ts +20 -0
- package/packages/agent/src/services/browser-workspace-helpers.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-helpers.js +121 -0
- package/packages/agent/src/services/browser-workspace-jsdom.d.ts +16 -0
- package/packages/agent/src/services/browser-workspace-jsdom.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-jsdom.js +223 -0
- package/packages/agent/src/services/browser-workspace-network.d.ts +7 -0
- package/packages/agent/src/services/browser-workspace-network.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-network.js +137 -0
- package/packages/agent/src/services/browser-workspace-snapshots.d.ts +14 -0
- package/packages/agent/src/services/browser-workspace-snapshots.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-snapshots.js +144 -0
- package/packages/agent/src/services/browser-workspace-state.d.ts +22 -0
- package/packages/agent/src/services/browser-workspace-state.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-state.js +129 -0
- package/packages/agent/src/services/browser-workspace-types.d.ts +279 -0
- package/packages/agent/src/services/browser-workspace-types.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-types.js +1 -0
- package/packages/agent/src/services/browser-workspace-web.d.ts +8 -0
- package/packages/agent/src/services/browser-workspace-web.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace-web.js +1152 -0
- package/packages/agent/src/services/browser-workspace.d.ts +36 -0
- package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace.js +639 -0
- package/packages/agent/src/services/character-history.d.ts +69 -0
- package/packages/agent/src/services/character-history.d.ts.map +1 -0
- package/packages/agent/src/services/character-history.js +280 -0
- package/packages/agent/src/services/character-persistence.d.ts +25 -0
- package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
- package/packages/agent/src/services/character-persistence.js +167 -0
- package/packages/agent/src/services/client-chat-sender.d.ts +19 -0
- package/packages/agent/src/services/client-chat-sender.d.ts.map +1 -0
- package/packages/agent/src/services/client-chat-sender.js +88 -0
- package/packages/agent/src/services/coding-agent-context.d.ts +310 -0
- package/packages/agent/src/services/coding-agent-context.d.ts.map +1 -0
- package/packages/agent/src/services/coding-agent-context.js +281 -0
- package/packages/agent/src/services/coding-task-executor.d.ts +14 -0
- package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/coding-task-executor.js +109 -0
- package/packages/agent/src/services/config-plugin-manager.d.ts +6 -0
- package/packages/agent/src/services/config-plugin-manager.d.ts.map +1 -0
- package/packages/agent/src/services/config-plugin-manager.js +53 -0
- package/packages/agent/src/services/connector-setup-service.d.ts +48 -0
- package/packages/agent/src/services/connector-setup-service.d.ts.map +1 -0
- package/packages/agent/src/services/connector-setup-service.js +60 -0
- package/packages/agent/src/services/conversation-proximity.d.ts +27 -0
- package/packages/agent/src/services/conversation-proximity.d.ts.map +1 -0
- package/packages/agent/src/services/conversation-proximity.js +124 -0
- package/packages/agent/src/services/escalation.d.ts +35 -0
- package/packages/agent/src/services/escalation.d.ts.map +1 -0
- package/packages/agent/src/services/escalation.js +376 -0
- package/packages/agent/src/services/evm-signing-capability.d.ts +38 -0
- package/packages/agent/src/services/evm-signing-capability.d.ts.map +1 -0
- package/packages/agent/src/services/evm-signing-capability.js +60 -0
- package/packages/agent/src/services/executor-registry.d.ts +4 -0
- package/packages/agent/src/services/executor-registry.d.ts.map +1 -0
- package/packages/agent/src/services/executor-registry.js +10 -0
- package/packages/agent/src/services/hosted-tools.d.ts +70 -0
- package/packages/agent/src/services/hosted-tools.d.ts.map +1 -0
- package/packages/agent/src/services/hosted-tools.js +87 -0
- package/packages/agent/src/services/index.d.ts +28 -0
- package/packages/agent/src/services/index.d.ts.map +1 -0
- package/packages/agent/src/services/index.js +34 -0
- package/packages/agent/src/services/launchpads/image-generator.d.ts +22 -0
- package/packages/agent/src/services/launchpads/image-generator.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/image-generator.js +46 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.d.ts +32 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/launchpad-engine.js +191 -0
- package/packages/agent/src/services/launchpads/launchpad-types.d.ts +116 -0
- package/packages/agent/src/services/launchpads/launchpad-types.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/launchpad-types.js +19 -0
- package/packages/agent/src/services/launchpads/metadata-generator.d.ts +24 -0
- package/packages/agent/src/services/launchpads/metadata-generator.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/metadata-generator.js +96 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts +25 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/profiles/flap-sh.js +80 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts +11 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.d.ts.map +1 -0
- package/packages/agent/src/services/launchpads/profiles/four-meme.js +70 -0
- package/packages/agent/src/services/mcp-marketplace.d.ts +89 -0
- package/packages/agent/src/services/mcp-marketplace.d.ts.map +1 -0
- package/packages/agent/src/services/mcp-marketplace.js +200 -0
- package/packages/agent/src/services/overlay-app-presence.d.ts +9 -0
- package/packages/agent/src/services/overlay-app-presence.d.ts.map +1 -0
- package/packages/agent/src/services/overlay-app-presence.js +18 -0
- package/packages/agent/src/services/owner-name.d.ts +4 -0
- package/packages/agent/src/services/owner-name.d.ts.map +1 -0
- package/packages/agent/src/services/owner-name.js +46 -0
- package/packages/agent/src/services/plugin-manager-types.d.ts +114 -0
- package/packages/agent/src/services/plugin-manager-types.d.ts.map +1 -0
- package/packages/agent/src/services/plugin-manager-types.js +18 -0
- package/packages/agent/src/services/registry-client-app-meta.d.ts +6 -0
- package/packages/agent/src/services/registry-client-app-meta.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-app-meta.js +165 -0
- package/packages/agent/src/services/registry-client-endpoints.d.ts +7 -0
- package/packages/agent/src/services/registry-client-endpoints.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-endpoints.js +190 -0
- package/packages/agent/src/services/registry-client-local.d.ts +4 -0
- package/packages/agent/src/services/registry-client-local.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-local.js +546 -0
- package/packages/agent/src/services/registry-client-network.d.ts +9 -0
- package/packages/agent/src/services/registry-client-network.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-network.js +120 -0
- package/packages/agent/src/services/registry-client-queries.d.ts +26 -0
- package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-queries.js +194 -0
- package/packages/agent/src/services/registry-client-types.d.ts +92 -0
- package/packages/agent/src/services/registry-client-types.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-types.js +1 -0
- package/packages/agent/src/services/registry-client.d.ts +39 -0
- package/packages/agent/src/services/registry-client.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client.js +332 -0
- package/packages/agent/src/services/relationships-graph.d.ts +240 -0
- package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
- package/packages/agent/src/services/relationships-graph.js +1642 -0
- package/packages/agent/src/services/remote-signing-service.d.ts +58 -0
- package/packages/agent/src/services/remote-signing-service.d.ts.map +1 -0
- package/packages/agent/src/services/remote-signing-service.js +185 -0
- package/packages/agent/src/services/research-task-executor.d.ts +14 -0
- package/packages/agent/src/services/research-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/research-task-executor.js +138 -0
- package/packages/agent/src/services/sandbox-engine.d.ts +96 -0
- package/packages/agent/src/services/sandbox-engine.d.ts.map +1 -0
- package/packages/agent/src/services/sandbox-engine.js +604 -0
- package/packages/agent/src/services/sandbox-manager.d.ts +106 -0
- package/packages/agent/src/services/sandbox-manager.d.ts.map +1 -0
- package/packages/agent/src/services/sandbox-manager.js +380 -0
- package/packages/agent/src/services/self-updater.d.ts +21 -0
- package/packages/agent/src/services/self-updater.d.ts.map +1 -0
- package/packages/agent/src/services/self-updater.js +162 -0
- package/packages/agent/src/services/send-handler-availability.d.ts +5 -0
- package/packages/agent/src/services/send-handler-availability.d.ts.map +1 -0
- package/packages/agent/src/services/send-handler-availability.js +20 -0
- package/packages/agent/src/services/signal-pairing.d.ts +73 -0
- package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/signal-pairing.js +514 -0
- package/packages/agent/src/services/signing-policy.d.ts +44 -0
- package/packages/agent/src/services/signing-policy.d.ts.map +1 -0
- package/packages/agent/src/services/signing-policy.js +165 -0
- package/packages/agent/src/services/skill-catalog-client.d.ts +47 -0
- package/packages/agent/src/services/skill-catalog-client.d.ts.map +1 -0
- package/packages/agent/src/services/skill-catalog-client.js +130 -0
- package/packages/agent/src/services/skill-marketplace.d.ts +42 -0
- package/packages/agent/src/services/skill-marketplace.d.ts.map +1 -0
- package/packages/agent/src/services/skill-marketplace.js +693 -0
- package/packages/agent/src/services/stream-manager.d.ts +121 -0
- package/packages/agent/src/services/stream-manager.d.ts.map +1 -0
- package/packages/agent/src/services/stream-manager.js +609 -0
- package/packages/agent/src/services/task-executor.d.ts +47 -0
- package/packages/agent/src/services/task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/task-executor.js +31 -0
- package/packages/agent/src/services/telegram-account-auth.d.ts +99 -0
- package/packages/agent/src/services/telegram-account-auth.d.ts.map +1 -0
- package/packages/agent/src/services/telegram-account-auth.js +611 -0
- package/packages/agent/src/services/tts-stream-bridge.d.ts +83 -0
- package/packages/agent/src/services/tts-stream-bridge.d.ts.map +1 -0
- package/packages/agent/src/services/tts-stream-bridge.js +360 -0
- package/packages/agent/src/services/update-checker.d.ts +29 -0
- package/packages/agent/src/services/update-checker.d.ts.map +1 -0
- package/packages/agent/src/services/update-checker.js +134 -0
- package/packages/agent/src/services/version-compat.d.ts +99 -0
- package/packages/agent/src/services/version-compat.d.ts.map +1 -0
- package/packages/agent/src/services/version-compat.js +203 -0
- package/packages/agent/src/services/whatsapp-pairing.d.ts +41 -0
- package/packages/agent/src/services/whatsapp-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/whatsapp-pairing.js +209 -0
- package/packages/agent/src/shared/ui-catalog-prompt.d.ts +52 -0
- package/packages/agent/src/shared/ui-catalog-prompt.d.ts.map +1 -0
- package/packages/agent/src/shared/ui-catalog-prompt.js +1028 -0
- package/packages/agent/src/test-support/index.d.ts +4 -0
- package/packages/agent/src/test-support/index.d.ts.map +1 -0
- package/packages/agent/src/test-support/index.js +3 -0
- package/packages/agent/src/test-support/process-helpers.d.ts +13 -0
- package/packages/agent/src/test-support/process-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/process-helpers.js +23 -0
- package/packages/agent/src/test-support/route-test-helpers.d.ts +37 -0
- package/packages/agent/src/test-support/route-test-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/route-test-helpers.js +54 -0
- package/packages/agent/src/test-support/test-helpers.d.ts +77 -0
- package/packages/agent/src/test-support/test-helpers.d.ts.map +1 -0
- package/packages/agent/src/test-support/test-helpers.js +217 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts +23 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
- package/packages/agent/src/test-utils/sqlite-compat.js +214 -0
- package/packages/agent/src/triggers/action.d.ts +4 -0
- package/packages/agent/src/triggers/action.d.ts.map +1 -0
- package/packages/agent/src/triggers/action.js +336 -0
- package/packages/agent/src/triggers/delete-trigger.d.ts +10 -0
- package/packages/agent/src/triggers/delete-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/delete-trigger.js +158 -0
- package/packages/agent/src/triggers/run-trigger.d.ts +11 -0
- package/packages/agent/src/triggers/run-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/run-trigger.js +142 -0
- package/packages/agent/src/triggers/runtime.d.ts +30 -0
- package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
- package/packages/agent/src/triggers/runtime.js +530 -0
- package/packages/agent/src/triggers/scheduling.d.ts +78 -0
- package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
- package/packages/agent/src/triggers/scheduling.js +433 -0
- package/packages/agent/src/triggers/types.d.ts +96 -0
- package/packages/agent/src/triggers/types.d.ts.map +1 -0
- package/packages/agent/src/triggers/types.js +1 -0
- package/packages/agent/src/triggers/update-trigger.d.ts +10 -0
- package/packages/agent/src/triggers/update-trigger.d.ts.map +1 -0
- package/packages/agent/src/triggers/update-trigger.js +309 -0
- package/packages/agent/src/types/agent-skills.d.ts +19 -0
- package/packages/agent/src/types/agent-skills.d.ts.map +1 -0
- package/packages/agent/src/types/agent-skills.js +7 -0
- package/packages/agent/src/types/config-like.d.ts +17 -0
- package/packages/agent/src/types/config-like.d.ts.map +1 -0
- package/packages/agent/src/types/config-like.js +7 -0
- package/packages/agent/src/types/index.d.ts +4 -0
- package/packages/agent/src/types/index.d.ts.map +1 -0
- package/packages/agent/src/types/index.js +3 -0
- package/packages/agent/src/types/trajectory.d.ts +147 -0
- package/packages/agent/src/types/trajectory.d.ts.map +1 -0
- package/packages/agent/src/types/trajectory.js +8 -0
- package/packages/agent/src/utils/exec-safety.d.ts +2 -0
- package/packages/agent/src/utils/exec-safety.d.ts.map +1 -0
- package/packages/agent/src/utils/exec-safety.js +21 -0
- package/packages/agent/src/utils/number-parsing.d.ts +26 -0
- package/packages/agent/src/utils/number-parsing.d.ts.map +1 -0
- package/packages/agent/src/utils/number-parsing.js +51 -0
- package/packages/agent/src/version-resolver.d.ts +2 -0
- package/packages/agent/src/version-resolver.d.ts.map +1 -0
- package/packages/agent/src/version-resolver.js +50 -0
- package/packages/app-core/src/api/client-types-cloud.d.ts +805 -0
- package/packages/app-core/src/api/client-types-cloud.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-cloud.js +57 -0
- package/packages/app-core/src/api/client-types-core.d.ts +337 -0
- package/packages/app-core/src/api/client-types-core.d.ts.map +1 -0
- package/packages/app-core/src/api/client-types-core.js +22 -0
- package/packages/app-core/src/api/cloud-secrets.d.ts +23 -0
- package/packages/app-core/src/api/cloud-secrets.d.ts.map +1 -0
- package/packages/app-core/src/api/cloud-secrets.js +50 -0
- package/packages/app-core/src/api/compat-route-shared.d.ts +29 -0
- package/packages/app-core/src/api/compat-route-shared.d.ts.map +1 -0
- package/packages/app-core/src/api/compat-route-shared.js +284 -0
- package/packages/app-core/src/api/response.d.ts +12 -0
- package/packages/app-core/src/api/response.d.ts.map +1 -0
- package/packages/app-core/src/api/response.js +36 -0
- package/packages/app-core/src/api/server-cloud-tts.d.ts +41 -0
- package/packages/app-core/src/api/server-cloud-tts.d.ts.map +1 -0
- package/packages/app-core/src/api/server-cloud-tts.js +471 -0
- package/packages/app-core/src/config/boot-config-store.d.ts +267 -0
- package/packages/app-core/src/config/boot-config-store.d.ts.map +1 -0
- package/packages/app-core/src/config/boot-config-store.js +143 -0
- package/packages/app-core/src/config/boot-config.d.ts +6 -0
- package/packages/app-core/src/config/boot-config.d.ts.map +1 -0
- package/packages/app-core/src/config/boot-config.js +5 -0
- package/packages/app-core/src/config/branding.d.ts +55 -0
- package/packages/app-core/src/config/branding.d.ts.map +1 -0
- package/packages/app-core/src/config/branding.js +23 -0
- package/packages/app-core/src/navigation/index.d.ts +70 -0
- package/packages/app-core/src/navigation/index.d.ts.map +1 -0
- package/packages/app-core/src/navigation/index.js +442 -0
- package/packages/app-core/src/services/plugin-installer.d.ts +93 -0
- package/packages/app-core/src/services/plugin-installer.d.ts.map +1 -0
- package/packages/app-core/src/services/plugin-installer.js +628 -0
- package/packages/app-core/src/state/action-notice.d.ts +7 -0
- package/packages/app-core/src/state/action-notice.d.ts.map +1 -0
- package/packages/app-core/src/state/action-notice.js +1 -0
- package/packages/app-core/src/utils/env.d.ts +31 -0
- package/packages/app-core/src/utils/env.d.ts.map +1 -0
- package/packages/app-core/src/utils/env.js +51 -0
- package/packages/app-core/src/utils/serialise.d.ts +12 -0
- package/packages/app-core/src/utils/serialise.d.ts.map +1 -0
- package/packages/app-core/src/utils/serialise.js +21 -0
- package/packages/app-core/src/utils/tts-debug.d.ts +9 -0
- package/packages/app-core/src/utils/tts-debug.d.ts.map +1 -0
- package/packages/app-core/src/utils/tts-debug.js +69 -0
- package/packages/shared/src/app-hero-art.d.ts +13 -0
- package/packages/shared/src/app-hero-art.d.ts.map +1 -0
- package/packages/shared/src/app-hero-art.js +357 -0
- 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/config/types.agent-defaults.d.ts +383 -0
- package/packages/shared/src/config/types.agent-defaults.d.ts.map +1 -0
- package/packages/shared/src/config/types.agent-defaults.js +1 -0
- package/packages/shared/src/config/types.agents.d.ts +114 -0
- package/packages/shared/src/config/types.agents.d.ts.map +1 -0
- package/packages/shared/src/config/types.agents.js +1 -0
- package/packages/shared/src/config/types.d.ts +8 -0
- package/packages/shared/src/config/types.d.ts.map +1 -0
- package/packages/shared/src/config/types.eliza.d.ts +711 -0
- package/packages/shared/src/config/types.eliza.d.ts.map +1 -0
- package/packages/shared/src/config/types.eliza.js +1 -0
- package/packages/shared/src/config/types.gateway.d.ts +216 -0
- package/packages/shared/src/config/types.gateway.d.ts.map +1 -0
- package/packages/shared/src/config/types.gateway.js +1 -0
- package/packages/shared/src/config/types.hooks.d.ts +107 -0
- package/packages/shared/src/config/types.hooks.d.ts.map +1 -0
- package/packages/shared/src/config/types.hooks.js +1 -0
- package/packages/shared/src/config/types.js +7 -0
- package/packages/shared/src/config/types.messages.d.ts +176 -0
- package/packages/shared/src/config/types.messages.d.ts.map +1 -0
- package/packages/shared/src/config/types.messages.js +1 -0
- package/packages/shared/src/config/types.tools.d.ts +400 -0
- package/packages/shared/src/config/types.tools.d.ts.map +1 -0
- package/packages/shared/src/config/types.tools.js +1 -0
- package/packages/shared/src/connector-cred-types.d.ts +27 -0
- package/packages/shared/src/connector-cred-types.d.ts.map +1 -0
- package/packages/shared/src/connector-cred-types.js +63 -0
- package/packages/shared/src/connectors.d.ts +13 -0
- package/packages/shared/src/connectors.d.ts.map +1 -0
- package/packages/shared/src/connectors.js +96 -0
- package/packages/shared/src/contracts/apps.d.ts +259 -0
- package/packages/shared/src/contracts/apps.d.ts.map +1 -0
- package/packages/shared/src/contracts/apps.js +203 -0
- package/packages/shared/src/contracts/awareness.d.ts +38 -0
- package/packages/shared/src/contracts/awareness.d.ts.map +1 -0
- package/packages/shared/src/contracts/awareness.js +7 -0
- package/packages/shared/src/contracts/cloud-topology.d.ts +13 -0
- package/packages/shared/src/contracts/cloud-topology.d.ts.map +1 -0
- package/packages/shared/src/contracts/cloud-topology.js +71 -0
- package/packages/shared/src/contracts/config.d.ts +146 -0
- package/packages/shared/src/contracts/config.d.ts.map +1 -0
- package/packages/shared/src/contracts/config.js +4 -0
- package/packages/shared/src/contracts/content-pack.d.ts +131 -0
- package/packages/shared/src/contracts/content-pack.d.ts.map +1 -0
- package/packages/shared/src/contracts/content-pack.js +102 -0
- package/packages/shared/src/contracts/drop.d.ts +20 -0
- package/packages/shared/src/contracts/drop.d.ts.map +1 -0
- package/packages/shared/src/contracts/drop.js +4 -0
- package/packages/shared/src/contracts/inbox.d.ts +26 -0
- package/packages/shared/src/contracts/inbox.d.ts.map +1 -0
- package/packages/shared/src/contracts/inbox.js +1 -0
- package/packages/shared/src/contracts/index.d.ts +15 -0
- package/packages/shared/src/contracts/index.d.ts.map +1 -0
- package/packages/shared/src/contracts/index.js +14 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts +9 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops-connector-degradation.js +13 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts +340 -0
- package/packages/shared/src/contracts/lifeops-extensions.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops-extensions.js +36 -0
- package/packages/shared/src/contracts/lifeops.d.ts +2729 -0
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops.js +556 -0
- package/packages/shared/src/contracts/onboarding.d.ts +408 -0
- package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/shared/src/contracts/onboarding.js +1021 -0
- package/packages/shared/src/contracts/permissions.d.ts +38 -0
- package/packages/shared/src/contracts/permissions.d.ts.map +1 -0
- package/packages/shared/src/contracts/permissions.js +4 -0
- package/packages/shared/src/contracts/scratchpad.d.ts +136 -0
- package/packages/shared/src/contracts/scratchpad.d.ts.map +1 -0
- package/packages/shared/src/contracts/scratchpad.js +90 -0
- package/packages/shared/src/contracts/service-routing.d.ts +162 -0
- package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/shared/src/contracts/service-routing.js +392 -0
- package/packages/shared/src/contracts/theme.d.ts +136 -0
- package/packages/shared/src/contracts/theme.d.ts.map +1 -0
- package/packages/shared/src/contracts/theme.js +133 -0
- package/packages/shared/src/contracts/verification.d.ts +9 -0
- package/packages/shared/src/contracts/verification.d.ts.map +1 -0
- package/packages/shared/src/contracts/verification.js +4 -0
- package/packages/shared/src/contracts/wallet.d.ts +615 -0
- package/packages/shared/src/contracts/wallet.d.ts.map +1 -0
- package/packages/shared/src/contracts/wallet.js +60 -0
- package/packages/shared/src/dev-settings-banner-style.d.ts +14 -0
- package/packages/shared/src/dev-settings-banner-style.d.ts.map +1 -0
- package/packages/shared/src/dev-settings-banner-style.js +57 -0
- package/packages/shared/src/dev-settings-table.d.ts +47 -0
- package/packages/shared/src/dev-settings-table.d.ts.map +1 -0
- package/packages/shared/src/dev-settings-table.js +188 -0
- package/packages/shared/src/env-utils.d.ts +5 -0
- package/packages/shared/src/env-utils.d.ts.map +1 -0
- package/packages/shared/src/env-utils.impl.d.ts +2 -0
- package/packages/shared/src/env-utils.impl.d.ts.map +1 -0
- package/packages/shared/src/env-utils.impl.js +9 -0
- package/packages/shared/src/env-utils.js +4 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1091 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.js +1094 -0
- package/packages/shared/src/i18n/keyword-matching.d.ts +23 -0
- package/packages/shared/src/i18n/keyword-matching.d.ts.map +1 -0
- package/packages/shared/src/i18n/keyword-matching.js +112 -0
- package/packages/shared/src/i18n/validation-keywords.d.ts +13 -0
- package/packages/shared/src/i18n/validation-keywords.d.ts.map +1 -0
- package/packages/shared/src/i18n/validation-keywords.js +12 -0
- package/packages/shared/src/index.d.ts +26 -0
- package/packages/shared/src/index.d.ts.map +1 -0
- package/packages/shared/src/index.js +37 -0
- package/packages/shared/src/onboarding-presets.characters.d.ts +22 -0
- package/packages/shared/src/onboarding-presets.characters.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.characters.js +2616 -0
- package/packages/shared/src/onboarding-presets.d.ts +40 -0
- package/packages/shared/src/onboarding-presets.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.js +180 -0
- package/packages/shared/src/onboarding-presets.shared.d.ts +2 -0
- package/packages/shared/src/onboarding-presets.shared.d.ts.map +1 -0
- package/packages/shared/src/onboarding-presets.shared.js +7 -0
- package/packages/shared/src/recent-messages-state.d.ts +10 -0
- package/packages/shared/src/recent-messages-state.d.ts.map +1 -0
- package/packages/shared/src/recent-messages-state.js +11 -0
- package/packages/shared/src/restart.d.ts +27 -0
- package/packages/shared/src/restart.d.ts.map +1 -0
- package/packages/shared/src/restart.js +28 -0
- package/packages/shared/src/runtime-env.d.ts +84 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -0
- package/packages/shared/src/runtime-env.js +261 -0
- package/packages/shared/src/settings-debug.d.ts +20 -0
- package/packages/shared/src/settings-debug.d.ts.map +1 -0
- package/packages/shared/src/settings-debug.js +114 -0
- package/packages/shared/src/spoken-text.d.ts +2 -0
- package/packages/shared/src/spoken-text.d.ts.map +1 -0
- package/packages/shared/src/spoken-text.js +56 -0
- package/packages/shared/src/themes/index.d.ts +7 -0
- package/packages/shared/src/themes/index.d.ts.map +1 -0
- package/packages/shared/src/themes/index.js +5 -0
- package/packages/shared/src/themes/presets.d.ts +15 -0
- package/packages/shared/src/themes/presets.d.ts.map +1 -0
- package/packages/shared/src/themes/presets.js +788 -0
- package/packages/shared/src/type-guards.d.ts +29 -0
- package/packages/shared/src/type-guards.d.ts.map +1 -0
- package/packages/shared/src/type-guards.js +43 -0
- package/packages/shared/src/validation-keywords.d.ts +2 -0
- package/packages/shared/src/validation-keywords.d.ts.map +1 -0
- package/packages/shared/src/validation-keywords.js +1 -0
- package/packages/skills/src/formatter.d.ts +44 -0
- package/packages/skills/src/formatter.d.ts.map +1 -0
- package/packages/skills/src/formatter.js +182 -0
- package/packages/skills/src/frontmatter.d.ts +51 -0
- package/packages/skills/src/frontmatter.d.ts.map +1 -0
- package/packages/skills/src/frontmatter.js +155 -0
- package/packages/skills/src/index.d.ts +29 -0
- package/packages/skills/src/index.d.ts.map +1 -0
- package/packages/skills/src/index.js +31 -0
- package/packages/skills/src/loader.d.ts +33 -0
- package/packages/skills/src/loader.d.ts.map +1 -0
- package/packages/skills/src/loader.js +369 -0
- package/packages/skills/src/resolver.d.ts +35 -0
- package/packages/skills/src/resolver.d.ts.map +1 -0
- package/packages/skills/src/resolver.js +143 -0
- package/packages/skills/src/types.d.ts +238 -0
- package/packages/skills/src/types.d.ts.map +1 -0
- package/packages/skills/src/types.js +1 -0
- package/packages/typescript/src/action-docs.d.ts +26 -0
- package/packages/typescript/src/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/action-docs.js +119 -0
- package/packages/typescript/src/actions.d.ts +29 -0
- package/packages/typescript/src/actions.d.ts.map +1 -0
- package/packages/typescript/src/actions.js +551 -0
- package/packages/typescript/src/character-utils.d.ts +138 -0
- package/packages/typescript/src/character-utils.d.ts.map +1 -0
- package/packages/typescript/src/character-utils.js +271 -0
- package/packages/typescript/src/character.d.ts +68 -0
- package/packages/typescript/src/character.d.ts.map +1 -0
- package/packages/typescript/src/character.js +155 -0
- package/packages/typescript/src/connection.d.ts +45 -0
- package/packages/typescript/src/connection.d.ts.map +1 -0
- package/packages/typescript/src/connection.js +149 -0
- package/packages/typescript/src/constants/index.d.ts +7 -0
- package/packages/typescript/src/constants/index.d.ts.map +1 -0
- package/packages/typescript/src/constants/index.js +6 -0
- package/packages/typescript/src/constants/secrets.d.ts +99 -0
- package/packages/typescript/src/constants/secrets.d.ts.map +1 -0
- package/packages/typescript/src/constants/secrets.js +239 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts +285 -0
- package/packages/typescript/src/database/inMemoryAdapter.d.ts.map +1 -0
- package/packages/typescript/src/database/inMemoryAdapter.js +1171 -0
- package/packages/typescript/src/database.d.ts +426 -0
- package/packages/typescript/src/database.d.ts.map +1 -0
- package/packages/typescript/src/database.js +24 -0
- package/packages/typescript/src/entities.d.ts +11 -0
- package/packages/typescript/src/entities.d.ts.map +1 -0
- package/packages/typescript/src/entities.js +437 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/addContact.js +142 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/followRoom.js +183 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/imageGeneration.js +148 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/index.js +20 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/muteRoom.js +181 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/removeContact.js +121 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/roles.js +317 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/scheduleFollowUp.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/searchContacts.js +178 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/sendMessage.js +476 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/settings.js +823 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/think.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unfollowRoom.js +134 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/unmuteRoom.js +193 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateContact.js +219 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts +43 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/actions/updateEntity.js +372 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/append.js +150 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/delete.js +136 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/list.js +84 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-attachment.js +120 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read-file.js +202 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/read.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +102 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/save-attachment-to-clipboard.js +134 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/search.js +139 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/actions/write.js +138 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts +41 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/index.js +82 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/clipboardService.js +357 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/specs.js +164 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts +92 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/clipboard/types.js +4 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/_factCandidates.js +49 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts +23 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.js +608 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts +210 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/factExtractor.schema.js +114 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/index.js +10 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/reflection.js +642 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/relationshipExtraction.js +643 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts +25 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillExtraction.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts +21 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/skillRefinement.js +541 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/evaluators/task-completion.js +14 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/record-experience.js +114 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/actions/search-experiences.js +110 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/evaluators/experienceEvaluator.js +296 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/prompts/typescript/prompts.js +41 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/spec-helpers.js +78 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts +159 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/generated/specs/specs.js +192 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts +10 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/index.js +8 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/providers/experienceProvider.js +61 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +88 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.js +1194 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +141 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.js +22 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts +34 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/confidenceDecay.js +106 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceFormatter.js +152 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceRelationships.js +129 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/utils/experienceText.js +175 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/actions/restore.js +152 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts +101 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builder.js +362 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/builtins.js +245 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts +32 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/defaults.js +98 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/evaluators/extractor.js +231 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/extraction.js +319 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts +22 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/index.js +52 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts +41 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/intent.js +119 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts +11 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/providers/context.js +166 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts +66 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/service.js +912 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts +26 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/storage.js +228 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts +10 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/template.js +56 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts +40 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/ttl.js +107 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts +589 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/types.js +71 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts +24 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/form/validation.js +311 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts +47 -0
- package/packages/typescript/src/features/advanced-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/index.js +121 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts +16 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-message-examples.js +356 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-post-examples.js +234 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/manage-style-rules.js +290 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/modify-character.js +1299 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts +12 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/persist-character.js +167 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/set-voice-config.js +193 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts +18 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/actions/shared/persist-character-patch.js +42 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts +53 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/evaluators/character-evolution.js +429 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts +14 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/index.js +12 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts +8 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/providers/user-personality.js +57 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts +71 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/services/character-file-manager.js +478 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.js +8 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/contacts.js +77 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/facts.js +272 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts +3 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/followUps.js +112 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts +13 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/index.js +12 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts +9 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/knowledge.js +83 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts +15 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/relationships.js +140 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts +19 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/roles.js +231 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts +7 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-capabilities/providers/settings.js +294 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/long-term-extraction.js +199 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/evaluators/summarization.js +240 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts +16 -0
- package/packages/typescript/src/features/advanced-memory/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/index.js +26 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts +2 -0
- package/packages/typescript/src/features/advanced-memory/prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/prompts.js +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/context-summary.js +85 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/index.js +2 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts +3 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/providers/long-term-memory.js +92 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/index.js +3 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/long-term-memories.js +65 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/memory-access-logs.js +45 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/schemas/session-summaries.js +66 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts +38 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/services/memory-service.js +378 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts +10 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/trajectory.js +33 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts +68 -0
- package/packages/typescript/src/features/advanced-memory/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-memory/types.js +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts +6 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/actions/chain-example.js +178 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts +5 -0
- package/packages/typescript/src/features/advanced-planning/index.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/index.js +20 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts +3 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/providers/message-classifier.js +105 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts +77 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/services/planning-service.js +875 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts +78 -0
- package/packages/typescript/src/features/advanced-planning/types.d.ts.map +1 -0
- package/packages/typescript/src/features/advanced-planning/types.js +1 -0
- package/packages/typescript/src/features/autonomy/action.d.ts +14 -0
- package/packages/typescript/src/features/autonomy/action.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/action.js +177 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts +22 -0
- package/packages/typescript/src/features/autonomy/execution-facade.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/execution-facade.js +150 -0
- package/packages/typescript/src/features/autonomy/index.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/index.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/index.js +13 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts +21 -0
- package/packages/typescript/src/features/autonomy/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/providers.js +154 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts +11 -0
- package/packages/typescript/src/features/autonomy/routes.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/routes.js +158 -0
- package/packages/typescript/src/features/autonomy/service.d.ts +138 -0
- package/packages/typescript/src/features/autonomy/service.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/service.js +813 -0
- package/packages/typescript/src/features/autonomy/types.d.ts +31 -0
- package/packages/typescript/src/features/autonomy/types.d.ts.map +1 -0
- package/packages/typescript/src/features/autonomy/types.js +6 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts +4 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/choice.js +278 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/ignore.js +23 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts +10 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/index.js +9 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/none.js +26 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/actions/reply.js +81 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts +109 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.js +1033 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actionState.js +189 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts +35 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/actions.js +142 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/attachments.js +94 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts +17 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/character.js +190 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/choice.js +86 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/contextBench.js +50 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts +11 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/currentTime.js +56 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts +7 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/entities.js +39 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts +27 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/evaluators.js +107 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/index.js +19 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts +5 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/non-actionable-chatter.js +20 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts +18 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/providers.js +75 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts +14 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/recentMessages.js +325 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts +12 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/time.js +36 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts +3 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/uiContext.js +48 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts +8 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/providers/world.js +212 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts +4 -0
- package/packages/typescript/src/features/evaluator-doc-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/evaluator-doc-examples.js +13 -0
- package/packages/typescript/src/features/index.d.ts +58 -0
- package/packages/typescript/src/features/index.d.ts.map +1 -0
- package/packages/typescript/src/features/index.js +148 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts +8 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/actions.js +735 -0
- package/packages/typescript/src/features/knowledge/config.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/config.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/config.js +147 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts +53 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/ctx-embeddings.js +412 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/docs-loader.js +226 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/document-processor.js +629 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/documents-provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/documents-provider.js +112 -0
- package/packages/typescript/src/features/knowledge/index.d.ts +17 -0
- package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/index.js +30 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts +27 -0
- package/packages/typescript/src/features/knowledge/llm.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/llm.js +444 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts +3 -0
- package/packages/typescript/src/features/knowledge/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/provider.js +114 -0
- package/packages/typescript/src/features/knowledge/service.d.ts +83 -0
- package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/service.js +648 -0
- package/packages/typescript/src/features/knowledge/types.d.ts +162 -0
- package/packages/typescript/src/features/knowledge/types.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/types.js +57 -0
- package/packages/typescript/src/features/knowledge/url-ingest.d.ts +37 -0
- package/packages/typescript/src/features/knowledge/url-ingest.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/url-ingest.js +490 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts +22 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/utils.js +388 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/coreStatusAction.js +83 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts +3 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/listEjectedPluginsAction.js +88 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/core-status.js +48 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts +32 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/create.js +518 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts +16 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/eject.js +49 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts +18 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/install.js +59 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list-ejected.js +31 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts +14 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/list.js +51 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/reinject.js +43 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/search.js +52 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts +15 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin-handlers/sync.js +48 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts +25 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/plugin.js +442 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/actions/searchPluginAction.js +265 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +28 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.js +54 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts +27 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/index.js +50 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginConfigurationStatus.js +104 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/pluginStateProvider.js +105 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts +5 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/registryPluginsProvider.js +93 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts +9 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/providers/relevance.js +229 -0
- package/packages/typescript/src/features/plugin-manager/security.d.ts +33 -0
- package/packages/typescript/src/features/plugin-manager/security.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/security.js +80 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts +76 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/coreManagerService.js +489 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts +31 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginConfigurationService.js +57 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts +68 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginManagerService.js +1004 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts +84 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/services/pluginRegistryService.js +410 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts +142 -0
- package/packages/typescript/src/features/plugin-manager/types.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/types.js +13 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts +4 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/utils/paths.js +32 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts +7 -0
- package/packages/typescript/src/features/secrets/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/index.js +6 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/manage-secret.js +289 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts +3 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/request-secret.js +123 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts +12 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/actions/set-secret.js +241 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts +184 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/encryption.js +373 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/crypto/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/crypto/index.js +16 -0
- package/packages/typescript/src/features/secrets/index.d.ts +22 -0
- package/packages/typescript/src/features/secrets/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/index.js +24 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts +12 -0
- package/packages/typescript/src/features/secrets/onboarding/action.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/action.js +338 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts +99 -0
- package/packages/typescript/src/features/secrets/onboarding/config.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/config.js +240 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts +13 -0
- package/packages/typescript/src/features/secrets/onboarding/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/index.js +12 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts +16 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/provider.js +231 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts +134 -0
- package/packages/typescript/src/features/secrets/onboarding/service.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/onboarding/service.js +436 -0
- package/packages/typescript/src/features/secrets/plugin.d.ts +70 -0
- package/packages/typescript/src/features/secrets/plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/plugin.js +87 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts +5 -0
- package/packages/typescript/src/features/secrets/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/index.js +4 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts +22 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/providers/secrets-status.js +160 -0
- package/packages/typescript/src/features/secrets/services/index.d.ts +7 -0
- package/packages/typescript/src/features/secrets/services/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/index.js +5 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts +182 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/plugin-activator.js +617 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts +183 -0
- package/packages/typescript/src/features/secrets/services/secrets.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/services/secrets.js +566 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts +63 -0
- package/packages/typescript/src/features/secrets/storage/character-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/character-store.js +265 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts +47 -0
- package/packages/typescript/src/features/secrets/storage/component-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/component-store.js +264 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts +10 -0
- package/packages/typescript/src/features/secrets/storage/index.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/index.js +8 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/interface.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/interface.js +92 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts +44 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/memory-store.js +142 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts +52 -0
- package/packages/typescript/src/features/secrets/storage/world-store.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/storage/world-store.js +292 -0
- package/packages/typescript/src/features/secrets/types.d.ts +438 -0
- package/packages/typescript/src/features/secrets/types.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/types.js +57 -0
- package/packages/typescript/src/features/secrets/validation.d.ts +33 -0
- package/packages/typescript/src/features/secrets/validation.d.ts.map +1 -0
- package/packages/typescript/src/features/secrets/validation.js +389 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts +10 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.d.ts.map +1 -0
- package/packages/typescript/src/features/shared/schedule-follow-up-response.js +49 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts +289 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1432 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts +23 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/action-interceptor.js +178 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts +32 -0
- package/packages/typescript/src/features/trajectories/art-format.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/art-format.js +221 -0
- package/packages/typescript/src/features/trajectories/export.d.ts +40 -0
- package/packages/typescript/src/features/trajectories/export.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/export.js +99 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts +14 -0
- package/packages/typescript/src/features/trajectories/game-rewards.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/game-rewards.js +20 -0
- package/packages/typescript/src/features/trajectories/index.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/index.js +332 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts +59 -0
- package/packages/typescript/src/features/trajectories/integration.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/integration.js +83 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts +24 -0
- package/packages/typescript/src/features/trajectories/reward-service.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/reward-service.js +89 -0
- package/packages/typescript/src/features/trajectories/types.d.ts +261 -0
- package/packages/typescript/src/features/trajectories/types.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/types.js +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/evaluateTrust.js +230 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/hasTrustEngine.js +3 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/actions/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/index.js +5 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/recordTrustInteraction.js +194 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/requestElevation.js +170 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts +3 -0
- package/packages/typescript/src/features/trust/actions/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/roles.js +299 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts +5 -0
- package/packages/typescript/src/features/trust/actions/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/actions/settings.js +616 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts +4 -0
- package/packages/typescript/src/features/trust/evaluators/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/index.js +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/reflection.js +319 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/securityEvaluator.js +270 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts +3 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/evaluators/trustChangeEvaluator.js +201 -0
- package/packages/typescript/src/features/trust/index.d.ts +23 -0
- package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/index.js +96 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/adminTrust.js +49 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts +6 -0
- package/packages/typescript/src/features/trust/providers/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/index.js +5 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts +4 -0
- package/packages/typescript/src/features/trust/providers/roles.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/roles.js +142 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/securityStatus.js +110 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/settings.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/settings.js +222 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts +3 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/providers/trustProfile.js +68 -0
- package/packages/typescript/src/features/trust/schema.d.ts +1170 -0
- package/packages/typescript/src/features/trust/schema.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/schema.js +108 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts +40 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/ContextualPermissionSystem.js +317 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts +62 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/CredentialProtector.js +417 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts +142 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityModule.js +1057 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts +53 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/SecurityStore.js +123 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts +81 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/TrustEngine.js +621 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts +3 -0
- package/packages/typescript/src/features/trust/services/adminContext.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/adminContext.js +32 -0
- package/packages/typescript/src/features/trust/services/db.d.ts +12 -0
- package/packages/typescript/src/features/trust/services/db.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/db.js +10 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts +56 -0
- package/packages/typescript/src/features/trust/services/wrappers.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/services/wrappers.js +124 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts +185 -0
- package/packages/typescript/src/features/trust/types/permissions.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/permissions.js +58 -0
- package/packages/typescript/src/features/trust/types/security.d.ts +114 -0
- package/packages/typescript/src/features/trust/types/security.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/security.js +15 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts +179 -0
- package/packages/typescript/src/features/trust/types/trust.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/types/trust.js +25 -0
- package/packages/typescript/src/generated/action-docs.d.ts +2887 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/generated/action-docs.js +4115 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts +49 -0
- package/packages/typescript/src/generated/spec-helpers.d.ts.map +1 -0
- package/packages/typescript/src/generated/spec-helpers.js +78 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts +1093 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.d.ts.map +1 -0
- package/packages/typescript/src/i18n/generated/validation-keyword-data.js +1093 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts +25 -0
- package/packages/typescript/src/i18n/validation-keywords.d.ts.map +1 -0
- package/packages/typescript/src/i18n/validation-keywords.js +112 -0
- package/packages/typescript/src/identity-clusters.d.ts +4 -0
- package/packages/typescript/src/identity-clusters.d.ts.map +1 -0
- package/packages/typescript/src/identity-clusters.js +29 -0
- package/packages/typescript/src/index.d.ts +12 -0
- package/packages/typescript/src/index.d.ts.map +1 -0
- package/packages/typescript/src/index.js +13 -0
- package/packages/typescript/src/index.node.d.ts +84 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -0
- package/packages/typescript/src/index.node.js +118 -0
- package/packages/typescript/src/lifeops-passive-connectors.d.ts +7 -0
- package/packages/typescript/src/lifeops-passive-connectors.d.ts.map +1 -0
- package/packages/typescript/src/lifeops-passive-connectors.js +39 -0
- package/packages/typescript/src/logger.d.ts +121 -0
- package/packages/typescript/src/logger.d.ts.map +1 -0
- package/packages/typescript/src/logger.js +1024 -0
- package/packages/typescript/src/markdown/chunk.d.ts +50 -0
- package/packages/typescript/src/markdown/chunk.d.ts.map +1 -0
- package/packages/typescript/src/markdown/chunk.js +268 -0
- package/packages/typescript/src/markdown/code-spans.d.ts +42 -0
- package/packages/typescript/src/markdown/code-spans.d.ts.map +1 -0
- package/packages/typescript/src/markdown/code-spans.js +89 -0
- package/packages/typescript/src/markdown/fences.d.ts +50 -0
- package/packages/typescript/src/markdown/fences.d.ts.map +1 -0
- package/packages/typescript/src/markdown/fences.js +90 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts +24 -0
- package/packages/typescript/src/markdown/frontmatter.d.ts.map +1 -0
- package/packages/typescript/src/markdown/frontmatter.js +151 -0
- package/packages/typescript/src/markdown/index.d.ts +18 -0
- package/packages/typescript/src/markdown/index.d.ts.map +1 -0
- package/packages/typescript/src/markdown/index.js +17 -0
- package/packages/typescript/src/markdown/ir.d.ts +101 -0
- package/packages/typescript/src/markdown/ir.d.ts.map +1 -0
- package/packages/typescript/src/markdown/ir.js +789 -0
- package/packages/typescript/src/media/fetch.d.ts +39 -0
- package/packages/typescript/src/media/fetch.d.ts.map +1 -0
- package/packages/typescript/src/media/fetch.js +205 -0
- package/packages/typescript/src/media/index.d.ts +8 -0
- package/packages/typescript/src/media/index.d.ts.map +1 -0
- package/packages/typescript/src/media/index.js +7 -0
- package/packages/typescript/src/media/mime.d.ts +51 -0
- package/packages/typescript/src/media/mime.d.ts.map +1 -0
- package/packages/typescript/src/media/mime.js +225 -0
- package/packages/typescript/src/memory.d.ts +40 -0
- package/packages/typescript/src/memory.d.ts.map +1 -0
- package/packages/typescript/src/memory.js +58 -0
- package/packages/typescript/src/network/fetch-guard.d.ts +34 -0
- package/packages/typescript/src/network/fetch-guard.d.ts.map +1 -0
- package/packages/typescript/src/network/fetch-guard.js +136 -0
- package/packages/typescript/src/network/index.d.ts +11 -0
- package/packages/typescript/src/network/index.d.ts.map +1 -0
- package/packages/typescript/src/network/index.js +10 -0
- package/packages/typescript/src/network/ssrf.d.ts +58 -0
- package/packages/typescript/src/network/ssrf.d.ts.map +1 -0
- package/packages/typescript/src/network/ssrf.js +252 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts +3 -0
- package/packages/typescript/src/optimization/ab-analysis.d.ts.map +1 -0
- package/packages/typescript/src/optimization/ab-analysis.js +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts +8 -0
- package/packages/typescript/src/optimization-root-dir.d.ts.map +1 -0
- package/packages/typescript/src/optimization-root-dir.js +14 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts +16 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
- package/packages/typescript/src/plugin-lifecycle.js +590 -0
- package/packages/typescript/src/plugin.d.ts +13 -0
- package/packages/typescript/src/plugin.d.ts.map +1 -0
- package/packages/typescript/src/plugin.js +341 -0
- package/packages/typescript/src/plugins/index.d.ts +9 -0
- package/packages/typescript/src/plugins/index.d.ts.map +1 -0
- package/packages/typescript/src/plugins/index.js +8 -0
- package/packages/typescript/src/plugins/native-features.d.ts +15 -0
- package/packages/typescript/src/plugins/native-features.d.ts.map +1 -0
- package/packages/typescript/src/plugins/native-features.js +59 -0
- package/packages/typescript/src/prompts.d.ts +90 -0
- package/packages/typescript/src/prompts.d.ts.map +1 -0
- package/packages/typescript/src/prompts.js +1242 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts +19 -0
- package/packages/typescript/src/providers/onboarding-progress.d.ts.map +1 -0
- package/packages/typescript/src/providers/onboarding-progress.js +268 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts +28 -0
- package/packages/typescript/src/providers/skill-eligibility.d.ts.map +1 -0
- package/packages/typescript/src/providers/skill-eligibility.js +179 -0
- package/packages/typescript/src/provisioning.d.ts +54 -0
- package/packages/typescript/src/provisioning.d.ts.map +1 -0
- package/packages/typescript/src/provisioning.js +209 -0
- package/packages/typescript/src/roles.d.ts +70 -0
- package/packages/typescript/src/roles.d.ts.map +1 -0
- package/packages/typescript/src/roles.js +544 -0
- package/packages/typescript/src/runtime-composition.d.ts +129 -0
- package/packages/typescript/src/runtime-composition.d.ts.map +1 -0
- package/packages/typescript/src/runtime-composition.js +335 -0
- package/packages/typescript/src/runtime.d.ts +927 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -0
- package/packages/typescript/src/runtime.js +6292 -0
- package/packages/typescript/src/schemas/agent.d.ts +7 -0
- package/packages/typescript/src/schemas/agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/agent.js +112 -0
- package/packages/typescript/src/schemas/cache.d.ts +7 -0
- package/packages/typescript/src/schemas/cache.d.ts.map +1 -0
- package/packages/typescript/src/schemas/cache.js +55 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts +7 -0
- package/packages/typescript/src/schemas/channel-participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel-participant.js +49 -0
- package/packages/typescript/src/schemas/channel.d.ts +7 -0
- package/packages/typescript/src/schemas/channel.d.ts.map +1 -0
- package/packages/typescript/src/schemas/channel.js +94 -0
- package/packages/typescript/src/schemas/character.d.ts +445 -0
- package/packages/typescript/src/schemas/character.d.ts.map +1 -0
- package/packages/typescript/src/schemas/character.js +309 -0
- package/packages/typescript/src/schemas/component.d.ts +7 -0
- package/packages/typescript/src/schemas/component.d.ts.map +1 -0
- package/packages/typescript/src/schemas/component.js +156 -0
- package/packages/typescript/src/schemas/embedding.d.ts +7 -0
- package/packages/typescript/src/schemas/embedding.d.ts.map +1 -0
- package/packages/typescript/src/schemas/embedding.js +89 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts +29 -0
- package/packages/typescript/src/schemas/entity-identity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity-identity.js +334 -0
- package/packages/typescript/src/schemas/entity.d.ts +7 -0
- package/packages/typescript/src/schemas/entity.d.ts.map +1 -0
- package/packages/typescript/src/schemas/entity.js +69 -0
- package/packages/typescript/src/schemas/index.d.ts +77 -0
- package/packages/typescript/src/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/schemas/index.js +75 -0
- package/packages/typescript/src/schemas/log.d.ts +6 -0
- package/packages/typescript/src/schemas/log.d.ts.map +1 -0
- package/packages/typescript/src/schemas/log.js +93 -0
- package/packages/typescript/src/schemas/memory.d.ts +7 -0
- package/packages/typescript/src/schemas/memory.d.ts.map +1 -0
- package/packages/typescript/src/schemas/memory.js +167 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts +7 -0
- package/packages/typescript/src/schemas/message-server-agent.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server-agent.js +58 -0
- package/packages/typescript/src/schemas/message-server.d.ts +6 -0
- package/packages/typescript/src/schemas/message-server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message-server.js +62 -0
- package/packages/typescript/src/schemas/message.d.ts +7 -0
- package/packages/typescript/src/schemas/message.d.ts.map +1 -0
- package/packages/typescript/src/schemas/message.js +106 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-allowlist.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-allowlist.js +76 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts +7 -0
- package/packages/typescript/src/schemas/pairing-request.d.ts.map +1 -0
- package/packages/typescript/src/schemas/pairing-request.js +96 -0
- package/packages/typescript/src/schemas/participant.d.ts +6 -0
- package/packages/typescript/src/schemas/participant.d.ts.map +1 -0
- package/packages/typescript/src/schemas/participant.js +91 -0
- package/packages/typescript/src/schemas/relationship.d.ts +7 -0
- package/packages/typescript/src/schemas/relationship.d.ts.map +1 -0
- package/packages/typescript/src/schemas/relationship.js +102 -0
- package/packages/typescript/src/schemas/room.d.ts +6 -0
- package/packages/typescript/src/schemas/room.d.ts.map +1 -0
- package/packages/typescript/src/schemas/room.js +86 -0
- package/packages/typescript/src/schemas/server.d.ts +7 -0
- package/packages/typescript/src/schemas/server.d.ts.map +1 -0
- package/packages/typescript/src/schemas/server.js +33 -0
- package/packages/typescript/src/schemas/task.d.ts +6 -0
- package/packages/typescript/src/schemas/task.d.ts.map +1 -0
- package/packages/typescript/src/schemas/task.js +95 -0
- package/packages/typescript/src/schemas/world.d.ts +6 -0
- package/packages/typescript/src/schemas/world.d.ts.map +1 -0
- package/packages/typescript/src/schemas/world.js +64 -0
- package/packages/typescript/src/search.d.ts +359 -0
- package/packages/typescript/src/search.d.ts.map +1 -0
- package/packages/typescript/src/search.js +1580 -0
- package/packages/typescript/src/secrets.d.ts +6 -0
- package/packages/typescript/src/secrets.d.ts.map +1 -0
- package/packages/typescript/src/secrets.js +28 -0
- package/packages/typescript/src/security/external-content.d.ts +96 -0
- package/packages/typescript/src/security/external-content.d.ts.map +1 -0
- package/packages/typescript/src/security/external-content.js +253 -0
- package/packages/typescript/src/security/index.d.ts +12 -0
- package/packages/typescript/src/security/index.d.ts.map +1 -0
- package/packages/typescript/src/security/index.js +13 -0
- package/packages/typescript/src/security/redact.d.ts +111 -0
- package/packages/typescript/src/security/redact.d.ts.map +1 -0
- package/packages/typescript/src/security/redact.js +254 -0
- package/packages/typescript/src/services/agentEvent.d.ts +297 -0
- package/packages/typescript/src/services/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/services/agentEvent.js +422 -0
- package/packages/typescript/src/services/approval.d.ts +169 -0
- package/packages/typescript/src/services/approval.d.ts.map +1 -0
- package/packages/typescript/src/services/approval.js +399 -0
- package/packages/typescript/src/services/embedding.d.ts +29 -0
- package/packages/typescript/src/services/embedding.d.ts.map +1 -0
- package/packages/typescript/src/services/embedding.js +211 -0
- package/packages/typescript/src/services/followUp.d.ts +48 -0
- package/packages/typescript/src/services/followUp.d.ts.map +1 -0
- package/packages/typescript/src/services/followUp.js +333 -0
- package/packages/typescript/src/services/hook.d.ts +85 -0
- package/packages/typescript/src/services/hook.d.ts.map +1 -0
- package/packages/typescript/src/services/hook.js +396 -0
- package/packages/typescript/src/services/message.d.ts +147 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -0
- package/packages/typescript/src/services/message.js +4967 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts +240 -0
- package/packages/typescript/src/services/onboarding-cli.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-cli.js +688 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts +225 -0
- package/packages/typescript/src/services/onboarding-rpc.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-rpc.js +318 -0
- package/packages/typescript/src/services/onboarding-state.d.ts +155 -0
- package/packages/typescript/src/services/onboarding-state.d.ts.map +1 -0
- package/packages/typescript/src/services/onboarding-state.js +706 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts +23 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt-resolver.js +49 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts +116 -0
- package/packages/typescript/src/services/optimized-prompt.d.ts.map +1 -0
- package/packages/typescript/src/services/optimized-prompt.js +254 -0
- package/packages/typescript/src/services/pairing-integration.d.ts +96 -0
- package/packages/typescript/src/services/pairing-integration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-integration.js +145 -0
- package/packages/typescript/src/services/pairing-migration.d.ts +105 -0
- package/packages/typescript/src/services/pairing-migration.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing-migration.js +283 -0
- package/packages/typescript/src/services/pairing.d.ts +80 -0
- package/packages/typescript/src/services/pairing.d.ts.map +1 -0
- package/packages/typescript/src/services/pairing.js +253 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts +112 -0
- package/packages/typescript/src/services/plugin-hooks.d.ts.map +1 -0
- package/packages/typescript/src/services/plugin-hooks.js +164 -0
- package/packages/typescript/src/services/relationships.d.ts +350 -0
- package/packages/typescript/src/services/relationships.d.ts.map +1 -0
- package/packages/typescript/src/services/relationships.js +1653 -0
- package/packages/typescript/src/services/task-scheduler.d.ts +28 -0
- package/packages/typescript/src/services/task-scheduler.d.ts.map +1 -0
- package/packages/typescript/src/services/task-scheduler.js +89 -0
- package/packages/typescript/src/services/task.d.ts +133 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -0
- package/packages/typescript/src/services/task.js +559 -0
- package/packages/typescript/src/services/tool-policy.d.ts +186 -0
- package/packages/typescript/src/services/tool-policy.d.ts.map +1 -0
- package/packages/typescript/src/services/tool-policy.js +332 -0
- package/packages/typescript/src/services/trajectories.d.ts +34 -0
- package/packages/typescript/src/services/trajectories.d.ts.map +1 -0
- package/packages/typescript/src/services/trajectories.js +1 -0
- package/packages/typescript/src/services.d.ts +61 -0
- package/packages/typescript/src/services.d.ts.map +1 -0
- package/packages/typescript/src/services.js +99 -0
- package/packages/typescript/src/sessions/index.d.ts +17 -0
- package/packages/typescript/src/sessions/index.d.ts.map +1 -0
- package/packages/typescript/src/sessions/index.js +29 -0
- package/packages/typescript/src/sessions/provider.d.ts +71 -0
- package/packages/typescript/src/sessions/provider.d.ts.map +1 -0
- package/packages/typescript/src/sessions/provider.js +243 -0
- package/packages/typescript/src/sessions/session-key.d.ts +201 -0
- package/packages/typescript/src/sessions/session-key.d.ts.map +1 -0
- package/packages/typescript/src/sessions/session-key.js +398 -0
- package/packages/typescript/src/sessions/types.d.ts +197 -0
- package/packages/typescript/src/sessions/types.d.ts.map +1 -0
- package/packages/typescript/src/sessions/types.js +68 -0
- package/packages/typescript/src/settings.d.ts +99 -0
- package/packages/typescript/src/settings.d.ts.map +1 -0
- package/packages/typescript/src/settings.js +409 -0
- package/packages/typescript/src/should-respond.d.ts +2 -0
- package/packages/typescript/src/should-respond.d.ts.map +1 -0
- package/packages/typescript/src/should-respond.js +16 -0
- package/packages/typescript/src/streaming-context.d.ts +88 -0
- package/packages/typescript/src/streaming-context.d.ts.map +1 -0
- package/packages/typescript/src/streaming-context.js +160 -0
- package/packages/typescript/src/trajectory-context.d.ts +39 -0
- package/packages/typescript/src/trajectory-context.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-context.js +85 -0
- package/packages/typescript/src/trajectory-utils.d.ts +73 -0
- package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-utils.js +124 -0
- package/packages/typescript/src/types/agent.d.ts +67 -0
- package/packages/typescript/src/types/agent.d.ts.map +1 -0
- package/packages/typescript/src/types/agent.js +5 -0
- package/packages/typescript/src/types/agentEvent.d.ts +258 -0
- package/packages/typescript/src/types/agentEvent.d.ts.map +1 -0
- package/packages/typescript/src/types/agentEvent.js +11 -0
- package/packages/typescript/src/types/channel-config.d.ts +167 -0
- package/packages/typescript/src/types/channel-config.d.ts.map +1 -0
- package/packages/typescript/src/types/channel-config.js +7 -0
- package/packages/typescript/src/types/components.d.ts +363 -0
- package/packages/typescript/src/types/components.d.ts.map +1 -0
- package/packages/typescript/src/types/components.js +1 -0
- package/packages/typescript/src/types/database.d.ts +1079 -0
- package/packages/typescript/src/types/database.d.ts.map +1 -0
- package/packages/typescript/src/types/database.js +9 -0
- package/packages/typescript/src/types/environment.d.ts +73 -0
- package/packages/typescript/src/types/environment.d.ts.map +1 -0
- package/packages/typescript/src/types/environment.js +16 -0
- package/packages/typescript/src/types/events.d.ts +403 -0
- package/packages/typescript/src/types/events.d.ts.map +1 -0
- package/packages/typescript/src/types/events.js +85 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts +400 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/agent_pb.js +72 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts +364 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/components_pb.js +68 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts +694 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/database_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts +299 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/environment_pb.js +52 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts +746 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/events_pb.js +357 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts +799 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/ipc_pb.js +172 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts +63 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/knowledge_pb.js +18 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts +290 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/memory_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts +160 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/message_service_pb.js +88 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts +214 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/messaging_pb.js +78 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts +653 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/model_pb.js +237 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts +147 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/payment_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts +286 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/plugin_pb.js +86 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts +263 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/primitives_pb.js +38 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts +137 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/prompts_pb.js +27 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts +2687 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_interfaces_pb.js +392 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts +144 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/service_pb.js +99 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts +146 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/settings_pb.js +32 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts +259 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/state_pb.js +44 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts +120 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/task_pb.js +53 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts +205 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/tee_pb.js +89 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts +47 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.d.ts.map +1 -0
- package/packages/typescript/src/types/generated/eliza/v1/testing_pb.js +16 -0
- package/packages/typescript/src/types/hook.d.ts +338 -0
- package/packages/typescript/src/types/hook.d.ts.map +1 -0
- package/packages/typescript/src/types/hook.js +73 -0
- package/packages/typescript/src/types/index.d.ts +42 -0
- package/packages/typescript/src/types/index.d.ts.map +1 -0
- package/packages/typescript/src/types/index.js +50 -0
- package/packages/typescript/src/types/knowledge.d.ts +49 -0
- package/packages/typescript/src/types/knowledge.d.ts.map +1 -0
- package/packages/typescript/src/types/knowledge.js +1 -0
- package/packages/typescript/src/types/memory-storage.d.ts +28 -0
- package/packages/typescript/src/types/memory-storage.d.ts.map +1 -0
- package/packages/typescript/src/types/memory-storage.js +13 -0
- package/packages/typescript/src/types/memory.d.ts +517 -0
- package/packages/typescript/src/types/memory.d.ts.map +1 -0
- package/packages/typescript/src/types/memory.js +16 -0
- package/packages/typescript/src/types/message-service.d.ts +178 -0
- package/packages/typescript/src/types/message-service.d.ts.map +1 -0
- package/packages/typescript/src/types/message-service.js +1 -0
- package/packages/typescript/src/types/messaging.d.ts +358 -0
- package/packages/typescript/src/types/messaging.d.ts.map +1 -0
- package/packages/typescript/src/types/messaging.js +27 -0
- package/packages/typescript/src/types/model.d.ts +697 -0
- package/packages/typescript/src/types/model.d.ts.map +1 -0
- package/packages/typescript/src/types/model.js +247 -0
- package/packages/typescript/src/types/onboarding.d.ts +319 -0
- package/packages/typescript/src/types/onboarding.d.ts.map +1 -0
- package/packages/typescript/src/types/onboarding.js +97 -0
- package/packages/typescript/src/types/pairing.d.ts +124 -0
- package/packages/typescript/src/types/pairing.d.ts.map +1 -0
- package/packages/typescript/src/types/pairing.js +32 -0
- package/packages/typescript/src/types/payment.d.ts +67 -0
- package/packages/typescript/src/types/payment.d.ts.map +1 -0
- package/packages/typescript/src/types/payment.js +1 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts +234 -0
- package/packages/typescript/src/types/pipeline-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/pipeline-hooks.js +111 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts +381 -0
- package/packages/typescript/src/types/plugin-manifest.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-manifest.js +10 -0
- package/packages/typescript/src/types/plugin-store.d.ts +173 -0
- package/packages/typescript/src/types/plugin-store.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin-store.js +1 -0
- package/packages/typescript/src/types/plugin.d.ts +374 -0
- package/packages/typescript/src/types/plugin.d.ts.map +1 -0
- package/packages/typescript/src/types/plugin.js +1 -0
- package/packages/typescript/src/types/primitives.d.ts +176 -0
- package/packages/typescript/src/types/primitives.d.ts.map +1 -0
- package/packages/typescript/src/types/primitives.js +41 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts +126 -0
- package/packages/typescript/src/types/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-batcher.js +6 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts +41 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-hooks.js +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts +22 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-score-card.js +72 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts +53 -0
- package/packages/typescript/src/types/prompt-optimization-trace.d.ts.map +1 -0
- package/packages/typescript/src/types/prompt-optimization-trace.js +19 -0
- package/packages/typescript/src/types/prompts.d.ts +39 -0
- package/packages/typescript/src/types/prompts.d.ts.map +1 -0
- package/packages/typescript/src/types/prompts.js +7 -0
- package/packages/typescript/src/types/proto.d.ts +60 -0
- package/packages/typescript/src/types/proto.d.ts.map +1 -0
- package/packages/typescript/src/types/proto.js +53 -0
- package/packages/typescript/src/types/runtime.d.ts +445 -0
- package/packages/typescript/src/types/runtime.d.ts.map +1 -0
- package/packages/typescript/src/types/runtime.js +1 -0
- package/packages/typescript/src/types/schema-builder.d.ts +43 -0
- package/packages/typescript/src/types/schema-builder.d.ts.map +1 -0
- package/packages/typescript/src/types/schema-builder.js +16 -0
- package/packages/typescript/src/types/schema.d.ts +99 -0
- package/packages/typescript/src/types/schema.d.ts.map +1 -0
- package/packages/typescript/src/types/schema.js +11 -0
- package/packages/typescript/src/types/service-interfaces.d.ts +1200 -0
- package/packages/typescript/src/types/service-interfaces.d.ts.map +1 -0
- package/packages/typescript/src/types/service-interfaces.js +81 -0
- package/packages/typescript/src/types/service.d.ts +175 -0
- package/packages/typescript/src/types/service.d.ts.map +1 -0
- package/packages/typescript/src/types/service.js +79 -0
- package/packages/typescript/src/types/settings.d.ts +36 -0
- package/packages/typescript/src/types/settings.d.ts.map +1 -0
- package/packages/typescript/src/types/settings.js +1 -0
- package/packages/typescript/src/types/state.d.ts +251 -0
- package/packages/typescript/src/types/state.d.ts.map +1 -0
- package/packages/typescript/src/types/state.js +1 -0
- package/packages/typescript/src/types/streaming.d.ts +93 -0
- package/packages/typescript/src/types/streaming.d.ts.map +1 -0
- package/packages/typescript/src/types/streaming.js +21 -0
- package/packages/typescript/src/types/task.d.ts +122 -0
- package/packages/typescript/src/types/task.d.ts.map +1 -0
- package/packages/typescript/src/types/task.js +1 -0
- package/packages/typescript/src/types/tee.d.ts +3 -0
- package/packages/typescript/src/types/tee.d.ts.map +1 -0
- package/packages/typescript/src/types/tee.js +1 -0
- package/packages/typescript/src/types/testing.d.ts +15 -0
- package/packages/typescript/src/types/testing.d.ts.map +1 -0
- package/packages/typescript/src/types/testing.js +1 -0
- package/packages/typescript/src/types/tools.d.ts +166 -0
- package/packages/typescript/src/types/tools.d.ts.map +1 -0
- package/packages/typescript/src/types/tools.js +384 -0
- package/packages/typescript/src/types/trigger.d.ts +44 -0
- package/packages/typescript/src/types/trigger.d.ts.map +1 -0
- package/packages/typescript/src/types/trigger.js +1 -0
- package/packages/typescript/src/utils/action-results.d.ts +33 -0
- package/packages/typescript/src/utils/action-results.d.ts.map +1 -0
- package/packages/typescript/src/utils/action-results.js +169 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts +52 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/batch-processor.js +126 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts +97 -0
- package/packages/typescript/src/utils/batch-queue/index.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/index.js +175 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts +53 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/priority-queue.js +128 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts +18 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/semaphore.js +34 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts +57 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue/task-drain.js +150 -0
- package/packages/typescript/src/utils/batch-queue.d.ts +20 -0
- package/packages/typescript/src/utils/batch-queue.d.ts.map +1 -0
- package/packages/typescript/src/utils/batch-queue.js +19 -0
- package/packages/typescript/src/utils/boolean.d.ts +50 -0
- package/packages/typescript/src/utils/boolean.d.ts.map +1 -0
- package/packages/typescript/src/utils/boolean.js +73 -0
- package/packages/typescript/src/utils/buffer.d.ts +107 -0
- package/packages/typescript/src/utils/buffer.d.ts.map +1 -0
- package/packages/typescript/src/utils/buffer.js +229 -0
- package/packages/typescript/src/utils/channel-utils.d.ts +274 -0
- package/packages/typescript/src/utils/channel-utils.d.ts.map +1 -0
- package/packages/typescript/src/utils/channel-utils.js +337 -0
- package/packages/typescript/src/utils/context-catalog.d.ts +6 -0
- package/packages/typescript/src/utils/context-catalog.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-catalog.js +264 -0
- package/packages/typescript/src/utils/context-routing.d.ts +28 -0
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-routing.js +294 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts +92 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
- package/packages/typescript/src/utils/crypto-compat.js +373 -0
- package/packages/typescript/src/utils/deterministic.d.ts +9 -0
- package/packages/typescript/src/utils/deterministic.d.ts.map +1 -0
- package/packages/typescript/src/utils/deterministic.js +70 -0
- package/packages/typescript/src/utils/environment.d.ts +125 -0
- package/packages/typescript/src/utils/environment.d.ts.map +1 -0
- package/packages/typescript/src/utils/environment.js +290 -0
- package/packages/typescript/src/utils/example-names.d.ts +3 -0
- package/packages/typescript/src/utils/example-names.d.ts.map +1 -0
- package/packages/typescript/src/utils/example-names.js +30 -0
- package/packages/typescript/src/utils/json-llm.d.ts +17 -0
- package/packages/typescript/src/utils/json-llm.d.ts.map +1 -0
- package/packages/typescript/src/utils/json-llm.js +33 -0
- package/packages/typescript/src/utils/message-text.d.ts +5 -0
- package/packages/typescript/src/utils/message-text.d.ts.map +1 -0
- package/packages/typescript/src/utils/message-text.js +24 -0
- package/packages/typescript/src/utils/model-errors.d.ts +3 -0
- package/packages/typescript/src/utils/model-errors.d.ts.map +1 -0
- package/packages/typescript/src/utils/model-errors.js +23 -0
- package/packages/typescript/src/utils/node.d.ts +8 -0
- package/packages/typescript/src/utils/node.d.ts.map +1 -0
- package/packages/typescript/src/utils/node.js +12 -0
- package/packages/typescript/src/utils/paths.d.ts +97 -0
- package/packages/typescript/src/utils/paths.d.ts.map +1 -0
- package/packages/typescript/src/utils/paths.js +204 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts +163 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/batcher.js +896 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts +15 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/dispatcher.js +230 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts +66 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher/shared.js +101 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts +5 -0
- package/packages/typescript/src/utils/prompt-batcher.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-batcher.js +4 -0
- package/packages/typescript/src/utils/prompt-compression.d.ts +6 -0
- package/packages/typescript/src/utils/prompt-compression.d.ts.map +1 -0
- package/packages/typescript/src/utils/prompt-compression.js +14 -0
- package/packages/typescript/src/utils/retry.d.ts +128 -0
- package/packages/typescript/src/utils/retry.d.ts.map +1 -0
- package/packages/typescript/src/utils/retry.js +190 -0
- package/packages/typescript/src/utils/server-health.d.ts +35 -0
- package/packages/typescript/src/utils/server-health.d.ts.map +1 -0
- package/packages/typescript/src/utils/server-health.js +76 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts +12 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.d.ts.map +1 -0
- package/packages/typescript/src/utils/slice-to-fit-budget.js +36 -0
- package/packages/typescript/src/utils/state-dir.d.ts +19 -0
- package/packages/typescript/src/utils/state-dir.d.ts.map +1 -0
- package/packages/typescript/src/utils/state-dir.js +24 -0
- package/packages/typescript/src/utils/streaming.d.ts +275 -0
- package/packages/typescript/src/utils/streaming.d.ts.map +1 -0
- package/packages/typescript/src/utils/streaming.js +774 -0
- package/packages/typescript/src/utils/text-normalize.d.ts +23 -0
- package/packages/typescript/src/utils/text-normalize.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-normalize.js +42 -0
- package/packages/typescript/src/utils/text-splitting.d.ts +14 -0
- package/packages/typescript/src/utils/text-splitting.d.ts.map +1 -0
- package/packages/typescript/src/utils/text-splitting.js +66 -0
- package/packages/typescript/src/utils/toon.d.ts +8 -0
- package/packages/typescript/src/utils/toon.d.ts.map +1 -0
- package/packages/typescript/src/utils/toon.js +347 -0
- package/packages/typescript/src/utils/type-guards.d.ts +25 -0
- package/packages/typescript/src/utils/type-guards.d.ts.map +1 -0
- package/packages/typescript/src/utils/type-guards.js +73 -0
- package/packages/typescript/src/utils/union-find.d.ts +30 -0
- package/packages/typescript/src/utils/union-find.d.ts.map +1 -0
- package/packages/typescript/src/utils/union-find.js +81 -0
- package/packages/typescript/src/utils.d.ts +194 -0
- package/packages/typescript/src/utils.d.ts.map +1 -0
- package/packages/typescript/src/utils.js +1126 -0
- package/packages/typescript/src/validation/index.d.ts +8 -0
- package/packages/typescript/src/validation/index.d.ts.map +1 -0
- package/packages/typescript/src/validation/index.js +7 -0
- package/packages/typescript/src/validation/keywords.d.ts +26 -0
- package/packages/typescript/src/validation/keywords.d.ts.map +1 -0
- package/packages/typescript/src/validation/keywords.js +76 -0
- package/packages/typescript/src/validation/secrets.d.ts +94 -0
- package/packages/typescript/src/validation/secrets.d.ts.map +1 -0
- package/packages/typescript/src/validation/secrets.js +399 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.js +7 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +25 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts +45 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer.js +297 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.js +118 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message.js +260 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts +23 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-source.js +60 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.js +37 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.js +88 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts +91 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +10 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +13 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
- package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
- package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/index.js +16 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/index.js +1 -0
- package/packages/ui/src/components/composites/index.d.ts +27 -0
- package/packages/ui/src/components/composites/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/index.js +26 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/index.js +28 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
- package/packages/ui/src/components/composites/search/index.d.ts +3 -0
- package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/index.js +2 -0
- package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/search-input.js +10 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts +18 -0
- package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/searchbar.js +25 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/index.js +10 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +94 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +491 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +77 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
- package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
- package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/index.js +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/index.js +4 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
- package/packages/ui/src/components/primitives/index.d.ts +26 -0
- package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
- package/packages/ui/src/components/primitives/index.js +25 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/admin-dialog.js +48 -0
- package/packages/ui/src/components/ui/badge.d.ts +10 -0
- package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/badge.js +21 -0
- package/packages/ui/src/components/ui/banner.d.ts +17 -0
- package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/banner.js +29 -0
- package/packages/ui/src/components/ui/button.d.ts +13 -0
- package/packages/ui/src/components/ui/button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/button.js +40 -0
- package/packages/ui/src/components/ui/card.d.ts +15 -0
- package/packages/ui/src/components/ui/card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/card.js +32 -0
- package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.js +16 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
- package/packages/ui/src/components/ui/connection-status.d.ts +15 -0
- package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
- package/packages/ui/src/components/ui/connection-status.js +25 -0
- package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.d.ts +25 -0
- package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.js +23 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
- package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
- package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dropdown-menu.js +35 -0
- package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts +22 -0
- package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
- package/packages/ui/src/components/ui/error-boundary.js +27 -0
- package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
- package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field-switch.js +10 -0
- package/packages/ui/src/components/ui/field.d.ts +12 -0
- package/packages/ui/src/components/ui/field.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field.js +21 -0
- package/packages/ui/src/components/ui/form-select.d.ts +14 -0
- package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/form-select.js +9 -0
- package/packages/ui/src/components/ui/grid.d.ts +10 -0
- package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
- package/packages/ui/src/components/ui/grid.js +31 -0
- package/packages/ui/src/components/ui/input.d.ts +12 -0
- package/packages/ui/src/components/ui/input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/input.js +29 -0
- package/packages/ui/src/components/ui/label.d.ts +5 -0
- package/packages/ui/src/components/ui/label.d.ts.map +1 -0
- package/packages/ui/src/components/ui/label.js +10 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/new-action-button.js +13 -0
- package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.js +10 -0
- package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
- package/packages/ui/src/components/ui/section-card.js +10 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
- package/packages/ui/src/components/ui/segmented-control.js +10 -0
- package/packages/ui/src/components/ui/select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/select.js +27 -0
- package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.js +60 -0
- package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
- package/packages/ui/src/components/ui/skeleton.js +24 -0
- package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
- package/packages/ui/src/components/ui/slider.js +7 -0
- package/packages/ui/src/components/ui/sonner.d.ts +2 -0
- package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/sonner.js +1 -0
- package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.d.ts +11 -0
- package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
- package/packages/ui/src/components/ui/stack.js +40 -0
- package/packages/ui/src/components/ui/status-badge.d.ts +27 -0
- package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/status-badge.js +70 -0
- package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/switch.js +7 -0
- package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tabs.js +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-editor.js +34 -0
- package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
- package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-input.js +1 -0
- package/packages/ui/src/components/ui/textarea.d.ts +12 -0
- package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
- package/packages/ui/src/components/ui/textarea.js +29 -0
- package/packages/ui/src/components/ui/themed-select.d.ts +22 -0
- package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/themed-select.js +137 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts +54 -0
- package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip-extended.js +114 -0
- package/packages/ui/src/components/ui/tooltip.d.ts +18 -0
- package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip.js +13 -0
- package/packages/ui/src/components/ui/typography.d.ts +15 -0
- package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
- package/packages/ui/src/components/ui/typography.js +46 -0
- package/packages/ui/src/hooks/index.d.ts +6 -0
- package/packages/ui/src/hooks/index.d.ts.map +1 -0
- package/packages/ui/src/hooks/index.js +5 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
- package/packages/ui/src/hooks/useClickOutside.js +22 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
- package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
- package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
- package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
- package/packages/ui/src/hooks/useTimeout.js +26 -0
- package/packages/ui/src/index.d.ts +8 -0
- package/packages/ui/src/index.d.ts.map +1 -0
- package/packages/ui/src/index.js +7 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/index.js +1 -0
- package/packages/ui/src/layouts/index.d.ts +5 -0
- package/packages/ui/src/layouts/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/index.js +4 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
- package/packages/ui/src/layouts/layout-test-utils.js +36 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/index.js +4 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +287 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.js +8 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +37 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts +4 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/index.js +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +65 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts +13 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-mobile-sidebar-controls.js +5 -0
- package/packages/ui/src/lib/floating-layers.d.ts +17 -0
- package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
- package/packages/ui/src/lib/floating-layers.js +20 -0
- package/packages/ui/src/lib/utils.d.ts +3 -0
- package/packages/ui/src/lib/utils.d.ts.map +1 -0
- package/packages/ui/src/lib/utils.js +5 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
- package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
- package/packages/ui/src/types/onboarding.d.ts +8 -0
- package/packages/ui/src/types/onboarding.d.ts.map +1 -0
- package/packages/ui/src/types/onboarding.js +17 -0
- package/plugins/plugin-browser-bridge/src/actions.d.ts +44 -0
- package/plugins/plugin-browser-bridge/src/actions.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/actions.js +234 -0
- package/plugins/plugin-browser-bridge/src/contracts.d.ts +272 -0
- package/plugins/plugin-browser-bridge/src/contracts.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/contracts.js +48 -0
- package/plugins/plugin-browser-bridge/src/index.d.ts +19 -0
- package/plugins/plugin-browser-bridge/src/index.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/index.js +18 -0
- package/plugins/plugin-browser-bridge/src/packaging.d.ts +27 -0
- package/plugins/plugin-browser-bridge/src/packaging.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/packaging.js +503 -0
- package/plugins/plugin-browser-bridge/src/plugin.d.ts +10 -0
- package/plugins/plugin-browser-bridge/src/plugin.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/plugin.js +140 -0
- package/plugins/plugin-browser-bridge/src/routes.d.ts +37 -0
- package/plugins/plugin-browser-bridge/src/routes.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/routes.js +496 -0
- package/plugins/plugin-browser-bridge/src/schema.d.ts +2250 -0
- package/plugins/plugin-browser-bridge/src/schema.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/schema.js +111 -0
- package/plugins/plugin-browser-bridge/src/service.d.ts +28 -0
- package/plugins/plugin-browser-bridge/src/service.d.ts.map +1 -0
- package/plugins/plugin-browser-bridge/src/service.js +1 -0
- package/styles/electrobun-mac-window-drag.css +94 -0
- package/styles/theme.css +73 -0
- package/README.md +0 -6
- package/dist/components/ui/badge.d.ts +0 -10
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -20
- package/dist/components/ui/banner.d.ts +0 -18
- package/dist/components/ui/banner.d.ts.map +0 -1
- package/dist/components/ui/banner.js +0 -27
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -16
- package/dist/components/ui/chat-atoms.d.ts +0 -26
- package/dist/components/ui/chat-atoms.d.ts.map +0 -1
- package/dist/components/ui/chat-atoms.js +0 -17
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.d.ts +0 -12
- package/dist/components/ui/confirm-delete.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.js +0 -13
- package/dist/components/ui/confirm-dialog.d.ts +0 -24
- package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/components/ui/confirm-dialog.js +0 -55
- package/dist/components/ui/connection-status.d.ts +0 -9
- package/dist/components/ui/connection-status.d.ts.map +0 -1
- package/dist/components/ui/connection-status.js +0 -25
- package/dist/components/ui/copy-button.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -20
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -35
- package/dist/components/ui/empty-state.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.d.ts +0 -18
- package/dist/components/ui/error-boundary.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.js +0 -27
- package/dist/components/ui/grid.d.ts +0 -11
- package/dist/components/ui/grid.d.ts.map +0 -1
- package/dist/components/ui/grid.js +0 -30
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -8
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -9
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/save-footer.d.ts.map +0 -1
- package/dist/components/ui/save-footer.js +0 -9
- package/dist/components/ui/search-bar.d.ts +0 -17
- package/dist/components/ui/search-bar.d.ts.map +0 -1
- package/dist/components/ui/search-bar.js +0 -19
- package/dist/components/ui/search-input.d.ts.map +0 -1
- package/dist/components/ui/search-input.js +0 -9
- package/dist/components/ui/section-card.d.ts.map +0 -1
- package/dist/components/ui/section-card.js +0 -9
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -26
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -25
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -7
- package/dist/components/ui/sonner.d.ts +0 -5
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/sonner.js +0 -15
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/stack.d.ts +0 -13
- package/dist/components/ui/stack.d.ts.map +0 -1
- package/dist/components/ui/stack.js +0 -39
- package/dist/components/ui/status-badge.d.ts +0 -20
- package/dist/components/ui/status-badge.d.ts.map +0 -1
- package/dist/components/ui/status-badge.js +0 -41
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -12
- package/dist/components/ui/tag-editor.d.ts +0 -24
- package/dist/components/ui/tag-editor.d.ts.map +0 -1
- package/dist/components/ui/tag-editor.js +0 -32
- package/dist/components/ui/tag-input.d.ts +0 -19
- package/dist/components/ui/tag-input.d.ts.map +0 -1
- package/dist/components/ui/tag-input.js +0 -28
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -8
- package/dist/components/ui/themed-select.d.ts +0 -27
- package/dist/components/ui/themed-select.d.ts.map +0 -1
- package/dist/components/ui/themed-select.js +0 -57
- package/dist/components/ui/tooltip-extended.d.ts +0 -76
- package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
- package/dist/components/ui/tooltip-extended.js +0 -128
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/typography.d.ts +0 -17
- package/dist/components/ui/typography.d.ts.map +0 -1
- package/dist/components/ui/typography.js +0 -44
- package/dist/index.d.ts +0 -42
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -43
- package/dist/lib/button-styles.d.ts +0 -12
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/button-styles.js +0 -11
- package/dist/lib/utils.d.ts +0 -6
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -8
- package/dist/package.json +0 -65
- package/dist/styles/theme.css +0 -193
- package/src/styles/theme.css +0 -193
- /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
|
@@ -0,0 +1,3227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* REST API server for the Eliza Control UI.
|
|
3
|
+
*
|
|
4
|
+
* Exposes HTTP endpoints that the UI frontend expects, backed by the
|
|
5
|
+
* elizaOS AgentRuntime. Default port: 2138. In dev mode, the Vite UI
|
|
6
|
+
* dev server proxies /api and /ws here (see eliza/packages/app-core/scripts/dev-ui.mjs).
|
|
7
|
+
*/
|
|
8
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
9
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
10
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
11
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return path;
|
|
15
|
+
};
|
|
16
|
+
import crypto from "node:crypto";
|
|
17
|
+
// dns/promises moved to server-helpers-mcp.ts
|
|
18
|
+
import fs from "node:fs";
|
|
19
|
+
import http from "node:http";
|
|
20
|
+
import { createRequire } from "node:module";
|
|
21
|
+
function tokenMatches(expected, provided) {
|
|
22
|
+
const expectedBuf = Buffer.from(expected);
|
|
23
|
+
const providedBuf = Buffer.from(provided);
|
|
24
|
+
return (expectedBuf.length === providedBuf.length &&
|
|
25
|
+
crypto.timingSafeEqual(expectedBuf, providedBuf));
|
|
26
|
+
}
|
|
27
|
+
const MAX_BODY_BYTES = 1024 * 1024; // 1 MB
|
|
28
|
+
import os from "node:os";
|
|
29
|
+
import path from "node:path";
|
|
30
|
+
// Discord local routes extracted to @elizaos/plugin-discord (setup-routes.ts)
|
|
31
|
+
import { DropService, setElizaMakerDropService } from "@elizaos/app-elizamaker";
|
|
32
|
+
import { handleKnowledgeRoutes } from "@elizaos/app-knowledge/routes";
|
|
33
|
+
import { ensurePrivyWalletsForCustomUser, isPrivyWalletProvisioningEnabled, } from "@elizaos/app-steward/services/privy-wallets";
|
|
34
|
+
import { wireCoordinatorBridgesWhenReady } from "@elizaos/app-task-coordinator/api/coordinator-wiring";
|
|
35
|
+
// Phase 2 extraction: LifeOps routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
|
|
36
|
+
// import { handleWalletTradeExecuteRoute } from "./wallet-trade-routes.js";
|
|
37
|
+
// import {
|
|
38
|
+
// loadWalletTradingProfile,
|
|
39
|
+
// recordWalletTradeLedgerEntry,
|
|
40
|
+
// updateWalletTradeLedgerEntryStatus,
|
|
41
|
+
// } from "./wallet-trading-profile.js";
|
|
42
|
+
// Phase 2 extraction: Website-blocker routes → app-lifeops/src/routes/plugin.ts (lifeopsPlugin)
|
|
43
|
+
import { handleTrainingRoutes, handleTrajectoryRoute, } from "@elizaos/app-training/routes";
|
|
44
|
+
import { logger, stringToUuid, } from "@elizaos/core";
|
|
45
|
+
import { credTypesForConnector, getStylePresets, normalizeCharacterLanguage, resolveApiBindHost, resolveServerOnlyPort, resolveStylePresetByAvatarIndex, } from "@elizaos/shared";
|
|
46
|
+
import { WebSocketServer } from "ws";
|
|
47
|
+
import { getGlobalAwarenessRegistry } from "../awareness/registry.js";
|
|
48
|
+
import { loadElizaConfig, saveElizaConfig, } from "../config/config.js";
|
|
49
|
+
import { resolveModelsCacheDir, resolveStateDir } from "../config/paths.js";
|
|
50
|
+
import { isStreamingDestinationConfigured } from "../config/plugin-auto-enable.js";
|
|
51
|
+
import { CharacterSchema } from "../config/zod-schema.js";
|
|
52
|
+
// ONBOARDING_CLOUD_PROVIDER_OPTIONS, ONBOARDING_PROVIDER_CATALOG moved to server-helpers-config.ts
|
|
53
|
+
import { createIntegrationTelemetrySpan } from "../diagnostics/integration-observability.js";
|
|
54
|
+
import { validateX402Startup } from "../middleware/x402/startup-validator.js";
|
|
55
|
+
import { resolveDefaultAgentWorkspaceDir } from "../providers/workspace.js";
|
|
56
|
+
import { getAgentEventService, } from "../runtime/agent-event-service.js";
|
|
57
|
+
import { resolvePreferredProviderId, resolvePrimaryModel, } from "../runtime/eliza.js";
|
|
58
|
+
import { createColdStrategy, createHotStrategy, DefaultRuntimeOperationManager, defaultClassifier, getDefaultHealthChecker, getDefaultRepository, } from "../runtime/operations/index.js";
|
|
59
|
+
import { classifyRegistryPluginRelease } from "../runtime/release-plugin-policy.js";
|
|
60
|
+
import { AUDIT_EVENT_TYPES, AUDIT_SEVERITIES, getAuditFeedSize, queryAuditFeed, subscribeAuditFeed, } from "../security/audit-log.js";
|
|
61
|
+
import { isLoopbackHost } from "../security/network-policy.js";
|
|
62
|
+
import { AgentExportError, estimateExportSize, exportAgent, importAgent, } from "../services/agent-export.js";
|
|
63
|
+
import { AppManager } from "../services/app-manager.js";
|
|
64
|
+
import { registerClientChatSendHandler } from "../services/client-chat-sender.js";
|
|
65
|
+
import { createConfigPluginManager } from "../services/config-plugin-manager.js";
|
|
66
|
+
import { isCoreManagerLike, isPluginManagerLike, } from "../services/plugin-manager-types.js";
|
|
67
|
+
// signal-pairing: SignalPairingSession, sanitizeAccountId, signalLogout extracted to @elizaos/plugin-signal
|
|
68
|
+
import { signalAuthExists } from "../services/signal-pairing.js";
|
|
69
|
+
import { streamManager } from "../services/stream-manager.js";
|
|
70
|
+
import { clearTelegramAccountAuthState, clearTelegramAccountSession, TelegramAccountAuthSession, telegramAccountAuthStateExists, telegramAccountSessionExists, } from "../services/telegram-account-auth.js";
|
|
71
|
+
import { sanitizeAccountId as sanitizeWhatsAppAccountId, WhatsAppPairingSession, whatsappAuthExists, whatsappLogout, } from "../services/whatsapp-pairing.js";
|
|
72
|
+
// Telegram account auth: moved to @elizaos/plugin-telegram (account-setup-routes + account-auth-service).
|
|
73
|
+
// WhatsApp pairing: route handlers moved to @elizaos/plugin-whatsapp.
|
|
74
|
+
import { executeTriggerTask, getTriggerHealthSnapshot, getTriggerLimit, listTriggerTasks, readTriggerConfig, readTriggerRuns, TRIGGER_TASK_NAME, TRIGGER_TASK_TAGS, taskToTriggerSummary, triggersFeatureEnabled, } from "../triggers/runtime.js";
|
|
75
|
+
import { buildTriggerConfig, buildTriggerMetadata, DISABLED_TRIGGER_INTERVAL_MS, normalizeTriggerDraft, } from "../triggers/scheduling.js";
|
|
76
|
+
import { parseClampedInteger } from "../utils/number-parsing.js";
|
|
77
|
+
import { handleAccountsRoutes } from "./accounts-routes.js";
|
|
78
|
+
import { handleAgentAdminRoutes } from "./agent-admin-routes.js";
|
|
79
|
+
import { handleAgentLifecycleRoutes } from "./agent-lifecycle-routes.js";
|
|
80
|
+
import { detectRuntimeModel, resolveProviderFromModel } from "./agent-model.js";
|
|
81
|
+
import { handleAgentStatusRoutes } from "./agent-status-routes.js";
|
|
82
|
+
import { handleAgentTransferRoutes } from "./agent-transfer-routes.js";
|
|
83
|
+
import { handleAppPackageRoutes } from "./app-package-routes.js";
|
|
84
|
+
import { handleAppsRoutes } from "./apps-routes.js";
|
|
85
|
+
import { handleAuthRoutes } from "./auth-routes.js";
|
|
86
|
+
import { handleAvatarRoutes } from "./avatar-routes.js";
|
|
87
|
+
import { handleBlueBubblesRoute, resolveBlueBubblesWebhookPath, } from "./bluebubbles-routes.js";
|
|
88
|
+
import { handleBrowserWorkspaceRoutes } from "./browser-workspace-routes.js";
|
|
89
|
+
import { handleBugReportRoutes } from "./bug-report-routes.js";
|
|
90
|
+
import { handleCharacterRoutes } from "./character-routes.js";
|
|
91
|
+
import { handleChatRoutes, initSse as initSseFromChatRoutes, writeSseJson as writeSseJsonFromChatRoutes, } from "./chat-routes.js";
|
|
92
|
+
import { handleCloudBillingRoute } from "./cloud-billing-routes.js";
|
|
93
|
+
import { handleCloudCompatRoute } from "./cloud-compat-routes.js";
|
|
94
|
+
import { isCloudProvisionedContainer } from "./cloud-provisioning.js";
|
|
95
|
+
import { handleCloudRelayRoute } from "./cloud-relay-routes.js";
|
|
96
|
+
import { handleCloudRoute } from "./cloud-routes.js";
|
|
97
|
+
import { handleCloudStatusRoutes } from "./cloud-status-routes.js";
|
|
98
|
+
import { handleCodingAgentsFallback } from "./coding-agents-fallback-routes.js";
|
|
99
|
+
import { handleConfigRoutes } from "./config-routes.js";
|
|
100
|
+
import { ConnectorHealthMonitor } from "./connector-health.js";
|
|
101
|
+
import { handleConnectorRoutes } from "./connector-routes.js";
|
|
102
|
+
import { extractConversationMetadataFromRoom } from "./conversation-metadata.js";
|
|
103
|
+
import { handleConversationRoutes } from "./conversation-routes.js";
|
|
104
|
+
import { handleCuratedSkillsRoutes } from "./curated-skills-routes.js";
|
|
105
|
+
import { handleDatabaseRoute } from "./database.js";
|
|
106
|
+
import { handleDiagnosticsRoutes } from "./diagnostics-routes.js";
|
|
107
|
+
import { handleExperienceRoutes } from "./experience-routes.js";
|
|
108
|
+
import { handleHealthRoutes } from "./health-routes.js";
|
|
109
|
+
import { readJsonBody as parseJsonBody, readRequestBody, sendJson, sendJsonError, } from "./http-helpers.js";
|
|
110
|
+
// iMessage routes extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes)
|
|
111
|
+
// import { handleIMessageRoute } from "./imessage-routes.js";
|
|
112
|
+
import { handleInboxRoute } from "./inbox-routes.js";
|
|
113
|
+
import { handleMcpRoutes } from "./mcp-routes.js";
|
|
114
|
+
import { pushWithBatchEvict } from "./memory-bounds.js";
|
|
115
|
+
import { handleMemoryRoutes } from "./memory-routes.js";
|
|
116
|
+
import { handleMiscRoutes } from "./misc-routes.js";
|
|
117
|
+
import { handleModelsRoutes } from "./models-routes.js";
|
|
118
|
+
import { tryHandleMusicPlayerStatusFallback } from "./music-player-route-fallback.js";
|
|
119
|
+
import { handleOnboardingRoutes } from "./onboarding-routes.js";
|
|
120
|
+
import { handlePermissionRoutes } from "./permissions-routes.js";
|
|
121
|
+
import { handlePermissionsExtraRoutes } from "./permissions-routes-extra.js";
|
|
122
|
+
import { handlePluginRoutes } from "./plugin-routes.js";
|
|
123
|
+
import { handleProviderSwitchRoutes } from "./provider-switch-routes.js";
|
|
124
|
+
import { handleRegistryRoutes } from "./registry-routes.js";
|
|
125
|
+
import { RegistryService } from "./registry-service.js";
|
|
126
|
+
import { handleRelationshipsRoutes } from "./relationships-routes.js";
|
|
127
|
+
import { isPublicRuntimePluginRoute, tryHandleRuntimePluginRoute, } from "./runtime-plugin-routes.js";
|
|
128
|
+
import { handleSandboxRoute } from "./sandbox-routes.js";
|
|
129
|
+
import { cloneWithoutBlockedObjectKeys, decodePathComponent, getErrorMessage, hasPersistedOnboardingState, isUuidLike, patchTouchesProviderSelection, } from "./server-helpers.js";
|
|
130
|
+
// signal-routes: handleSignalRoute dispatch extracted to @elizaos/plugin-signal (setup-routes.ts)
|
|
131
|
+
import { applySignalQrOverride } from "./signal-routes.js";
|
|
132
|
+
import { discoverSkills } from "./skill-discovery-helpers.js";
|
|
133
|
+
import { handleSkillsRoutes } from "./skills-routes.js";
|
|
134
|
+
import { handleSubscriptionRoutes } from "./subscription-routes.js";
|
|
135
|
+
import { handleTelegramAccountRoute } from "./telegram-account-routes.js";
|
|
136
|
+
import { handleTriggerRoutes } from "./trigger-routes.js";
|
|
137
|
+
import { handleTtsRoutes } from "./tts-routes.js";
|
|
138
|
+
import { normalizeJsonRpcUrl, probeJsonRpcEndpoint, TxService, } from "./tx-service.js";
|
|
139
|
+
import { handleUpdateRoutes } from "./update-routes.js";
|
|
140
|
+
import {
|
|
141
|
+
// Balance/import/generate helpers moved to @elizaos/app-steward plugin routes.
|
|
142
|
+
// generateWalletKeys, setSolanaWalletEnv moved to server-helpers-config.ts
|
|
143
|
+
getWalletAddresses, initStewardWalletCache, } from "./wallet.js";
|
|
144
|
+
// Wallet dispatch moved to @elizaos/app-steward plugin routes.
|
|
145
|
+
// import { handleWalletBscRoutes } from "./wallet-bsc-routes.js";
|
|
146
|
+
import { EVM_PLUGIN_PACKAGE, resolveWalletAutomationMode as resolveAgentAutomationModeFromConfig, resolveWalletCapabilityStatus, } from "./wallet-capability.js";
|
|
147
|
+
import { handleWalletRoutes } from "./wallet-routes.js";
|
|
148
|
+
import { resolveWalletRpcReadiness } from "./wallet-rpc.js";
|
|
149
|
+
import { applyWhatsAppQrOverride, handleWhatsAppRoute, } from "./whatsapp-routes.js";
|
|
150
|
+
import { handleWorkbenchRoutes } from "./workbench-routes.js";
|
|
151
|
+
import { handleXRelayRoute } from "./x-relay-routes.js";
|
|
152
|
+
export { executeFallbackParsedActions, extractXmlParams, inferBalanceChainFromText, isBalanceIntent, maybeHandleDirectBinanceSkillRequest, parseFallbackActionBlocks, shouldForceCheckBalanceFallback, } from "./binance-skill-helpers.js";
|
|
153
|
+
export { isClientVisibleNoResponse, isNoResponsePlaceholder, stripAssistantStageDirections, } from "./chat-text-helpers.js";
|
|
154
|
+
// Re-export helper functions from server-helpers.ts for backwards compatibility
|
|
155
|
+
export { buildChatAttachments, buildUserMessages, buildWalletActionNotExecutedReply, cloneWithoutBlockedObjectKeys, decodePathComponent, findOwnPackageRoot, getErrorMessage, hasBlockedObjectKeyDeep, IMAGE_ONLY_CHAT_FALLBACK_PROMPT, isUuidLike, isWalletActionRequiredIntent, maybeAugmentChatMessageWithKnowledge, maybeAugmentChatMessageWithLanguage, maybeAugmentChatMessageWithWalletContext, normalizeIncomingChatPrompt, persistConversationRoomTitle, resolveAppUserName, resolveConversationGreetingText, resolveWalletModeGuidanceReply, trimWalletProgressPrefix, validateChatImages, WALLET_EXECUTION_INTENT_RE, WALLET_PROGRESS_ONLY_RE, } from "./server-helpers.js";
|
|
156
|
+
// NOTE: Internal usage of these functions is handled by individual `import`
|
|
157
|
+
// statements placed where each function was originally defined (see below).
|
|
158
|
+
// The `export { ... } from` above re-exports them for external consumers.
|
|
159
|
+
import { getInventoryProviderOptions, getModelOptions, getOrFetchAllProviders, getOrFetchProvider, paramKeyToCategory, providerCachePath, readProviderCache, } from "./model-provider-helpers.js";
|
|
160
|
+
import { AGENT_EVENT_ALLOWED_STREAMS, aggregateSecrets, BLOCKED_ENV_KEYS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, getReleaseBundledPluginIds, maskValue, } from "./plugin-discovery-helpers.js";
|
|
161
|
+
const _nodeRequire = createRequire(import.meta.url);
|
|
162
|
+
// Dynamic import (not require) because the plugin is ESM-only and bun's
|
|
163
|
+
// createRequire cannot load ESM packages. Top-level await is settled before
|
|
164
|
+
// any consumer reads the binding.
|
|
165
|
+
let agentOrchestratorCompat = null;
|
|
166
|
+
try {
|
|
167
|
+
agentOrchestratorCompat = await import("@elizaos/plugin-agent-orchestrator");
|
|
168
|
+
}
|
|
169
|
+
catch {
|
|
170
|
+
agentOrchestratorCompat = null;
|
|
171
|
+
}
|
|
172
|
+
// Re-export for downstream consumers (e.g. @elizaos/app-core)
|
|
173
|
+
export { AGENT_EVENT_ALLOWED_STREAMS, CONFIG_WRITE_ALLOWED_TOP_KEYS, discoverInstalledPlugins, discoverPluginsFromManifest, findPrimaryEnvKey, readBundledPluginPackageMetadata, } from "./plugin-discovery-helpers.js";
|
|
174
|
+
function getAgentEventSvc(runtime) {
|
|
175
|
+
return getAgentEventService(runtime);
|
|
176
|
+
}
|
|
177
|
+
function requirePluginManager(runtime) {
|
|
178
|
+
const service = runtime?.getService("plugin_manager");
|
|
179
|
+
if (!isPluginManagerLike(service)) {
|
|
180
|
+
throw new Error("Plugin manager service not found");
|
|
181
|
+
}
|
|
182
|
+
return wrapPluginManagerWithLocalFallback(service);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The runtime plugin manager's registry client only fetches from GitHub and
|
|
186
|
+
* scans a `plugins/` dir for `elizaos.plugin.json`. Workspace-vendored plugins
|
|
187
|
+
* (under `packages/plugin-*`) are invisible to it. Wrap `installPlugin` so that
|
|
188
|
+
* when it returns "not found in the registry" we retry using our own
|
|
189
|
+
* registry-client (which discovers workspace packages and node_modules symlinks).
|
|
190
|
+
*/
|
|
191
|
+
function wrapPluginManagerWithLocalFallback(pm) {
|
|
192
|
+
const originalInstall = pm.installPlugin.bind(pm);
|
|
193
|
+
const wrapped = Object.create(pm);
|
|
194
|
+
wrapped.installPlugin = async (pluginName, onProgress) => {
|
|
195
|
+
const result = await originalInstall(pluginName, onProgress);
|
|
196
|
+
if (result.success ||
|
|
197
|
+
!result.error?.includes("not found in the registry")) {
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
// Upstream registry missed it — check Eliza's own local discovery.
|
|
201
|
+
const { getPluginInfo } = await import("../services/registry-client.js");
|
|
202
|
+
const localInfo = await getPluginInfo(pluginName);
|
|
203
|
+
if (!localInfo?.localPath) {
|
|
204
|
+
return result;
|
|
205
|
+
}
|
|
206
|
+
// The plugin is a workspace package — just return success pointing at it.
|
|
207
|
+
// The runtime already resolves it via NODE_PATH / bun workspace links so
|
|
208
|
+
// there is nothing to download; the caller only needs to enable it in
|
|
209
|
+
// config and restart.
|
|
210
|
+
return {
|
|
211
|
+
success: true,
|
|
212
|
+
pluginName: localInfo.name,
|
|
213
|
+
version: localInfo.npm.v2Version ?? localInfo.npm.v1Version ?? "workspace",
|
|
214
|
+
installPath: localInfo.localPath,
|
|
215
|
+
requiresRestart: true,
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
return wrapped;
|
|
219
|
+
}
|
|
220
|
+
function getPluginManagerForState(state) {
|
|
221
|
+
const service = state.runtime?.getService("plugin_manager");
|
|
222
|
+
if (isPluginManagerLike(service)) {
|
|
223
|
+
return service;
|
|
224
|
+
}
|
|
225
|
+
return createConfigPluginManager(() => state.config);
|
|
226
|
+
}
|
|
227
|
+
function requireCoreManager(runtime) {
|
|
228
|
+
const service = runtime?.getService("core_manager");
|
|
229
|
+
if (!isCoreManagerLike(service)) {
|
|
230
|
+
throw new Error("Core manager service not found");
|
|
231
|
+
}
|
|
232
|
+
return service;
|
|
233
|
+
}
|
|
234
|
+
const OG_FILENAME = ".og";
|
|
235
|
+
const DELETED_CONVERSATIONS_FILENAME = "deleted-conversations.v1.json";
|
|
236
|
+
const MAX_DELETED_CONVERSATION_IDS = 5000;
|
|
237
|
+
function readDeletedConversationIdsFromState() {
|
|
238
|
+
const filePath = path.join(resolveStateDir(), DELETED_CONVERSATIONS_FILENAME);
|
|
239
|
+
if (!fs.existsSync(filePath))
|
|
240
|
+
return new Set();
|
|
241
|
+
try {
|
|
242
|
+
const raw = fs.readFileSync(filePath, "utf-8");
|
|
243
|
+
const parsed = JSON.parse(raw);
|
|
244
|
+
const ids = Array.isArray(parsed.ids) ? parsed.ids : [];
|
|
245
|
+
return new Set(ids
|
|
246
|
+
.map((id) => (typeof id === "string" ? id.trim() : ""))
|
|
247
|
+
.filter((id) => id.length > 0));
|
|
248
|
+
}
|
|
249
|
+
catch (err) {
|
|
250
|
+
logger.warn(`[eliza-api] Failed to read deleted conversations state: ${err instanceof Error ? err.message : String(err)}`);
|
|
251
|
+
return new Set();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function _persistDeletedConversationIdsToState(ids) {
|
|
255
|
+
const dir = resolveStateDir();
|
|
256
|
+
if (!fs.existsSync(dir)) {
|
|
257
|
+
fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
258
|
+
}
|
|
259
|
+
const normalized = Array.from(ids)
|
|
260
|
+
.map((id) => id.trim())
|
|
261
|
+
.filter((id) => id.length > 0)
|
|
262
|
+
.slice(-MAX_DELETED_CONVERSATION_IDS);
|
|
263
|
+
const filePath = path.join(dir, DELETED_CONVERSATIONS_FILENAME);
|
|
264
|
+
const tmpFilePath = `${filePath}.${process.pid}.tmp`;
|
|
265
|
+
const payload = {
|
|
266
|
+
version: 1,
|
|
267
|
+
updatedAt: new Date().toISOString(),
|
|
268
|
+
ids: normalized,
|
|
269
|
+
};
|
|
270
|
+
fs.writeFileSync(tmpFilePath, `${JSON.stringify(payload, null, 2)}\n`, {
|
|
271
|
+
encoding: "utf-8",
|
|
272
|
+
mode: 0o600,
|
|
273
|
+
});
|
|
274
|
+
fs.renameSync(tmpFilePath, filePath);
|
|
275
|
+
}
|
|
276
|
+
function initializeOGCodeInState() {
|
|
277
|
+
const dir = resolveStateDir();
|
|
278
|
+
const filePath = path.join(dir, OG_FILENAME);
|
|
279
|
+
if (fs.existsSync(filePath))
|
|
280
|
+
return;
|
|
281
|
+
if (!fs.existsSync(dir)) {
|
|
282
|
+
fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
283
|
+
}
|
|
284
|
+
fs.writeFileSync(filePath, crypto.randomUUID(), {
|
|
285
|
+
encoding: "utf-8",
|
|
286
|
+
mode: 0o600,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
// ---------------------------------------------------------------------------
|
|
290
|
+
// Package root resolution (for reading bundled plugins.json)
|
|
291
|
+
// ---------------------------------------------------------------------------
|
|
292
|
+
// findOwnPackageRoot moved to server-helpers.ts; re-exported in the batch above
|
|
293
|
+
// Fetch/streaming helpers extracted to server-helpers-fetch.ts
|
|
294
|
+
import { fetchWithTimeoutGuard as _fetchWithTimeoutGuard, streamResponseBodyWithByteLimit as _streamResponseBodyWithByteLimit, isAbortError, responseContentLength, } from "./server-helpers-fetch.js";
|
|
295
|
+
export { fetchWithTimeoutGuard, streamResponseBodyWithByteLimit, } from "./server-helpers-fetch.js";
|
|
296
|
+
const fetchWithTimeoutGuard = _fetchWithTimeoutGuard;
|
|
297
|
+
const streamResponseBodyWithByteLimit = _streamResponseBodyWithByteLimit;
|
|
298
|
+
/**
|
|
299
|
+
* Read and parse a JSON request body with size limits and error handling.
|
|
300
|
+
* Returns null (and sends a 4xx response) if reading or parsing fails.
|
|
301
|
+
*/
|
|
302
|
+
async function readJsonBody(req, res, options = {}) {
|
|
303
|
+
return parseJsonBody(req, res, {
|
|
304
|
+
maxBytes: MAX_BODY_BYTES,
|
|
305
|
+
...options,
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
const readBody = (req) => readRequestBody(req, { maxBytes: MAX_BODY_BYTES }).then((value) => value ?? "");
|
|
309
|
+
let activeTerminalRunCount = 0;
|
|
310
|
+
function json(res, data, status = 200) {
|
|
311
|
+
sendJson(res, data, status);
|
|
312
|
+
}
|
|
313
|
+
function error(res, message, status = 400) {
|
|
314
|
+
sendJsonError(res, message, status);
|
|
315
|
+
}
|
|
316
|
+
function isModuleResolutionFailure(err) {
|
|
317
|
+
if (typeof err !== "object" || err === null) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
const code = "code" in err ? err.code : undefined;
|
|
321
|
+
if (code === "MODULE_NOT_FOUND" ||
|
|
322
|
+
code === "ERR_MODULE_NOT_FOUND" ||
|
|
323
|
+
code === "ERR_PACKAGE_PATH_NOT_EXPORTED") {
|
|
324
|
+
return true;
|
|
325
|
+
}
|
|
326
|
+
if (!("message" in err) || typeof err.message !== "string") {
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
return (err.message.includes("Cannot find module") ||
|
|
330
|
+
err.message.includes("Cannot find package") ||
|
|
331
|
+
err.message.includes("ERR_MODULE_NOT_FOUND") ||
|
|
332
|
+
err.message.includes('is not defined by "exports"'));
|
|
333
|
+
}
|
|
334
|
+
function isWalletBridgeImportFailure(err) {
|
|
335
|
+
if (isModuleResolutionFailure(err)) {
|
|
336
|
+
return true;
|
|
337
|
+
}
|
|
338
|
+
if (typeof err !== "object" || err === null) {
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
const code = "code" in err ? err.code : undefined;
|
|
342
|
+
if (code === "ERR_UNKNOWN_FILE_EXTENSION") {
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
if (!("message" in err) || typeof err.message !== "string") {
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
return err.message.includes('Unknown file extension ".css"');
|
|
349
|
+
}
|
|
350
|
+
// ---------------------------------------------------------------------------
|
|
351
|
+
// Static UI serving — extracted to static-file-server.ts
|
|
352
|
+
// ---------------------------------------------------------------------------
|
|
353
|
+
import { injectApiBaseIntoHtml, isAuthProtectedRoute, serveStaticUi, } from "./static-file-server.js";
|
|
354
|
+
export { injectApiBaseIntoHtml };
|
|
355
|
+
// Preserved for backward-compat — unused locally after extraction.
|
|
356
|
+
const _STATIC_MIME = {};
|
|
357
|
+
// (static file serving functions moved to static-file-server.ts)
|
|
358
|
+
function coerce(value) {
|
|
359
|
+
return value;
|
|
360
|
+
}
|
|
361
|
+
// buildChatAttachments, buildUserMessages, etc. imported in the consolidated import at the top
|
|
362
|
+
function parseBoundedLimit(rawLimit, fallback = 15) {
|
|
363
|
+
return parseClampedInteger(rawLimit, {
|
|
364
|
+
min: 1,
|
|
365
|
+
max: 50,
|
|
366
|
+
fallback,
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
function sanitizeFavoriteAppList(value) {
|
|
370
|
+
if (!Array.isArray(value))
|
|
371
|
+
return [];
|
|
372
|
+
const seen = new Set();
|
|
373
|
+
const apps = [];
|
|
374
|
+
for (const item of value) {
|
|
375
|
+
if (typeof item !== "string")
|
|
376
|
+
continue;
|
|
377
|
+
const trimmed = item.trim();
|
|
378
|
+
if (!trimmed || seen.has(trimmed))
|
|
379
|
+
continue;
|
|
380
|
+
seen.add(trimmed);
|
|
381
|
+
apps.push(trimmed);
|
|
382
|
+
}
|
|
383
|
+
return apps;
|
|
384
|
+
}
|
|
385
|
+
function readFavoriteAppsFromConfig(config) {
|
|
386
|
+
const ui = (config.ui ?? {});
|
|
387
|
+
return sanitizeFavoriteAppList(ui.favoriteApps);
|
|
388
|
+
}
|
|
389
|
+
function writeFavoriteAppsToConfig(config, apps) {
|
|
390
|
+
const sanitized = sanitizeFavoriteAppList(apps);
|
|
391
|
+
const ui = (config.ui ?? {});
|
|
392
|
+
ui.favoriteApps = sanitized;
|
|
393
|
+
config.ui = ui;
|
|
394
|
+
saveElizaConfig(config);
|
|
395
|
+
return sanitized;
|
|
396
|
+
}
|
|
397
|
+
// Config redaction, skill validation extracted to server-helpers-config.ts
|
|
398
|
+
// isBlockedObjectKey, redactDeep, redactConfigSecrets, isRedactedSecretValue,
|
|
399
|
+
// stripRedactedPlaceholderValuesDeep imported from server-helpers-config.ts above.
|
|
400
|
+
// isBlockedObjectKey alias for local usage:
|
|
401
|
+
const isBlockedObjectKey = isBlockedObjectKeyFromConfig;
|
|
402
|
+
// MCP validation helpers extracted to server-helpers-mcp.ts
|
|
403
|
+
import { resolveMcpServersRejection as _resolveMcpServersRejection, resolveMcpTerminalAuthorizationRejection as _resolveMcpTerminalAuthorizationRejection, } from "./server-helpers-mcp.js";
|
|
404
|
+
export { resolveMcpServersRejection, resolveMcpTerminalAuthorizationRejection, validateMcpServerConfig, } from "./server-helpers-mcp.js";
|
|
405
|
+
const resolveMcpServersRejection = _resolveMcpServersRejection;
|
|
406
|
+
// ---------------------------------------------------------------------------
|
|
407
|
+
// Onboarding / config helpers — extracted to server-helpers-config.ts
|
|
408
|
+
// ---------------------------------------------------------------------------
|
|
409
|
+
import { pickRandomNames } from "../runtime/onboarding-names.js";
|
|
410
|
+
import { applyOnboardingVoicePreset, ensureWalletKeysInEnvAndConfig, getCloudProviderOptions, getProviderOptions, isBlockedObjectKey as isBlockedObjectKeyFromConfig, isRedactedSecretValue, isSafeResetStateDir, readUiLanguageHeader, redactConfigSecrets, redactDeep, resolveConfiguredCharacterLanguage, resolveDefaultAgentName, stripRedactedPlaceholderValuesDeep, } from "./server-helpers-config.js";
|
|
411
|
+
export { isSafeResetStateDir } from "./server-helpers-config.js";
|
|
412
|
+
// ---------------------------------------------------------------------------
|
|
413
|
+
// Trade permission helpers (exported for use by awareness contributors)
|
|
414
|
+
// ---------------------------------------------------------------------------
|
|
415
|
+
/**
|
|
416
|
+
* Resolve the active trade permission mode from config.
|
|
417
|
+
* Falls back to "user-sign-only" when not configured.
|
|
418
|
+
*/
|
|
419
|
+
export function resolveTradePermissionMode(config) {
|
|
420
|
+
const raw = config.features
|
|
421
|
+
?.tradePermissionMode;
|
|
422
|
+
if (raw === "user-sign-only" ||
|
|
423
|
+
raw === "manual-local-key" ||
|
|
424
|
+
raw === "agent-auto") {
|
|
425
|
+
return raw;
|
|
426
|
+
}
|
|
427
|
+
return "user-sign-only";
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Maximum number of autonomous agent trades allowed per calendar day.
|
|
431
|
+
* Acts as a safety rail when `agent-auto` mode is enabled.
|
|
432
|
+
*/
|
|
433
|
+
// Trade safety utilities (defined in trade-safety.ts for testability)
|
|
434
|
+
import { canUseLocalTradeExecution, } from "./trade-safety.js";
|
|
435
|
+
export { AGENT_AUTO_MAX_DAILY_TRADES, agentAutoDailyTrades, assertQuoteFresh, canUseLocalTradeExecution, getAgentAutoTradeDate, QUOTE_MAX_AGE_MS, recordAgentAutoTrade, } from "./trade-safety.js";
|
|
436
|
+
const AGENT_AUTOMATION_HEADER = "x-eliza-agent-action";
|
|
437
|
+
const AGENT_AUTOMATION_MODES = new Set([
|
|
438
|
+
"connectors-only",
|
|
439
|
+
"full",
|
|
440
|
+
]);
|
|
441
|
+
function parseAgentAutomationMode(value) {
|
|
442
|
+
if (typeof value !== "string")
|
|
443
|
+
return null;
|
|
444
|
+
const normalized = value.trim().toLowerCase();
|
|
445
|
+
if (!AGENT_AUTOMATION_MODES.has(normalized)) {
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
return normalized;
|
|
449
|
+
}
|
|
450
|
+
function _isAgentAutomationRequest(req) {
|
|
451
|
+
const raw = req.headers[AGENT_AUTOMATION_HEADER];
|
|
452
|
+
if (typeof raw !== "string")
|
|
453
|
+
return false;
|
|
454
|
+
return /^(1|true|yes|agent)$/i.test(raw.trim());
|
|
455
|
+
}
|
|
456
|
+
function persistAgentAutomationMode(state, mode) {
|
|
457
|
+
state.agentAutomationMode = mode;
|
|
458
|
+
if (!state.config.features) {
|
|
459
|
+
state.config.features = {};
|
|
460
|
+
}
|
|
461
|
+
const features = state.config.features;
|
|
462
|
+
const current = features.agentAutomation;
|
|
463
|
+
const currentObject = current && typeof current === "object" && !Array.isArray(current)
|
|
464
|
+
? current
|
|
465
|
+
: {};
|
|
466
|
+
features.agentAutomation = {
|
|
467
|
+
...currentObject,
|
|
468
|
+
enabled: true,
|
|
469
|
+
mode,
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function buildPluginEvmDiagnosticEntry(state) {
|
|
473
|
+
const capability = resolveWalletCapabilityStatus(state);
|
|
474
|
+
const enabled = capability.pluginEvmLoaded ||
|
|
475
|
+
capability.pluginEvmRequired ||
|
|
476
|
+
(state.config.plugins?.allow ?? []).some((entry) => {
|
|
477
|
+
return entry === EVM_PLUGIN_PACKAGE || entry === "evm";
|
|
478
|
+
});
|
|
479
|
+
const capabilityStatus = capability.pluginEvmLoaded
|
|
480
|
+
? capability.pluginEvmRequired
|
|
481
|
+
? "loaded"
|
|
482
|
+
: "auto-enabled"
|
|
483
|
+
: enabled
|
|
484
|
+
? capability.evmAddress || capability.localSignerAvailable
|
|
485
|
+
? "blocked"
|
|
486
|
+
: "missing-prerequisites"
|
|
487
|
+
: "disabled";
|
|
488
|
+
return {
|
|
489
|
+
id: "evm",
|
|
490
|
+
name: "Plugin EVM",
|
|
491
|
+
description: "EVM wallet runtime for balance, transfer, and trade actions. Required for wallet execution in chat.",
|
|
492
|
+
tags: ["wallet", "evm", "bsc", "onchain"],
|
|
493
|
+
enabled,
|
|
494
|
+
configured: capability.pluginEvmRequired,
|
|
495
|
+
envKey: "EVM_PRIVATE_KEY",
|
|
496
|
+
category: "feature",
|
|
497
|
+
source: "bundled",
|
|
498
|
+
configKeys: [
|
|
499
|
+
"EVM_PRIVATE_KEY",
|
|
500
|
+
"BSC_RPC_URL",
|
|
501
|
+
"BSC_TESTNET_RPC_URL",
|
|
502
|
+
"ELIZA_WALLET_NETWORK",
|
|
503
|
+
],
|
|
504
|
+
parameters: [],
|
|
505
|
+
validationErrors: [],
|
|
506
|
+
validationWarnings: [],
|
|
507
|
+
npmName: EVM_PLUGIN_PACKAGE,
|
|
508
|
+
isActive: capability.pluginEvmLoaded,
|
|
509
|
+
autoEnabled: capability.pluginEvmRequired && !capability.pluginEvmLoaded,
|
|
510
|
+
managementMode: "core-optional",
|
|
511
|
+
capabilityStatus,
|
|
512
|
+
capabilityReason: capability.executionReady
|
|
513
|
+
? "Wallet execution is ready."
|
|
514
|
+
: capability.executionBlockedReason,
|
|
515
|
+
prerequisites: [
|
|
516
|
+
{ label: "wallet present", met: Boolean(capability.evmAddress) },
|
|
517
|
+
{ label: "rpc ready", met: capability.rpcReady },
|
|
518
|
+
{ label: "plugin loaded", met: capability.pluginEvmLoaded },
|
|
519
|
+
],
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
// Wallet intent/export helpers extracted to server-helpers-wallet.ts
|
|
523
|
+
import { resolveWalletExportRejection as _resolveWalletExportRejection } from "./server-helpers-wallet.js";
|
|
524
|
+
export { hasUsableWalletFallbackParams, inferWalletExecutionFallback, resolveWalletExportRejection, } from "./server-helpers-wallet.js";
|
|
525
|
+
const resolveWalletExportRejection = _resolveWalletExportRejection;
|
|
526
|
+
// Plugin config helpers extracted to server-helpers-plugin.ts
|
|
527
|
+
import { resolvePluginConfigMutationRejections as _resolvePluginConfigMutationRejections } from "./server-helpers-plugin.js";
|
|
528
|
+
export { resolvePluginConfigMutationRejections, resolvePluginConfigReply, } from "./server-helpers-plugin.js";
|
|
529
|
+
const resolvePluginConfigMutationRejections = _resolvePluginConfigMutationRejections;
|
|
530
|
+
async function resolveTrainingServiceCtor() {
|
|
531
|
+
const candidates = [
|
|
532
|
+
"../services/training-service",
|
|
533
|
+
"@elizaos/app-training",
|
|
534
|
+
"@elizaos/plugin-training",
|
|
535
|
+
];
|
|
536
|
+
for (const specifier of candidates) {
|
|
537
|
+
try {
|
|
538
|
+
const loaded = (await import(__rewriteRelativeImportExtension(/* @vite-ignore */ specifier)));
|
|
539
|
+
const ctor = loaded.TrainingService;
|
|
540
|
+
if (typeof ctor === "function") {
|
|
541
|
+
return ctor;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
catch {
|
|
545
|
+
// Keep trying fallbacks.
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
// mcpServersIncludeStdio, resolveMcpTerminalAuthorizationRejection extracted to server-helpers-mcp.ts
|
|
551
|
+
const resolveMcpTerminalAuthorizationRejection = _resolveMcpTerminalAuthorizationRejection;
|
|
552
|
+
// Auth, CORS, pairing, terminal, WebSocket auth helpers extracted to server-helpers-auth.ts
|
|
553
|
+
import { applyCors as _applyCors, clearPairing as _clearPairing, ensureApiTokenForBindHost as _ensureApiTokenForBindHost, ensurePairingCode as _ensurePairingCode, getConfiguredApiToken as _getConfiguredApiToken, getPairingExpiresAt as _getPairingExpiresAt, isAllowedHost as _isAllowedHost, isAuthorized as _isAuthorized, isSharedTerminalClientId as _isSharedTerminalClientId, isWebSocketAuthorized as _isWebSocketAuthorized, normalizePairingCode as _normalizePairingCode, normalizeWsClientId as _normalizeWsClientId, pairingEnabled as _pairingEnabled, rateLimitPairing as _rateLimitPairing, rejectWebSocketUpgrade as _rejectWebSocketUpgrade, resolveTerminalRunClientId as _resolveTerminalRunClientId, resolveTerminalRunRejection as _resolveTerminalRunRejection, resolveWebSocketUpgradeRejection as _resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
|
|
554
|
+
export { ensureApiTokenForBindHost, extractAuthToken, isAllowedHost, isAuthorized, normalizeWsClientId, resolveCorsOrigin, resolveTerminalRunClientId, resolveTerminalRunRejection, resolveWebSocketUpgradeRejection, } from "./server-helpers-auth.js";
|
|
555
|
+
const isAllowedHost = _isAllowedHost;
|
|
556
|
+
const applyCors = _applyCors;
|
|
557
|
+
const isAuthorized = _isAuthorized;
|
|
558
|
+
const ensureApiTokenForBindHost = _ensureApiTokenForBindHost;
|
|
559
|
+
const normalizeWsClientId = _normalizeWsClientId;
|
|
560
|
+
const resolveTerminalRunClientId = _resolveTerminalRunClientId;
|
|
561
|
+
const isSharedTerminalClientId = _isSharedTerminalClientId;
|
|
562
|
+
const resolveTerminalRunRejection = _resolveTerminalRunRejection;
|
|
563
|
+
const resolveWebSocketUpgradeRejection = _resolveWebSocketUpgradeRejection;
|
|
564
|
+
const rejectWebSocketUpgrade = _rejectWebSocketUpgrade;
|
|
565
|
+
const isWebSocketAuthorized = _isWebSocketAuthorized;
|
|
566
|
+
const getConfiguredApiToken = _getConfiguredApiToken;
|
|
567
|
+
const pairingEnabled = _pairingEnabled;
|
|
568
|
+
function isLifeOpsCloudPluginRoute(pathname) {
|
|
569
|
+
return (pathname === "/api/cloud/features" ||
|
|
570
|
+
pathname === "/api/cloud/features/sync" ||
|
|
571
|
+
pathname.startsWith("/api/cloud/travel-providers/"));
|
|
572
|
+
}
|
|
573
|
+
const ensurePairingCode = _ensurePairingCode;
|
|
574
|
+
const normalizePairingCode = _normalizePairingCode;
|
|
575
|
+
const rateLimitPairing = _rateLimitPairing;
|
|
576
|
+
const getPairingExpiresAt = _getPairingExpiresAt;
|
|
577
|
+
const clearPairing = _clearPairing;
|
|
578
|
+
/** Guard against concurrent provider switch requests (P0 §3). */
|
|
579
|
+
let providerSwitchInProgress = false;
|
|
580
|
+
/**
|
|
581
|
+
* Lazy per-process runtime operation manager. Constructed on first
|
|
582
|
+
* request because it needs the per-server `state` reference + the
|
|
583
|
+
* `onRestart` closure. Cached so subsequent requests see the same
|
|
584
|
+
* active-op slot and execution chain.
|
|
585
|
+
*/
|
|
586
|
+
let cachedRuntimeOperationManager = null;
|
|
587
|
+
function getOrCreateRuntimeOperationManager(state, restartRuntime) {
|
|
588
|
+
if (cachedRuntimeOperationManager) {
|
|
589
|
+
return cachedRuntimeOperationManager;
|
|
590
|
+
}
|
|
591
|
+
const repository = getDefaultRepository();
|
|
592
|
+
const healthChecker = getDefaultHealthChecker();
|
|
593
|
+
const coldStrategy = createColdStrategy({
|
|
594
|
+
restartRuntime: async (reason) => {
|
|
595
|
+
const ok = await restartRuntime(reason);
|
|
596
|
+
if (!ok)
|
|
597
|
+
return null;
|
|
598
|
+
return state.runtime;
|
|
599
|
+
},
|
|
600
|
+
});
|
|
601
|
+
const hotStrategy = createHotStrategy({});
|
|
602
|
+
const classifyContext = () => ({
|
|
603
|
+
currentProvider: resolvePreferredProviderId(state.config),
|
|
604
|
+
currentPrimaryModel: resolvePrimaryModel(state.config),
|
|
605
|
+
});
|
|
606
|
+
cachedRuntimeOperationManager = new DefaultRuntimeOperationManager({
|
|
607
|
+
repository,
|
|
608
|
+
runtime: () => state.runtime,
|
|
609
|
+
classifyContext,
|
|
610
|
+
classifier: defaultClassifier,
|
|
611
|
+
healthChecker,
|
|
612
|
+
strategies: { cold: coldStrategy, hot: hotStrategy },
|
|
613
|
+
});
|
|
614
|
+
return cachedRuntimeOperationManager;
|
|
615
|
+
}
|
|
616
|
+
// PluginConfigMutationRejection, resolvePluginConfigMutationRejections,
|
|
617
|
+
// WalletExportRejection, resolveWalletExportRejection
|
|
618
|
+
// extracted to server-helpers-plugin.ts and server-helpers-wallet.ts respectively.
|
|
619
|
+
// Re-exported above.
|
|
620
|
+
// Terminal/WS/state-dir helpers extracted to server-helpers-auth.ts; re-exported above.
|
|
621
|
+
// decodePathComponent imported in the consolidated import at the top
|
|
622
|
+
// Workbench task/todo helpers — extracted to workbench-helpers.ts
|
|
623
|
+
import { asObject, normalizeTags, parseNullableNumber, readTaskCompleted, readTaskMetadata, toWorkbenchTask, toWorkbenchTodo, WORKBENCH_TASK_TAG, WORKBENCH_TODO_TAG, } from "./workbench-helpers.js";
|
|
624
|
+
const _WORKBENCH_TASK_TAG = WORKBENCH_TASK_TAG;
|
|
625
|
+
const _WORKBENCH_TODO_TAG = WORKBENCH_TODO_TAG;
|
|
626
|
+
// (workbench helpers moved to workbench-helpers.ts)
|
|
627
|
+
// ── Autonomy / swarm / coding-agent helpers — extracted to server-helpers-swarm.ts ──
|
|
628
|
+
import { getCoordinatorFromRuntime, getPtyConsoleBridge, routeAutonomyTextToUser, wireCodingAgentBridgesNow, wireCodingAgentChatBridge, wireCodingAgentSwarmSynthesis, wireCodingAgentWsBridge, wireCoordinatorEventRouting, } from "./server-helpers-swarm.js";
|
|
629
|
+
export { handleSwarmSynthesis, routeAutonomyTextToUser, } from "./server-helpers-swarm.js";
|
|
630
|
+
async function maybeRouteAutonomyEventToConversation(state, event) {
|
|
631
|
+
if (event.stream !== "assistant")
|
|
632
|
+
return;
|
|
633
|
+
const payload = event.data && typeof event.data === "object"
|
|
634
|
+
? event.data
|
|
635
|
+
: null;
|
|
636
|
+
const text = typeof payload?.text === "string" ? payload.text.trim() : "";
|
|
637
|
+
if (!text)
|
|
638
|
+
return;
|
|
639
|
+
const explicitSource = typeof payload?.source === "string" ? payload.source : null;
|
|
640
|
+
const hasExplicitSource = explicitSource !== null && explicitSource.trim().length > 0;
|
|
641
|
+
const source = hasExplicitSource ? explicitSource.trim() : "autonomy";
|
|
642
|
+
// Regular user conversation turns should never be re-routed as proactive.
|
|
643
|
+
// Some AGENT_EVENT payloads may omit roomId metadata, so rely on source too.
|
|
644
|
+
if (source === "client_chat")
|
|
645
|
+
return;
|
|
646
|
+
if (!hasExplicitSource && !event.roomId)
|
|
647
|
+
return;
|
|
648
|
+
// Keep regular conversation messages in their own room only.
|
|
649
|
+
if (event.roomId &&
|
|
650
|
+
Array.from(state.conversations.values()).some((c) => c.roomId === event.roomId)) {
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
await routeAutonomyTextToUser(state, text, source);
|
|
654
|
+
}
|
|
655
|
+
async function handleRequest(req, res, state, ctx) {
|
|
656
|
+
const method = req.method ?? "GET";
|
|
657
|
+
let url;
|
|
658
|
+
try {
|
|
659
|
+
url = new URL(req.url ?? "/", `http://${req.headers.host ?? "localhost"}`);
|
|
660
|
+
}
|
|
661
|
+
catch {
|
|
662
|
+
error(res, "Invalid request URL", 400);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
const pathname = url.pathname;
|
|
666
|
+
const isAuthEndpoint = pathname.startsWith("/api/auth/");
|
|
667
|
+
const isHealthEndpoint = method === "GET" && pathname === "/api/health";
|
|
668
|
+
const isCloudProvisioned = isCloudProvisionedContainer();
|
|
669
|
+
const isCloudOnboardingStatusEndpoint = method === "GET" &&
|
|
670
|
+
pathname === "/api/onboarding/status" &&
|
|
671
|
+
isCloudProvisioned;
|
|
672
|
+
const isWhatsAppWebhookEndpoint = pathname === "/api/whatsapp/webhook";
|
|
673
|
+
const isBlueBubblesWebhookEndpoint = pathname ===
|
|
674
|
+
resolveBlueBubblesWebhookPath({
|
|
675
|
+
runtime: state.runtime
|
|
676
|
+
? {
|
|
677
|
+
getService: (type) => state.runtime.getService(type),
|
|
678
|
+
}
|
|
679
|
+
: undefined,
|
|
680
|
+
});
|
|
681
|
+
const isAuthProtectedPath = isAuthProtectedRoute(pathname);
|
|
682
|
+
const _registryService = state.registryService;
|
|
683
|
+
const canonicalizeRestartReason = (reason) => {
|
|
684
|
+
if (reason === "primary-changed" ||
|
|
685
|
+
reason === "cloud-refreshed" ||
|
|
686
|
+
reason === "Wallet configuration updated") {
|
|
687
|
+
return "Wallet configuration updated";
|
|
688
|
+
}
|
|
689
|
+
return reason;
|
|
690
|
+
};
|
|
691
|
+
const scheduleRuntimeRestart = (reason) => {
|
|
692
|
+
const canonicalReason = canonicalizeRestartReason(reason);
|
|
693
|
+
if (state.pendingRestartReasons.length >= 50) {
|
|
694
|
+
// Prevent unbounded growth — keep only first entry + latest
|
|
695
|
+
state.pendingRestartReasons.splice(1, state.pendingRestartReasons.length - 1);
|
|
696
|
+
}
|
|
697
|
+
if (!state.pendingRestartReasons.includes(canonicalReason)) {
|
|
698
|
+
state.pendingRestartReasons.push(canonicalReason);
|
|
699
|
+
}
|
|
700
|
+
logger.info(`[eliza-api] Restart required: ${canonicalReason} (${state.pendingRestartReasons.length} pending)`);
|
|
701
|
+
state.broadcastWs?.({
|
|
702
|
+
type: "restart-required",
|
|
703
|
+
reasons: [...state.pendingRestartReasons],
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
const restartRuntime = async (reason) => {
|
|
707
|
+
if (!ctx?.onRestart) {
|
|
708
|
+
return false;
|
|
709
|
+
}
|
|
710
|
+
if (state.agentState === "restarting") {
|
|
711
|
+
return false;
|
|
712
|
+
}
|
|
713
|
+
const previousState = state.agentState;
|
|
714
|
+
logger.info(`[eliza-api] Applying runtime reload: ${reason}`);
|
|
715
|
+
state.agentState = "restarting";
|
|
716
|
+
state.startup = { ...state.startup, phase: "restarting" };
|
|
717
|
+
state.broadcastStatus?.();
|
|
718
|
+
try {
|
|
719
|
+
const newRuntime = await ctx.onRestart();
|
|
720
|
+
if (!newRuntime) {
|
|
721
|
+
state.agentState = previousState;
|
|
722
|
+
state.broadcastStatus?.();
|
|
723
|
+
return false;
|
|
724
|
+
}
|
|
725
|
+
state.runtime = newRuntime;
|
|
726
|
+
state.chatConnectionReady = null;
|
|
727
|
+
state.chatConnectionPromise = null;
|
|
728
|
+
state.agentState = "running";
|
|
729
|
+
state.agentName =
|
|
730
|
+
newRuntime.character.name ?? resolveDefaultAgentName(state.config);
|
|
731
|
+
state.model = detectRuntimeModel(newRuntime, state.config);
|
|
732
|
+
state.startedAt = Date.now();
|
|
733
|
+
state.pendingRestartReasons = [];
|
|
734
|
+
ctx.onRuntimeSwapped?.();
|
|
735
|
+
state.broadcastStatus?.();
|
|
736
|
+
return true;
|
|
737
|
+
}
|
|
738
|
+
catch (err) {
|
|
739
|
+
logger.warn(`[eliza-api] Runtime reload failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
740
|
+
state.agentState = previousState;
|
|
741
|
+
state.broadcastStatus?.();
|
|
742
|
+
return false;
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
// ── DNS rebinding protection ──────────────────────────────────────────
|
|
746
|
+
// Reject requests whose Host header doesn't match a known loopback
|
|
747
|
+
// hostname. Without this check an attacker can rebind their domain's
|
|
748
|
+
// DNS to 127.0.0.1 and read the unauthenticated localhost API from a
|
|
749
|
+
// malicious page.
|
|
750
|
+
if (!isAllowedHost(req)) {
|
|
751
|
+
const incomingHost = req.headers.host ?? "your-hostname";
|
|
752
|
+
json(res, {
|
|
753
|
+
error: "Forbidden — invalid Host header",
|
|
754
|
+
hint: `To allow this host, set ELIZA_ALLOWED_HOSTS=${incomingHost} (or ELIZA_ALLOWED_HOSTS) in your environment, or access via http://localhost`,
|
|
755
|
+
docs: "https://docs.eliza.ai/configuration#allowed-hosts",
|
|
756
|
+
}, 403);
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
if (!applyCors(req, res, pathname)) {
|
|
760
|
+
json(res, { error: "Origin not allowed" }, 403);
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
// Serve dashboard static assets before the auth gates. serveStaticUi already
|
|
764
|
+
// refuses /api/, /v1/, and /ws paths, so API endpoints remain protected
|
|
765
|
+
// while steward-managed containers can still reach the built-in dashboard.
|
|
766
|
+
if (method === "GET" || method === "HEAD") {
|
|
767
|
+
if (serveStaticUi(req, res, pathname))
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
// Single auth gate. The previous two-block arrangement (a cloud-provisioned
|
|
771
|
+
// copy followed by an unconditional copy) was redundant: the unconditional
|
|
772
|
+
// block already applied to cloud-provisioned requests because
|
|
773
|
+
// `isAuthorized` consults `isCloudProvisionedContainer()` when no token is
|
|
774
|
+
// configured.
|
|
775
|
+
if (method !== "OPTIONS" &&
|
|
776
|
+
isAuthProtectedPath &&
|
|
777
|
+
!isAuthEndpoint &&
|
|
778
|
+
!isHealthEndpoint &&
|
|
779
|
+
!isCloudOnboardingStatusEndpoint &&
|
|
780
|
+
!isWhatsAppWebhookEndpoint &&
|
|
781
|
+
!isBlueBubblesWebhookEndpoint &&
|
|
782
|
+
!isPublicRuntimePluginRoute({
|
|
783
|
+
runtime: state.runtime,
|
|
784
|
+
method,
|
|
785
|
+
pathname,
|
|
786
|
+
}) &&
|
|
787
|
+
!isAuthorized(req)) {
|
|
788
|
+
json(res, { error: "Unauthorized" }, 401);
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
// CORS preflight
|
|
792
|
+
if (method === "OPTIONS") {
|
|
793
|
+
res.statusCode = 204;
|
|
794
|
+
res.end();
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
// ── Provider inference helpers ────────────────────────────────────────
|
|
798
|
+
const _disableCloudInference = () => {
|
|
799
|
+
delete process.env.ANTHROPIC_BASE_URL;
|
|
800
|
+
delete process.env.OPENAI_BASE_URL;
|
|
801
|
+
delete process.env.ANTHROPIC_API_KEY;
|
|
802
|
+
delete process.env.OPENAI_API_KEY;
|
|
803
|
+
};
|
|
804
|
+
const _enableCloudInference = (cloudApiKey, baseUrl) => {
|
|
805
|
+
// Configure coding agent CLIs to proxy through ElizaCloud /api/v1
|
|
806
|
+
process.env.ANTHROPIC_BASE_URL = `${baseUrl}/api/v1`;
|
|
807
|
+
process.env.ANTHROPIC_API_KEY = cloudApiKey;
|
|
808
|
+
process.env.OPENAI_BASE_URL = `${baseUrl}/api/v1`;
|
|
809
|
+
process.env.OPENAI_API_KEY = cloudApiKey;
|
|
810
|
+
// Gemini CLI and Aider — no proxy support via ElizaCloud inference
|
|
811
|
+
};
|
|
812
|
+
// ── POST /api/provider/switch (extracted to provider-switch-routes.ts) ──
|
|
813
|
+
const runtimeOperationManager = getOrCreateRuntimeOperationManager(state, restartRuntime);
|
|
814
|
+
if (await handleProviderSwitchRoutes({
|
|
815
|
+
req,
|
|
816
|
+
res,
|
|
817
|
+
method,
|
|
818
|
+
pathname,
|
|
819
|
+
state,
|
|
820
|
+
json,
|
|
821
|
+
error,
|
|
822
|
+
readJsonBody,
|
|
823
|
+
saveElizaConfig,
|
|
824
|
+
scheduleRuntimeRestart,
|
|
825
|
+
providerSwitchInProgress,
|
|
826
|
+
setProviderSwitchInProgress: (v) => {
|
|
827
|
+
providerSwitchInProgress = v;
|
|
828
|
+
},
|
|
829
|
+
runtimeOperationManager,
|
|
830
|
+
})) {
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
if (await handleAuthRoutes({
|
|
834
|
+
req,
|
|
835
|
+
res,
|
|
836
|
+
method,
|
|
837
|
+
pathname,
|
|
838
|
+
readJsonBody,
|
|
839
|
+
json,
|
|
840
|
+
error,
|
|
841
|
+
pairingEnabled,
|
|
842
|
+
ensurePairingCode,
|
|
843
|
+
normalizePairingCode,
|
|
844
|
+
rateLimitPairing,
|
|
845
|
+
getPairingExpiresAt,
|
|
846
|
+
clearPairing,
|
|
847
|
+
})) {
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
if (await handleSubscriptionRoutes({
|
|
851
|
+
req,
|
|
852
|
+
res,
|
|
853
|
+
method,
|
|
854
|
+
pathname,
|
|
855
|
+
state,
|
|
856
|
+
readJsonBody,
|
|
857
|
+
json,
|
|
858
|
+
error,
|
|
859
|
+
saveConfig: saveElizaConfig,
|
|
860
|
+
loadSubscriptionAuth: async () => (await import("../auth/index.js")),
|
|
861
|
+
})) {
|
|
862
|
+
return;
|
|
863
|
+
}
|
|
864
|
+
if (await handleAccountsRoutes({
|
|
865
|
+
req,
|
|
866
|
+
res,
|
|
867
|
+
method,
|
|
868
|
+
pathname,
|
|
869
|
+
readJsonBody,
|
|
870
|
+
json,
|
|
871
|
+
error,
|
|
872
|
+
state: { config: state.config },
|
|
873
|
+
saveConfig: saveElizaConfig,
|
|
874
|
+
})) {
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
878
|
+
// Health / status / runtime routes (extracted to health-routes.ts)
|
|
879
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
880
|
+
if (await handleHealthRoutes({
|
|
881
|
+
req,
|
|
882
|
+
res,
|
|
883
|
+
method,
|
|
884
|
+
pathname,
|
|
885
|
+
url,
|
|
886
|
+
state,
|
|
887
|
+
json,
|
|
888
|
+
error,
|
|
889
|
+
})) {
|
|
890
|
+
return;
|
|
891
|
+
}
|
|
892
|
+
// ── Onboarding GET routes (extracted to onboarding-routes.ts) ─────────
|
|
893
|
+
if (await handleOnboardingRoutes({
|
|
894
|
+
req,
|
|
895
|
+
res,
|
|
896
|
+
method,
|
|
897
|
+
pathname,
|
|
898
|
+
url,
|
|
899
|
+
state: coerce(state),
|
|
900
|
+
json,
|
|
901
|
+
error,
|
|
902
|
+
readJsonBody,
|
|
903
|
+
isCloudProvisionedContainer,
|
|
904
|
+
hasPersistedOnboardingState,
|
|
905
|
+
ensureWalletKeysInEnvAndConfig,
|
|
906
|
+
getWalletAddresses: coerce(getWalletAddresses),
|
|
907
|
+
pickRandomNames,
|
|
908
|
+
getStylePresets: coerce(getStylePresets),
|
|
909
|
+
getProviderOptions: coerce(getProviderOptions),
|
|
910
|
+
getCloudProviderOptions: coerce(getCloudProviderOptions),
|
|
911
|
+
getModelOptions: coerce(getModelOptions),
|
|
912
|
+
getInventoryProviderOptions: coerce(getInventoryProviderOptions),
|
|
913
|
+
resolveConfiguredCharacterLanguage: coerce(resolveConfiguredCharacterLanguage),
|
|
914
|
+
normalizeCharacterLanguage: coerce(normalizeCharacterLanguage),
|
|
915
|
+
readUiLanguageHeader: coerce(readUiLanguageHeader),
|
|
916
|
+
applyOnboardingVoicePreset: coerce(applyOnboardingVoicePreset),
|
|
917
|
+
saveElizaConfig,
|
|
918
|
+
})) {
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
// POST /api/onboarding is now handled by onboarding-routes.ts above.
|
|
922
|
+
if (await handleAgentLifecycleRoutes({
|
|
923
|
+
req,
|
|
924
|
+
res,
|
|
925
|
+
method,
|
|
926
|
+
pathname,
|
|
927
|
+
state,
|
|
928
|
+
error,
|
|
929
|
+
json,
|
|
930
|
+
readJsonBody,
|
|
931
|
+
})) {
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
const triggerHandled = await handleTriggerRoutes({
|
|
935
|
+
req,
|
|
936
|
+
res,
|
|
937
|
+
method,
|
|
938
|
+
pathname,
|
|
939
|
+
runtime: state.runtime,
|
|
940
|
+
readJsonBody,
|
|
941
|
+
json,
|
|
942
|
+
error,
|
|
943
|
+
executeTriggerTask,
|
|
944
|
+
getTriggerHealthSnapshot,
|
|
945
|
+
getTriggerLimit,
|
|
946
|
+
listTriggerTasks,
|
|
947
|
+
readTriggerConfig,
|
|
948
|
+
readTriggerRuns,
|
|
949
|
+
taskToTriggerSummary,
|
|
950
|
+
triggersFeatureEnabled,
|
|
951
|
+
buildTriggerConfig,
|
|
952
|
+
buildTriggerMetadata,
|
|
953
|
+
normalizeTriggerDraft,
|
|
954
|
+
DISABLED_TRIGGER_INTERVAL_MS,
|
|
955
|
+
TRIGGER_TASK_NAME,
|
|
956
|
+
TRIGGER_TASK_TAGS: [...TRIGGER_TASK_TAGS],
|
|
957
|
+
});
|
|
958
|
+
if (triggerHandled) {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
if (pathname.startsWith("/api/training")) {
|
|
962
|
+
if (!state.trainingService) {
|
|
963
|
+
error(res, "Training service is not available", 503);
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
const trainingHandled = await handleTrainingRoutes({
|
|
967
|
+
req,
|
|
968
|
+
res,
|
|
969
|
+
method,
|
|
970
|
+
pathname,
|
|
971
|
+
runtime: state.runtime,
|
|
972
|
+
trainingService: state.trainingService,
|
|
973
|
+
readJsonBody,
|
|
974
|
+
json,
|
|
975
|
+
error,
|
|
976
|
+
isLoopbackHost,
|
|
977
|
+
});
|
|
978
|
+
if (trainingHandled)
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
// ── Knowledge routes (/api/knowledge/*) ─────────────────────────────────
|
|
982
|
+
if (pathname.startsWith("/api/knowledge")) {
|
|
983
|
+
const knowledgeHandled = await handleKnowledgeRoutes({
|
|
984
|
+
req,
|
|
985
|
+
res,
|
|
986
|
+
method,
|
|
987
|
+
pathname,
|
|
988
|
+
url,
|
|
989
|
+
runtime: state.runtime,
|
|
990
|
+
readJsonBody,
|
|
991
|
+
json,
|
|
992
|
+
error,
|
|
993
|
+
});
|
|
994
|
+
if (knowledgeHandled)
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
if (pathname.startsWith("/api/memory") ||
|
|
998
|
+
pathname.startsWith("/api/memories") ||
|
|
999
|
+
pathname === "/api/context/quick") {
|
|
1000
|
+
const memoryHandled = await handleMemoryRoutes({
|
|
1001
|
+
req,
|
|
1002
|
+
res,
|
|
1003
|
+
method,
|
|
1004
|
+
pathname,
|
|
1005
|
+
url,
|
|
1006
|
+
runtime: state.runtime,
|
|
1007
|
+
agentName: state.agentName,
|
|
1008
|
+
readJsonBody,
|
|
1009
|
+
json,
|
|
1010
|
+
error,
|
|
1011
|
+
});
|
|
1012
|
+
if (memoryHandled)
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
if (await handleAgentAdminRoutes({
|
|
1016
|
+
req,
|
|
1017
|
+
res,
|
|
1018
|
+
method,
|
|
1019
|
+
pathname,
|
|
1020
|
+
state,
|
|
1021
|
+
onRestart: ctx?.onRestart ?? undefined,
|
|
1022
|
+
onRuntimeSwapped: ctx?.onRuntimeSwapped,
|
|
1023
|
+
json,
|
|
1024
|
+
error,
|
|
1025
|
+
resolveStateDir,
|
|
1026
|
+
resolvePath: path.resolve,
|
|
1027
|
+
getHomeDir: os.homedir,
|
|
1028
|
+
isSafeResetStateDir,
|
|
1029
|
+
stateDirExists: fs.existsSync,
|
|
1030
|
+
removeStateDir: (resolvedState) => {
|
|
1031
|
+
fs.rmSync(resolvedState, { recursive: true, force: true });
|
|
1032
|
+
},
|
|
1033
|
+
logWarn: (message) => logger.warn(message),
|
|
1034
|
+
})) {
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
if (await handleAgentTransferRoutes({
|
|
1038
|
+
req,
|
|
1039
|
+
res,
|
|
1040
|
+
method,
|
|
1041
|
+
pathname,
|
|
1042
|
+
state,
|
|
1043
|
+
readJsonBody,
|
|
1044
|
+
json,
|
|
1045
|
+
error,
|
|
1046
|
+
exportAgent,
|
|
1047
|
+
estimateExportSize,
|
|
1048
|
+
importAgent,
|
|
1049
|
+
isAgentExportError: (err) => err instanceof AgentExportError,
|
|
1050
|
+
})) {
|
|
1051
|
+
return;
|
|
1052
|
+
}
|
|
1053
|
+
if (await handleCharacterRoutes({
|
|
1054
|
+
req,
|
|
1055
|
+
res,
|
|
1056
|
+
method,
|
|
1057
|
+
pathname,
|
|
1058
|
+
state,
|
|
1059
|
+
readJsonBody,
|
|
1060
|
+
json,
|
|
1061
|
+
error,
|
|
1062
|
+
pickRandomNames,
|
|
1063
|
+
saveConfig: saveElizaConfig,
|
|
1064
|
+
validateCharacter: (body) => CharacterSchema.safeParse(body),
|
|
1065
|
+
})) {
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
if (await handleExperienceRoutes({
|
|
1069
|
+
req,
|
|
1070
|
+
res,
|
|
1071
|
+
method,
|
|
1072
|
+
pathname,
|
|
1073
|
+
runtime: state.runtime,
|
|
1074
|
+
url,
|
|
1075
|
+
readJsonBody,
|
|
1076
|
+
json,
|
|
1077
|
+
error,
|
|
1078
|
+
})) {
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
// Compatibility route used by legacy health probes and desktop name lookup.
|
|
1082
|
+
if (method === "GET" && pathname === "/api/agents") {
|
|
1083
|
+
const runtimeAgentId = typeof state.runtime?.agentId === "string" &&
|
|
1084
|
+
state.runtime.agentId.trim().length > 0
|
|
1085
|
+
? state.runtime.agentId.trim()
|
|
1086
|
+
: null;
|
|
1087
|
+
const configuredAgentId = typeof state.config.agents?.list?.[0]?.id === "string" &&
|
|
1088
|
+
state.config.agents.list[0].id.trim().length > 0
|
|
1089
|
+
? state.config.agents.list[0].id.trim()
|
|
1090
|
+
: null;
|
|
1091
|
+
const agentName = state.runtime?.character.name?.trim() ||
|
|
1092
|
+
state.agentName?.trim() ||
|
|
1093
|
+
"Eliza";
|
|
1094
|
+
json(res, {
|
|
1095
|
+
agents: [
|
|
1096
|
+
{
|
|
1097
|
+
id: runtimeAgentId ??
|
|
1098
|
+
configuredAgentId ??
|
|
1099
|
+
"00000000-0000-0000-0000-000000000000",
|
|
1100
|
+
name: agentName,
|
|
1101
|
+
status: state.agentState,
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
});
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
if (await handleModelsRoutes({
|
|
1108
|
+
req,
|
|
1109
|
+
res,
|
|
1110
|
+
method,
|
|
1111
|
+
pathname,
|
|
1112
|
+
url,
|
|
1113
|
+
json,
|
|
1114
|
+
providerCachePath,
|
|
1115
|
+
getOrFetchProvider,
|
|
1116
|
+
getOrFetchAllProviders,
|
|
1117
|
+
resolveModelsCacheDir,
|
|
1118
|
+
pathExists: fs.existsSync,
|
|
1119
|
+
readDir: fs.readdirSync,
|
|
1120
|
+
unlinkFile: fs.unlinkSync,
|
|
1121
|
+
joinPath: path.join,
|
|
1122
|
+
})) {
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
// ── NFA routes (/api/nfa/*) ─────────────────────────────────────────
|
|
1126
|
+
// Extracted — will move to @elizaos/plugin-bnb-identity (Plugin.routes)
|
|
1127
|
+
// when the plugin directory is created. Until then, NFA routes are
|
|
1128
|
+
// served inline from nfa-routes.ts if needed, or disabled.
|
|
1129
|
+
if (await handleRegistryRoutes({
|
|
1130
|
+
req,
|
|
1131
|
+
res,
|
|
1132
|
+
method,
|
|
1133
|
+
pathname,
|
|
1134
|
+
url,
|
|
1135
|
+
json,
|
|
1136
|
+
error,
|
|
1137
|
+
getPluginManager: () => getPluginManagerForState(state),
|
|
1138
|
+
getLoadedPluginNames: () => state.runtime?.plugins.map((plugin) => plugin.name) ?? [],
|
|
1139
|
+
getBundledPluginIds: () => getReleaseBundledPluginIds(),
|
|
1140
|
+
classifyRegistryPluginRelease,
|
|
1141
|
+
})) {
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1145
|
+
// Plugin routes (extracted to plugin-routes.ts)
|
|
1146
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1147
|
+
if (pathname === "/api/plugins" ||
|
|
1148
|
+
pathname.startsWith("/api/plugins/") ||
|
|
1149
|
+
pathname === "/api/secrets" ||
|
|
1150
|
+
pathname === "/api/core/status") {
|
|
1151
|
+
if (await handlePluginRoutes({
|
|
1152
|
+
req,
|
|
1153
|
+
res,
|
|
1154
|
+
method,
|
|
1155
|
+
pathname,
|
|
1156
|
+
url,
|
|
1157
|
+
state,
|
|
1158
|
+
json,
|
|
1159
|
+
error,
|
|
1160
|
+
readJsonBody,
|
|
1161
|
+
scheduleRuntimeRestart,
|
|
1162
|
+
restartRuntime,
|
|
1163
|
+
BLOCKED_ENV_KEYS,
|
|
1164
|
+
discoverInstalledPlugins,
|
|
1165
|
+
maskValue,
|
|
1166
|
+
aggregateSecrets,
|
|
1167
|
+
readProviderCache,
|
|
1168
|
+
paramKeyToCategory,
|
|
1169
|
+
buildPluginEvmDiagnosticEntry,
|
|
1170
|
+
EVM_PLUGIN_PACKAGE,
|
|
1171
|
+
applyWhatsAppQrOverride,
|
|
1172
|
+
applySignalQrOverride,
|
|
1173
|
+
signalAuthExists,
|
|
1174
|
+
resolvePluginConfigMutationRejections,
|
|
1175
|
+
requirePluginManager,
|
|
1176
|
+
requireCoreManager,
|
|
1177
|
+
})) {
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1182
|
+
// Skills routes (extracted to skills-routes.ts)
|
|
1183
|
+
// Curated-skills routes live at /api/skills/curated/* and must be dispatched
|
|
1184
|
+
// before the generic skills routes (which reject "/" in skill IDs).
|
|
1185
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1186
|
+
if (pathname.startsWith("/api/skills/curated")) {
|
|
1187
|
+
if (await handleCuratedSkillsRoutes({
|
|
1188
|
+
req,
|
|
1189
|
+
res,
|
|
1190
|
+
method,
|
|
1191
|
+
pathname,
|
|
1192
|
+
url,
|
|
1193
|
+
json,
|
|
1194
|
+
error,
|
|
1195
|
+
readJsonBody,
|
|
1196
|
+
})) {
|
|
1197
|
+
return;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (pathname.startsWith("/api/skills")) {
|
|
1201
|
+
if (await handleSkillsRoutes({
|
|
1202
|
+
req,
|
|
1203
|
+
res,
|
|
1204
|
+
method,
|
|
1205
|
+
pathname,
|
|
1206
|
+
url,
|
|
1207
|
+
state,
|
|
1208
|
+
json,
|
|
1209
|
+
error,
|
|
1210
|
+
readJsonBody,
|
|
1211
|
+
readBody,
|
|
1212
|
+
discoverSkills,
|
|
1213
|
+
saveElizaConfig,
|
|
1214
|
+
})) {
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
if (await handleDiagnosticsRoutes({
|
|
1219
|
+
req,
|
|
1220
|
+
res,
|
|
1221
|
+
method,
|
|
1222
|
+
pathname,
|
|
1223
|
+
url,
|
|
1224
|
+
logBuffer: state.logBuffer,
|
|
1225
|
+
clearLogBuffer: () => {
|
|
1226
|
+
const previous = state.logBuffer.length;
|
|
1227
|
+
state.logBuffer.length = 0;
|
|
1228
|
+
return previous;
|
|
1229
|
+
},
|
|
1230
|
+
readJsonBody,
|
|
1231
|
+
error,
|
|
1232
|
+
eventBuffer: state.eventBuffer,
|
|
1233
|
+
initSse: initSseFromChatRoutes,
|
|
1234
|
+
writeSseJson: writeSseJsonFromChatRoutes,
|
|
1235
|
+
json,
|
|
1236
|
+
auditEventTypes: AUDIT_EVENT_TYPES,
|
|
1237
|
+
auditSeverities: AUDIT_SEVERITIES,
|
|
1238
|
+
getAuditFeedSize,
|
|
1239
|
+
queryAuditFeed: (query) => queryAuditFeed({
|
|
1240
|
+
type: AUDIT_EVENT_TYPES.includes(query.type ?? "")
|
|
1241
|
+
? query.type
|
|
1242
|
+
: undefined,
|
|
1243
|
+
severity: AUDIT_SEVERITIES.includes(query.severity ?? "")
|
|
1244
|
+
? query.severity
|
|
1245
|
+
: undefined,
|
|
1246
|
+
sinceMs: query.sinceMs,
|
|
1247
|
+
limit: query.limit,
|
|
1248
|
+
}).map((entry) => ({
|
|
1249
|
+
timestamp: entry.timestamp,
|
|
1250
|
+
type: entry.type,
|
|
1251
|
+
summary: entry.summary,
|
|
1252
|
+
severity: entry.severity,
|
|
1253
|
+
metadata: entry.metadata,
|
|
1254
|
+
})),
|
|
1255
|
+
subscribeAuditFeed,
|
|
1256
|
+
})) {
|
|
1257
|
+
return;
|
|
1258
|
+
}
|
|
1259
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1260
|
+
// Bug report routes
|
|
1261
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1262
|
+
if (await handleBugReportRoutes({
|
|
1263
|
+
req,
|
|
1264
|
+
res,
|
|
1265
|
+
method,
|
|
1266
|
+
pathname,
|
|
1267
|
+
readJsonBody,
|
|
1268
|
+
json,
|
|
1269
|
+
error,
|
|
1270
|
+
})) {
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1274
|
+
// Wallet core routes (addresses, balances, generate, config, export)
|
|
1275
|
+
// Canonical implementation lives in @elizaos/app-steward; wired here
|
|
1276
|
+
// so the API server exposes them without requiring plugin registration.
|
|
1277
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1278
|
+
if (pathname.startsWith("/api/wallet/")) {
|
|
1279
|
+
let stewardWalletCoreRoutes = null;
|
|
1280
|
+
try {
|
|
1281
|
+
const { handleWalletCoreRoutes } = await import("@elizaos/app-steward/routes/wallet-core-routes");
|
|
1282
|
+
stewardWalletCoreRoutes = handleWalletCoreRoutes;
|
|
1283
|
+
}
|
|
1284
|
+
catch (err) {
|
|
1285
|
+
if (isWalletBridgeImportFailure(err)) {
|
|
1286
|
+
logger.debug({ err }, "[eliza-api] Wallet core routes unavailable from @elizaos/app-steward; falling back to local bridge");
|
|
1287
|
+
}
|
|
1288
|
+
else {
|
|
1289
|
+
logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
|
|
1290
|
+
error(res, getErrorMessage(err), 500);
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
if (stewardWalletCoreRoutes) {
|
|
1295
|
+
try {
|
|
1296
|
+
if (await stewardWalletCoreRoutes(req, res, {
|
|
1297
|
+
runtime: state.runtime ?? null,
|
|
1298
|
+
restartRuntime,
|
|
1299
|
+
scheduleRuntimeRestart,
|
|
1300
|
+
})) {
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
catch (err) {
|
|
1305
|
+
logger.error({ err }, "[eliza-api] Wallet core route bridge failed");
|
|
1306
|
+
error(res, getErrorMessage(err), 500);
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
if (await handleWalletRoutes({
|
|
1311
|
+
req,
|
|
1312
|
+
res,
|
|
1313
|
+
method,
|
|
1314
|
+
pathname,
|
|
1315
|
+
config: loadElizaConfig(),
|
|
1316
|
+
saveConfig: saveElizaConfig,
|
|
1317
|
+
ensureWalletKeysInEnvAndConfig,
|
|
1318
|
+
resolveWalletExportRejection,
|
|
1319
|
+
restartRuntime,
|
|
1320
|
+
scheduleRuntimeRestart,
|
|
1321
|
+
readJsonBody,
|
|
1322
|
+
json,
|
|
1323
|
+
error,
|
|
1324
|
+
runtime: state.runtime ?? null,
|
|
1325
|
+
})) {
|
|
1326
|
+
return;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1330
|
+
// ERC-8004 Registry, Agent self-status, Privy — delegated to agent-status-routes.ts
|
|
1331
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1332
|
+
if (await handleAgentStatusRoutes({
|
|
1333
|
+
req,
|
|
1334
|
+
res,
|
|
1335
|
+
method,
|
|
1336
|
+
pathname,
|
|
1337
|
+
url,
|
|
1338
|
+
state: coerce(state),
|
|
1339
|
+
json,
|
|
1340
|
+
error,
|
|
1341
|
+
readJsonBody,
|
|
1342
|
+
deps: {
|
|
1343
|
+
getWalletAddresses,
|
|
1344
|
+
resolveWalletCapabilityStatus: coerce(resolveWalletCapabilityStatus),
|
|
1345
|
+
resolveWalletRpcReadiness: coerce(resolveWalletRpcReadiness),
|
|
1346
|
+
resolveTradePermissionMode,
|
|
1347
|
+
canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
|
|
1348
|
+
detectRuntimeModel: coerce(detectRuntimeModel),
|
|
1349
|
+
resolveProviderFromModel,
|
|
1350
|
+
getGlobalAwarenessRegistry: coerce(getGlobalAwarenessRegistry),
|
|
1351
|
+
isPrivyWalletProvisioningEnabled,
|
|
1352
|
+
ensurePrivyWalletsForCustomUser: coerce(ensurePrivyWalletsForCustomUser),
|
|
1353
|
+
RegistryService,
|
|
1354
|
+
},
|
|
1355
|
+
})) {
|
|
1356
|
+
return;
|
|
1357
|
+
}
|
|
1358
|
+
// ── Update routes (extracted to update-routes.ts) ─────────────────────
|
|
1359
|
+
if (await handleUpdateRoutes({
|
|
1360
|
+
req,
|
|
1361
|
+
res,
|
|
1362
|
+
method,
|
|
1363
|
+
pathname,
|
|
1364
|
+
url,
|
|
1365
|
+
state,
|
|
1366
|
+
json,
|
|
1367
|
+
error,
|
|
1368
|
+
readJsonBody,
|
|
1369
|
+
saveElizaConfig,
|
|
1370
|
+
})) {
|
|
1371
|
+
return;
|
|
1372
|
+
}
|
|
1373
|
+
// ── Connector routes (extracted to connector-routes.ts) ──────────────
|
|
1374
|
+
if (await handleConnectorRoutes({
|
|
1375
|
+
req,
|
|
1376
|
+
res,
|
|
1377
|
+
method,
|
|
1378
|
+
pathname,
|
|
1379
|
+
state,
|
|
1380
|
+
json,
|
|
1381
|
+
error,
|
|
1382
|
+
readJsonBody,
|
|
1383
|
+
saveElizaConfig,
|
|
1384
|
+
redactConfigSecrets,
|
|
1385
|
+
isBlockedObjectKey,
|
|
1386
|
+
cloneWithoutBlockedObjectKeys,
|
|
1387
|
+
onConnectorDisconnect: async (connectorName) => {
|
|
1388
|
+
// Disconnect cascades to the n8n credential cache: without this,
|
|
1389
|
+
// credStore.get() returns a stale n8n credential id and the next
|
|
1390
|
+
// workflow generation silently bypasses the missing-credentials
|
|
1391
|
+
// banner.
|
|
1392
|
+
const credTypes = credTypesForConnector(connectorName);
|
|
1393
|
+
if (credTypes.length === 0)
|
|
1394
|
+
return;
|
|
1395
|
+
const runtime = state.runtime;
|
|
1396
|
+
if (!runtime)
|
|
1397
|
+
return;
|
|
1398
|
+
const credStore = runtime.getService("n8n_credential_store");
|
|
1399
|
+
const deleteCred = credStore?.delete;
|
|
1400
|
+
if (!deleteCred)
|
|
1401
|
+
return;
|
|
1402
|
+
const userId = runtime.agentId;
|
|
1403
|
+
await Promise.all(credTypes.map((credType) => deleteCred(userId, credType).catch(() => {
|
|
1404
|
+
/* per-credType failure shouldn't block siblings */
|
|
1405
|
+
})));
|
|
1406
|
+
},
|
|
1407
|
+
})) {
|
|
1408
|
+
return;
|
|
1409
|
+
}
|
|
1410
|
+
// ── WhatsApp routes (/api/whatsapp/*) ────────────────────────────────────
|
|
1411
|
+
// Moved to @elizaos/plugin-whatsapp setup-routes.ts (registered via Plugin.routes).
|
|
1412
|
+
// ── Inbox routes (/api/inbox/*) ───────────────────────────────
|
|
1413
|
+
// Cross-channel read-only feed that merges connector messages
|
|
1414
|
+
// (imessage, telegram, discord, whatsapp, etc.) into a single
|
|
1415
|
+
// time-ordered view. See api/inbox-routes.ts for details.
|
|
1416
|
+
const blueBubblesHandled = await handleBlueBubblesRoute(req, res, pathname, method, {
|
|
1417
|
+
runtime: state.runtime
|
|
1418
|
+
? {
|
|
1419
|
+
getService: (type) => state.runtime.getService(type),
|
|
1420
|
+
}
|
|
1421
|
+
: undefined,
|
|
1422
|
+
}, { json, error, readJsonBody });
|
|
1423
|
+
if (blueBubblesHandled)
|
|
1424
|
+
return;
|
|
1425
|
+
if (pathname.startsWith("/api/inbox")) {
|
|
1426
|
+
const handled = await handleInboxRoute(req, res, pathname, method, { runtime: state.runtime ?? null }, { json, error, readJsonBody });
|
|
1427
|
+
if (handled)
|
|
1428
|
+
return;
|
|
1429
|
+
}
|
|
1430
|
+
// ── iMessage routes (/api/imessage/*) ─────────────────────────────────
|
|
1431
|
+
// Extracted to @elizaos/plugin-imessage setup-routes.ts (Plugin.routes).
|
|
1432
|
+
// The plugin registers rawPath routes that serve the same legacy paths.
|
|
1433
|
+
// ── Cloud relay status (/api/cloud/relay-status) ──────────────────────
|
|
1434
|
+
if (pathname === "/api/cloud/relay-status") {
|
|
1435
|
+
const handled = await handleCloudRelayRoute(req, res, pathname, method, {
|
|
1436
|
+
runtime: state.runtime
|
|
1437
|
+
? {
|
|
1438
|
+
getService: (type) => state.runtime.getService(type),
|
|
1439
|
+
}
|
|
1440
|
+
: undefined,
|
|
1441
|
+
}, { json, error, readJsonBody });
|
|
1442
|
+
if (handled)
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
// Telegram setup routes: now handled by @elizaos/plugin-telegram via
|
|
1446
|
+
// runtime plugin routes (rawPath: true). See plugin-telegram/src/setup-routes.ts.
|
|
1447
|
+
// ── Telegram account routes (/api/telegram-account/*) ────────────────
|
|
1448
|
+
if (pathname.startsWith("/api/telegram-account")) {
|
|
1449
|
+
const routeState = {
|
|
1450
|
+
config: state.config,
|
|
1451
|
+
saveConfig: () => saveElizaConfig(state.config),
|
|
1452
|
+
runtime: state.runtime
|
|
1453
|
+
? {
|
|
1454
|
+
getService: (type) => state.runtime.getService(type),
|
|
1455
|
+
getSetting: (key) => state.runtime.getSetting(key),
|
|
1456
|
+
}
|
|
1457
|
+
: undefined,
|
|
1458
|
+
telegramAccountAuthSession: state.telegramAccountAuthSession,
|
|
1459
|
+
};
|
|
1460
|
+
const handled = await handleTelegramAccountRoute(req, res, pathname, method, routeState, { json, error, readJsonBody }, {
|
|
1461
|
+
createAuthSession: (options) => new TelegramAccountAuthSession(options),
|
|
1462
|
+
authStateExists: telegramAccountAuthStateExists,
|
|
1463
|
+
sessionExists: telegramAccountSessionExists,
|
|
1464
|
+
clearAuthState: clearTelegramAccountAuthState,
|
|
1465
|
+
clearSession: clearTelegramAccountSession,
|
|
1466
|
+
});
|
|
1467
|
+
state.telegramAccountAuthSession =
|
|
1468
|
+
routeState.telegramAccountAuthSession ?? null;
|
|
1469
|
+
if (handled)
|
|
1470
|
+
return;
|
|
1471
|
+
}
|
|
1472
|
+
// ── Discord Local routes (/api/discord-local/*) — extracted to @elizaos/plugin-discord (setup-routes.ts) ──
|
|
1473
|
+
// ── Signal routes (/api/signal/*) — extracted to @elizaos/plugin-signal (setup-routes.ts) ──
|
|
1474
|
+
// ── Restart ──────────────────────────────────────────────────────────
|
|
1475
|
+
if (method === "POST" && pathname === "/api/restart") {
|
|
1476
|
+
state.agentState = "restarting";
|
|
1477
|
+
state.startup = { ...state.startup, phase: "restarting" };
|
|
1478
|
+
state.broadcastStatus?.();
|
|
1479
|
+
json(res, { ok: true, message: "Restarting...", restarting: true });
|
|
1480
|
+
setTimeout(() => process.exit(0), 1000);
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1483
|
+
// ── TTS routes (extracted to tts-routes.ts) ──────────────────────────
|
|
1484
|
+
if (await handleTtsRoutes({
|
|
1485
|
+
req,
|
|
1486
|
+
res,
|
|
1487
|
+
method,
|
|
1488
|
+
pathname,
|
|
1489
|
+
state,
|
|
1490
|
+
json,
|
|
1491
|
+
error,
|
|
1492
|
+
readJsonBody,
|
|
1493
|
+
isRedactedSecretValue,
|
|
1494
|
+
fetchWithTimeoutGuard,
|
|
1495
|
+
streamResponseBodyWithByteLimit: coerce(streamResponseBodyWithByteLimit),
|
|
1496
|
+
responseContentLength,
|
|
1497
|
+
isAbortError,
|
|
1498
|
+
ELEVENLABS_FETCH_TIMEOUT_MS: 30_000,
|
|
1499
|
+
ELEVENLABS_AUDIO_MAX_BYTES: 20 * 1_048_576,
|
|
1500
|
+
})) {
|
|
1501
|
+
return;
|
|
1502
|
+
}
|
|
1503
|
+
// ── Avatar routes (extracted to avatar-routes.ts) ───────────────────
|
|
1504
|
+
if (await handleAvatarRoutes({
|
|
1505
|
+
req,
|
|
1506
|
+
res,
|
|
1507
|
+
method,
|
|
1508
|
+
pathname,
|
|
1509
|
+
json,
|
|
1510
|
+
error,
|
|
1511
|
+
})) {
|
|
1512
|
+
return;
|
|
1513
|
+
}
|
|
1514
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1515
|
+
// Config routes (extracted to config-routes.ts)
|
|
1516
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1517
|
+
if (pathname === "/api/config" ||
|
|
1518
|
+
pathname === "/api/config/schema" ||
|
|
1519
|
+
pathname === "/api/config/reload") {
|
|
1520
|
+
if (await handleConfigRoutes({
|
|
1521
|
+
req,
|
|
1522
|
+
res,
|
|
1523
|
+
method,
|
|
1524
|
+
pathname,
|
|
1525
|
+
url,
|
|
1526
|
+
config: state.config,
|
|
1527
|
+
runtime: state.runtime,
|
|
1528
|
+
json,
|
|
1529
|
+
error,
|
|
1530
|
+
readJsonBody,
|
|
1531
|
+
redactConfigSecrets,
|
|
1532
|
+
isBlockedObjectKey,
|
|
1533
|
+
stripRedactedPlaceholderValuesDeep,
|
|
1534
|
+
patchTouchesProviderSelection,
|
|
1535
|
+
BLOCKED_ENV_KEYS,
|
|
1536
|
+
CONFIG_WRITE_ALLOWED_TOP_KEYS,
|
|
1537
|
+
resolveMcpServersRejection,
|
|
1538
|
+
resolveMcpTerminalAuthorizationRejection,
|
|
1539
|
+
})) {
|
|
1540
|
+
return;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
// ── Permissions extra routes (extracted to permissions-routes-extra.ts) ──
|
|
1544
|
+
if (await handlePermissionsExtraRoutes({
|
|
1545
|
+
req,
|
|
1546
|
+
res,
|
|
1547
|
+
method,
|
|
1548
|
+
pathname,
|
|
1549
|
+
state: coerce(state),
|
|
1550
|
+
json,
|
|
1551
|
+
error,
|
|
1552
|
+
readJsonBody,
|
|
1553
|
+
saveElizaConfig,
|
|
1554
|
+
resolveTradePermissionMode: coerce(resolveTradePermissionMode),
|
|
1555
|
+
canUseLocalTradeExecution: coerce(canUseLocalTradeExecution),
|
|
1556
|
+
parseAgentAutomationMode,
|
|
1557
|
+
persistAgentAutomationMode: coerce(persistAgentAutomationMode),
|
|
1558
|
+
})) {
|
|
1559
|
+
return;
|
|
1560
|
+
}
|
|
1561
|
+
if (await handlePermissionRoutes({
|
|
1562
|
+
req,
|
|
1563
|
+
res,
|
|
1564
|
+
method,
|
|
1565
|
+
pathname,
|
|
1566
|
+
state,
|
|
1567
|
+
readJsonBody,
|
|
1568
|
+
json,
|
|
1569
|
+
error,
|
|
1570
|
+
saveConfig: (config) => {
|
|
1571
|
+
saveElizaConfig(config);
|
|
1572
|
+
},
|
|
1573
|
+
scheduleRuntimeRestart,
|
|
1574
|
+
})) {
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1577
|
+
if (await handleRelationshipsRoutes({
|
|
1578
|
+
req,
|
|
1579
|
+
res,
|
|
1580
|
+
method,
|
|
1581
|
+
pathname,
|
|
1582
|
+
runtime: state.runtime ?? undefined,
|
|
1583
|
+
readJsonBody,
|
|
1584
|
+
json,
|
|
1585
|
+
error,
|
|
1586
|
+
})) {
|
|
1587
|
+
return;
|
|
1588
|
+
}
|
|
1589
|
+
if (await handleBrowserWorkspaceRoutes({
|
|
1590
|
+
req,
|
|
1591
|
+
res,
|
|
1592
|
+
method,
|
|
1593
|
+
pathname,
|
|
1594
|
+
readJsonBody,
|
|
1595
|
+
json,
|
|
1596
|
+
error,
|
|
1597
|
+
})) {
|
|
1598
|
+
return;
|
|
1599
|
+
}
|
|
1600
|
+
// Agent self-status, Privy, and ERC-8004 registry routes are now handled
|
|
1601
|
+
// by handleAgentStatusRoutes above.
|
|
1602
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1603
|
+
// Subscription status route
|
|
1604
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1605
|
+
// ── GET /api/subscription/status (direct handler fallback) ─────────────
|
|
1606
|
+
// Note: subscription-routes.ts handles /api/subscription/* but this is
|
|
1607
|
+
// kept here in case the prefix routing is not active.
|
|
1608
|
+
// (handleSubscriptionRoutes already covers this, so no duplicate needed.)
|
|
1609
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1610
|
+
// BSC trade routes and wallet trade execute — now handled by
|
|
1611
|
+
// @elizaos/app-steward plugin routes. See apps/app-steward/src/plugin.ts.
|
|
1612
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1613
|
+
if (isLifeOpsCloudPluginRoute(pathname) &&
|
|
1614
|
+
(await tryHandleRuntimePluginRoute({
|
|
1615
|
+
req,
|
|
1616
|
+
res,
|
|
1617
|
+
method,
|
|
1618
|
+
pathname,
|
|
1619
|
+
url,
|
|
1620
|
+
runtime: state.runtime,
|
|
1621
|
+
isAuthorized: () => isAuthorized(req),
|
|
1622
|
+
}))) {
|
|
1623
|
+
return;
|
|
1624
|
+
}
|
|
1625
|
+
// ── Cloud routes (/api/cloud/*) ─────────────────────────────────────────
|
|
1626
|
+
if (pathname.startsWith("/api/cloud/")) {
|
|
1627
|
+
const xRelayHandled = await handleXRelayRoute(req, res, pathname, method, {
|
|
1628
|
+
config: state.config,
|
|
1629
|
+
runtime: state.runtime,
|
|
1630
|
+
});
|
|
1631
|
+
if (xRelayHandled)
|
|
1632
|
+
return;
|
|
1633
|
+
const billingHandled = await handleCloudBillingRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
|
|
1634
|
+
if (billingHandled)
|
|
1635
|
+
return;
|
|
1636
|
+
// Compat proxy routes — transparent proxy to Eliza Cloud v2 /api/compat/*
|
|
1637
|
+
const compatHandled = await handleCloudCompatRoute(req, res, pathname, method, { config: state.config, runtime: state.runtime });
|
|
1638
|
+
if (compatHandled)
|
|
1639
|
+
return;
|
|
1640
|
+
const cloudState = {
|
|
1641
|
+
config: state.config,
|
|
1642
|
+
cloudManager: state.cloudManager,
|
|
1643
|
+
runtime: state.runtime,
|
|
1644
|
+
saveConfig: saveElizaConfig,
|
|
1645
|
+
createTelemetrySpan: createIntegrationTelemetrySpan,
|
|
1646
|
+
restartRuntime,
|
|
1647
|
+
};
|
|
1648
|
+
const handled = await handleCloudRoute(req, res, pathname, method, cloudState);
|
|
1649
|
+
if (handled)
|
|
1650
|
+
return;
|
|
1651
|
+
}
|
|
1652
|
+
// ── Sandbox routes (/api/sandbox/*) ────────────────────────────────────
|
|
1653
|
+
if (pathname.startsWith("/api/sandbox")) {
|
|
1654
|
+
const handled = await handleSandboxRoute(req, res, pathname, method, {
|
|
1655
|
+
sandboxManager: state.sandboxManager,
|
|
1656
|
+
});
|
|
1657
|
+
if (handled)
|
|
1658
|
+
return;
|
|
1659
|
+
}
|
|
1660
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1661
|
+
// Conversation routes (/api/conversations/*) — delegated to conversation-routes.ts
|
|
1662
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1663
|
+
if (pathname.startsWith("/api/conversations")) {
|
|
1664
|
+
// Cast state — ConversationRouteState is a compatible subset of ServerState
|
|
1665
|
+
const handled = await handleConversationRoutes({
|
|
1666
|
+
req,
|
|
1667
|
+
res,
|
|
1668
|
+
method,
|
|
1669
|
+
pathname,
|
|
1670
|
+
readJsonBody,
|
|
1671
|
+
json,
|
|
1672
|
+
error,
|
|
1673
|
+
state: coerce(state),
|
|
1674
|
+
});
|
|
1675
|
+
if (handled)
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1679
|
+
// OpenAI-compatible routes (/v1/*) — delegated to chat-routes.ts
|
|
1680
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1681
|
+
if (pathname.startsWith("/v1/")) {
|
|
1682
|
+
// Cast state — ChatRouteState is a compatible subset of ServerState
|
|
1683
|
+
const handled = await handleChatRoutes({
|
|
1684
|
+
req,
|
|
1685
|
+
res,
|
|
1686
|
+
method,
|
|
1687
|
+
pathname,
|
|
1688
|
+
readJsonBody,
|
|
1689
|
+
json,
|
|
1690
|
+
error,
|
|
1691
|
+
state: coerce(state),
|
|
1692
|
+
});
|
|
1693
|
+
if (handled)
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
// ── Database management API ─────────────────────────────────────────────
|
|
1697
|
+
if (pathname.startsWith("/api/database/")) {
|
|
1698
|
+
const handled = await handleDatabaseRoute(req, res, state.runtime, pathname);
|
|
1699
|
+
if (handled)
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
// ── Trajectory management API ──────────────────────────────────────────
|
|
1703
|
+
if (pathname.startsWith("/api/trajectories")) {
|
|
1704
|
+
if (!state.runtime) {
|
|
1705
|
+
sendJsonError(res, "Agent runtime not started yet", 503);
|
|
1706
|
+
return;
|
|
1707
|
+
}
|
|
1708
|
+
const handled = await handleTrajectoryRoute(req, res, state.runtime, pathname, method);
|
|
1709
|
+
if (handled)
|
|
1710
|
+
return;
|
|
1711
|
+
}
|
|
1712
|
+
// ── Coding Agent API (/api/coding-agents/*, /api/workspace/*, /api/issues/*) ──
|
|
1713
|
+
if (!state.runtime &&
|
|
1714
|
+
method === "GET" &&
|
|
1715
|
+
pathname === "/api/coding-agents/coordinator/status") {
|
|
1716
|
+
error(res, "Coding agent runtime unavailable", 503);
|
|
1717
|
+
return;
|
|
1718
|
+
}
|
|
1719
|
+
if (!state.runtime &&
|
|
1720
|
+
method === "GET" &&
|
|
1721
|
+
pathname === "/api/coding-agents/preflight") {
|
|
1722
|
+
error(res, "Coding agent runtime unavailable", 503);
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
if (!state.runtime &&
|
|
1726
|
+
method === "GET" &&
|
|
1727
|
+
pathname.startsWith("/api/coding-agents")) {
|
|
1728
|
+
error(res, "Coding agent runtime unavailable", 503);
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
if (state.runtime &&
|
|
1732
|
+
(pathname.startsWith("/api/coding-agents") ||
|
|
1733
|
+
pathname.startsWith("/api/workspace") ||
|
|
1734
|
+
pathname.startsWith("/api/issues"))) {
|
|
1735
|
+
const isCoordinatorStatusRoute = method === "GET" && pathname === "/api/coding-agents/coordinator/status";
|
|
1736
|
+
const isPreflightRoute = method === "GET" && pathname === "/api/coding-agents/preflight";
|
|
1737
|
+
// Try to dynamically load the route handler from the local plugin first
|
|
1738
|
+
let handled = false;
|
|
1739
|
+
// Lazily start PTY_SERVICE if it was registered but not yet started.
|
|
1740
|
+
// The core runtime only starts services on-demand via getServiceLoadPromise,
|
|
1741
|
+
// but the orchestrator plugin's route handler checks getService() (which
|
|
1742
|
+
// only returns already-started instances). Without this kick, the plugin
|
|
1743
|
+
// sees null and returns 503 for every route.
|
|
1744
|
+
if (!state.runtime.getService("PTY_SERVICE") &&
|
|
1745
|
+
state.runtime.hasService("PTY_SERVICE")) {
|
|
1746
|
+
try {
|
|
1747
|
+
await state.runtime.getServiceLoadPromise("PTY_SERVICE");
|
|
1748
|
+
wireCodingAgentBridgesNow(state);
|
|
1749
|
+
}
|
|
1750
|
+
catch {
|
|
1751
|
+
// Service start failed — the fallback handler will surface 503 unavailability.
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
const ptyService = state.runtime.getService("PTY_SERVICE");
|
|
1755
|
+
const coordinator = getCoordinatorFromRuntime(state.runtime);
|
|
1756
|
+
const codeTaskService = state.runtime.getService("CODE_TASK");
|
|
1757
|
+
const isTaskRoute = method === "GET" && pathname === "/api/coding-agents/tasks";
|
|
1758
|
+
const isTaskDetailRoute = method === "GET" && /^\/api\/coding-agents\/tasks\/[^/]+$/.test(pathname);
|
|
1759
|
+
const isSessionsRoute = method === "GET" && pathname === "/api/coding-agents/sessions";
|
|
1760
|
+
const isSessionDetailRoute = method === "GET" &&
|
|
1761
|
+
/^\/api\/coding-agents\/sessions\/[^/]+$/.test(pathname);
|
|
1762
|
+
const isScratchRoute = method === "GET" && pathname === "/api/coding-agents/scratch";
|
|
1763
|
+
const isAgentListRoute = method === "GET" && pathname === "/api/coding-agents";
|
|
1764
|
+
// The settings UI and startup hydration poll these routes early. When the
|
|
1765
|
+
// PTY/coordinator services are not ready yet, surface explicit 503
|
|
1766
|
+
// unavailability rather than synthesizing success-shaped empty payloads.
|
|
1767
|
+
if ((isCoordinatorStatusRoute && !coordinator) ||
|
|
1768
|
+
(isPreflightRoute && !ptyService) ||
|
|
1769
|
+
((isTaskRoute ||
|
|
1770
|
+
isTaskDetailRoute ||
|
|
1771
|
+
isScratchRoute ||
|
|
1772
|
+
isAgentListRoute) &&
|
|
1773
|
+
!codeTaskService) ||
|
|
1774
|
+
((isSessionsRoute || isSessionDetailRoute) && !ptyService)) {
|
|
1775
|
+
handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
|
|
1776
|
+
}
|
|
1777
|
+
// Prefer @elizaos/plugin-agent-orchestrator route handler so the full coordinator
|
|
1778
|
+
// contract is served from the embedded runtime (replaces the old plugin).
|
|
1779
|
+
if (!handled)
|
|
1780
|
+
try {
|
|
1781
|
+
const orchestratorPlugin = agentOrchestratorCompat;
|
|
1782
|
+
if (orchestratorPlugin?.createCodingAgentRouteHandler) {
|
|
1783
|
+
const coordinator = orchestratorPlugin.getCoordinator?.(state.runtime);
|
|
1784
|
+
const handler = orchestratorPlugin.createCodingAgentRouteHandler(state.runtime, coordinator);
|
|
1785
|
+
handled = await handler(req, res, pathname, req.method ?? "GET");
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
catch {
|
|
1789
|
+
// Compat layer unavailable — final fallback below handles coding-agents routes.
|
|
1790
|
+
}
|
|
1791
|
+
// Final fallback: handle coding-agents routes using the plugin's CODE_TASK compatibility service.
|
|
1792
|
+
if (!handled && pathname.startsWith("/api/coding-agents")) {
|
|
1793
|
+
handled = await handleCodingAgentsFallback(state.runtime, pathname, method, req, res);
|
|
1794
|
+
}
|
|
1795
|
+
if (handled)
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
if (await handleCloudStatusRoutes({
|
|
1799
|
+
req,
|
|
1800
|
+
res,
|
|
1801
|
+
method,
|
|
1802
|
+
pathname,
|
|
1803
|
+
config: state.config,
|
|
1804
|
+
runtime: state.runtime,
|
|
1805
|
+
json,
|
|
1806
|
+
})) {
|
|
1807
|
+
return;
|
|
1808
|
+
}
|
|
1809
|
+
// ── App routes (/api/apps/*) ──────────────────────────────────────────
|
|
1810
|
+
if (await handleAppsRoutes({
|
|
1811
|
+
req,
|
|
1812
|
+
res,
|
|
1813
|
+
method,
|
|
1814
|
+
pathname,
|
|
1815
|
+
url,
|
|
1816
|
+
appManager: {
|
|
1817
|
+
listAvailable: (pluginManager) => state.appManager.listAvailable(pluginManager),
|
|
1818
|
+
search: (pluginManager, query, limit) => state.appManager.search(pluginManager, query, limit),
|
|
1819
|
+
listInstalled: (pluginManager) => state.appManager.listInstalled(pluginManager),
|
|
1820
|
+
listRuns: (runtime) => state.appManager.listRuns(runtime && typeof runtime === "object"
|
|
1821
|
+
? runtime
|
|
1822
|
+
: null),
|
|
1823
|
+
getRun: (runId, runtime) => state.appManager.getRun(runId, runtime && typeof runtime === "object"
|
|
1824
|
+
? runtime
|
|
1825
|
+
: null),
|
|
1826
|
+
attachRun: (runId, runtime) => state.appManager.attachRun(runId, runtime && typeof runtime === "object"
|
|
1827
|
+
? runtime
|
|
1828
|
+
: null),
|
|
1829
|
+
detachRun: (runId) => state.appManager.detachRun(runId),
|
|
1830
|
+
launch: (pluginManager, name, onProgress, runtime) => state.appManager.launch(pluginManager, name, onProgress, runtime && typeof runtime === "object"
|
|
1831
|
+
? runtime
|
|
1832
|
+
: null),
|
|
1833
|
+
stop: (pluginManager, name, runId, runtime) => state.appManager.stop(pluginManager, name, runId, runtime && typeof runtime === "object"
|
|
1834
|
+
? runtime
|
|
1835
|
+
: null),
|
|
1836
|
+
recordHeartbeat: (runId) => state.appManager.recordHeartbeat(runId),
|
|
1837
|
+
getInfo: (pluginManager, name) => state.appManager.getInfo(pluginManager, name),
|
|
1838
|
+
},
|
|
1839
|
+
getPluginManager: () => getPluginManagerForState(state),
|
|
1840
|
+
parseBoundedLimit,
|
|
1841
|
+
readJsonBody,
|
|
1842
|
+
json,
|
|
1843
|
+
error,
|
|
1844
|
+
runtime: state.runtime,
|
|
1845
|
+
favoriteApps: {
|
|
1846
|
+
read: () => readFavoriteAppsFromConfig(state.config),
|
|
1847
|
+
write: (apps) => writeFavoriteAppsToConfig(state.config, apps),
|
|
1848
|
+
},
|
|
1849
|
+
})) {
|
|
1850
|
+
return;
|
|
1851
|
+
}
|
|
1852
|
+
if (await handleAppPackageRoutes({
|
|
1853
|
+
req,
|
|
1854
|
+
res,
|
|
1855
|
+
method,
|
|
1856
|
+
pathname,
|
|
1857
|
+
url,
|
|
1858
|
+
readJsonBody,
|
|
1859
|
+
json,
|
|
1860
|
+
error,
|
|
1861
|
+
runtime: state.runtime,
|
|
1862
|
+
})) {
|
|
1863
|
+
return;
|
|
1864
|
+
}
|
|
1865
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1866
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1867
|
+
// Workbench routes (extracted to workbench-routes.ts)
|
|
1868
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1869
|
+
if (pathname.startsWith("/api/workbench")) {
|
|
1870
|
+
if (await handleWorkbenchRoutes({
|
|
1871
|
+
req,
|
|
1872
|
+
res,
|
|
1873
|
+
method,
|
|
1874
|
+
pathname,
|
|
1875
|
+
url,
|
|
1876
|
+
state: coerce(state),
|
|
1877
|
+
json,
|
|
1878
|
+
error,
|
|
1879
|
+
readJsonBody,
|
|
1880
|
+
toWorkbenchTask: coerce(toWorkbenchTask),
|
|
1881
|
+
toWorkbenchTodo: coerce(toWorkbenchTodo),
|
|
1882
|
+
normalizeTags,
|
|
1883
|
+
readTaskMetadata,
|
|
1884
|
+
readTaskCompleted,
|
|
1885
|
+
parseNullableNumber,
|
|
1886
|
+
asObject,
|
|
1887
|
+
decodePathComponent,
|
|
1888
|
+
taskToTriggerSummary: coerce(taskToTriggerSummary),
|
|
1889
|
+
listTriggerTasks: coerce(listTriggerTasks),
|
|
1890
|
+
})) {
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1895
|
+
// Life-ops routes: now served via lifeopsPlugin.routes (rawPath) on the
|
|
1896
|
+
// runtime plugin route system. See app-lifeops/src/routes/plugin.ts.
|
|
1897
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1898
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1899
|
+
// MCP routes (extracted to mcp-routes.ts)
|
|
1900
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1901
|
+
if (pathname.startsWith("/api/mcp")) {
|
|
1902
|
+
if (await handleMcpRoutes({
|
|
1903
|
+
req,
|
|
1904
|
+
res,
|
|
1905
|
+
method,
|
|
1906
|
+
pathname,
|
|
1907
|
+
url,
|
|
1908
|
+
state,
|
|
1909
|
+
json,
|
|
1910
|
+
error,
|
|
1911
|
+
readJsonBody,
|
|
1912
|
+
saveElizaConfig,
|
|
1913
|
+
redactDeep,
|
|
1914
|
+
isBlockedObjectKey,
|
|
1915
|
+
cloneWithoutBlockedObjectKeys,
|
|
1916
|
+
resolveMcpServersRejection,
|
|
1917
|
+
resolveMcpTerminalAuthorizationRejection,
|
|
1918
|
+
decodePathComponent,
|
|
1919
|
+
})) {
|
|
1920
|
+
return;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1924
|
+
// Misc routes (extracted to misc-routes.ts)
|
|
1925
|
+
// ═══════════════════════════════════════════════════════════════════════
|
|
1926
|
+
if (await handleMiscRoutes({
|
|
1927
|
+
req,
|
|
1928
|
+
res,
|
|
1929
|
+
method,
|
|
1930
|
+
pathname,
|
|
1931
|
+
url,
|
|
1932
|
+
state: coerce(state),
|
|
1933
|
+
json,
|
|
1934
|
+
error,
|
|
1935
|
+
readJsonBody,
|
|
1936
|
+
AGENT_EVENT_ALLOWED_STREAMS,
|
|
1937
|
+
resolveTerminalRunRejection,
|
|
1938
|
+
resolveTerminalRunClientId,
|
|
1939
|
+
isSharedTerminalClientId,
|
|
1940
|
+
activeTerminalRunCount,
|
|
1941
|
+
setActiveTerminalRunCount: (delta) => {
|
|
1942
|
+
activeTerminalRunCount = Math.max(0, activeTerminalRunCount + delta);
|
|
1943
|
+
},
|
|
1944
|
+
})) {
|
|
1945
|
+
return;
|
|
1946
|
+
}
|
|
1947
|
+
if (await handleWhatsAppRoute(req, res, pathname, method, {
|
|
1948
|
+
whatsappPairingSessions: state.whatsappPairingSessions ?? new Map(),
|
|
1949
|
+
broadcastWs: state.broadcastWs ?? undefined,
|
|
1950
|
+
config: state.config,
|
|
1951
|
+
runtime: state.runtime ?? undefined,
|
|
1952
|
+
saveConfig: () => saveElizaConfig(state.config),
|
|
1953
|
+
workspaceDir: resolveDefaultAgentWorkspaceDir(),
|
|
1954
|
+
}, {
|
|
1955
|
+
sanitizeAccountId: sanitizeWhatsAppAccountId,
|
|
1956
|
+
whatsappAuthExists,
|
|
1957
|
+
whatsappLogout,
|
|
1958
|
+
createWhatsAppPairingSession: (options) => new WhatsAppPairingSession(options),
|
|
1959
|
+
})) {
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1962
|
+
// ── elizaOS plugin HTTP routes (runtime.routes, e.g. /music-player/*) ───
|
|
1963
|
+
if (await tryHandleRuntimePluginRoute({
|
|
1964
|
+
req,
|
|
1965
|
+
res,
|
|
1966
|
+
method,
|
|
1967
|
+
pathname,
|
|
1968
|
+
url,
|
|
1969
|
+
runtime: state.runtime,
|
|
1970
|
+
isAuthorized: () => isAuthorized(req),
|
|
1971
|
+
})) {
|
|
1972
|
+
return;
|
|
1973
|
+
}
|
|
1974
|
+
// ── Connector plugin routes (dynamically registered) ────────────────────
|
|
1975
|
+
for (const handler of state.connectorRouteHandlers) {
|
|
1976
|
+
const handled = await handler(req, res, pathname, method);
|
|
1977
|
+
if (handled)
|
|
1978
|
+
return;
|
|
1979
|
+
}
|
|
1980
|
+
// ── Music player compatibility fallback ─────────────────────────────────
|
|
1981
|
+
if (tryHandleMusicPlayerStatusFallback({
|
|
1982
|
+
pathname,
|
|
1983
|
+
method,
|
|
1984
|
+
runtime: state.runtime,
|
|
1985
|
+
res,
|
|
1986
|
+
})) {
|
|
1987
|
+
return;
|
|
1988
|
+
}
|
|
1989
|
+
// ── Fallback ────────────────────────────────────────────────────────────
|
|
1990
|
+
error(res, "Not found", 404);
|
|
1991
|
+
}
|
|
1992
|
+
// ---------------------------------------------------------------------------
|
|
1993
|
+
// Early log capture — re-exported from the standalone module so existing
|
|
1994
|
+
// callers that `import { captureEarlyLogs } from "../../../../src/api/server"` keep
|
|
1995
|
+
// working. The implementation lives in `./early-logs.ts` to avoid pulling
|
|
1996
|
+
// the entire server dependency graph into lightweight consumers (e.g. the
|
|
1997
|
+
// headless `startEliza()` path).
|
|
1998
|
+
// ---------------------------------------------------------------------------
|
|
1999
|
+
import { flushEarlyLogs } from "./early-logs.js";
|
|
2000
|
+
// ---------------------------------------------------------------------------
|
|
2001
|
+
// Server start
|
|
2002
|
+
// ---------------------------------------------------------------------------
|
|
2003
|
+
export async function startApiServer(opts) {
|
|
2004
|
+
const apiStartTime = Date.now();
|
|
2005
|
+
console.log(`[eliza-api] startApiServer called`);
|
|
2006
|
+
const port = opts?.port ?? resolveServerOnlyPort(process.env);
|
|
2007
|
+
const host = resolveApiBindHost(process.env);
|
|
2008
|
+
ensureApiTokenForBindHost(host);
|
|
2009
|
+
console.log(`[eliza-api] Token check done (${Date.now() - apiStartTime}ms)`);
|
|
2010
|
+
let config;
|
|
2011
|
+
try {
|
|
2012
|
+
config = loadElizaConfig();
|
|
2013
|
+
}
|
|
2014
|
+
catch (err) {
|
|
2015
|
+
logger.warn(`[eliza-api] Failed to load config, starting with defaults: ${err instanceof Error ? err.message : err}`);
|
|
2016
|
+
config = {};
|
|
2017
|
+
}
|
|
2018
|
+
console.log(`[eliza-api] Config loaded (${Date.now() - apiStartTime}ms)`);
|
|
2019
|
+
// Wallet/inventory routes read from process.env at request-time.
|
|
2020
|
+
// Hydrate persisted config.env values so addresses remain visible after restarts.
|
|
2021
|
+
const persistedEnv = config.env;
|
|
2022
|
+
const envKeysToHydrate = [
|
|
2023
|
+
"ELIZA_WALLET_OS_STORE",
|
|
2024
|
+
"EVM_PRIVATE_KEY",
|
|
2025
|
+
"SOLANA_PRIVATE_KEY",
|
|
2026
|
+
"ALCHEMY_API_KEY",
|
|
2027
|
+
"INFURA_API_KEY",
|
|
2028
|
+
"ANKR_API_KEY",
|
|
2029
|
+
"HELIUS_API_KEY",
|
|
2030
|
+
"BIRDEYE_API_KEY",
|
|
2031
|
+
"SOLANA_RPC_URL",
|
|
2032
|
+
];
|
|
2033
|
+
for (const key of envKeysToHydrate) {
|
|
2034
|
+
const value = persistedEnv?.[key];
|
|
2035
|
+
if (typeof value === "string" && value.trim() && !process.env[key]) {
|
|
2036
|
+
process.env[key] = value.trim();
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
// Optional auto-provision mode for legacy environments. Disabled by default
|
|
2040
|
+
// so startup does not silently create new wallets when keys are missing.
|
|
2041
|
+
const walletAutoProvisionRaw = process.env.ELIZA_WALLET_AUTO_PROVISION?.trim().toLowerCase();
|
|
2042
|
+
const walletAutoProvisionEnabled = walletAutoProvisionRaw === "1" ||
|
|
2043
|
+
walletAutoProvisionRaw === "true" ||
|
|
2044
|
+
walletAutoProvisionRaw === "on" ||
|
|
2045
|
+
walletAutoProvisionRaw === "yes";
|
|
2046
|
+
if (walletAutoProvisionEnabled && ensureWalletKeysInEnvAndConfig(config)) {
|
|
2047
|
+
try {
|
|
2048
|
+
saveElizaConfig(config);
|
|
2049
|
+
}
|
|
2050
|
+
catch (err) {
|
|
2051
|
+
logger.warn(`[eliza-api] Failed to persist generated wallet keys: ${err instanceof Error ? err.message : err}`);
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
// Pre-load steward wallet addresses so getWalletAddresses() has them
|
|
2055
|
+
// available synchronously from the start (cloud-provisioned containers).
|
|
2056
|
+
await initStewardWalletCache();
|
|
2057
|
+
// Warn when wallet private keys live in plaintext config and the OS secure
|
|
2058
|
+
// store is not enabled. This nudges operators toward ELIZA_WALLET_OS_STORE=1.
|
|
2059
|
+
{
|
|
2060
|
+
const hasPlaintextKeys = (typeof persistedEnv?.EVM_PRIVATE_KEY === "string" &&
|
|
2061
|
+
persistedEnv.EVM_PRIVATE_KEY.trim()) ||
|
|
2062
|
+
(typeof persistedEnv?.SOLANA_PRIVATE_KEY === "string" &&
|
|
2063
|
+
persistedEnv.SOLANA_PRIVATE_KEY.trim());
|
|
2064
|
+
const osStoreRaw = process.env.ELIZA_WALLET_OS_STORE?.trim().toLowerCase();
|
|
2065
|
+
const osStoreEnabled = osStoreRaw === "1" ||
|
|
2066
|
+
osStoreRaw === "true" ||
|
|
2067
|
+
osStoreRaw === "on" ||
|
|
2068
|
+
osStoreRaw === "yes";
|
|
2069
|
+
if (hasPlaintextKeys && !osStoreEnabled) {
|
|
2070
|
+
logger.warn("[wallet] Private keys are stored in plaintext config. " +
|
|
2071
|
+
"Set ELIZA_WALLET_OS_STORE=1 to use the OS secure store instead.");
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
const plugins = discoverPluginsFromManifest();
|
|
2075
|
+
console.log(`[eliza-api] Plugins discovered (${Date.now() - apiStartTime}ms)`);
|
|
2076
|
+
const workspaceDir = config.agents?.defaults?.workspace ?? resolveDefaultAgentWorkspaceDir();
|
|
2077
|
+
const hasRuntime = opts?.runtime != null;
|
|
2078
|
+
const initialAgentState = hasRuntime
|
|
2079
|
+
? "running"
|
|
2080
|
+
: (opts?.initialAgentState ?? "not_started");
|
|
2081
|
+
const initialStartup = initialAgentState === "running"
|
|
2082
|
+
? { phase: "running", attempt: 0 }
|
|
2083
|
+
: initialAgentState === "starting"
|
|
2084
|
+
? { phase: "starting", attempt: 0 }
|
|
2085
|
+
: { phase: "idle", attempt: 0 };
|
|
2086
|
+
const agentName = hasRuntime
|
|
2087
|
+
? (opts.runtime?.character.name ?? resolveDefaultAgentName(config))
|
|
2088
|
+
: resolveDefaultAgentName(config);
|
|
2089
|
+
const deletedConversationIds = readDeletedConversationIdsFromState();
|
|
2090
|
+
const state = {
|
|
2091
|
+
runtime: opts?.runtime ?? null,
|
|
2092
|
+
config,
|
|
2093
|
+
agentState: initialAgentState,
|
|
2094
|
+
agentName,
|
|
2095
|
+
model: hasRuntime
|
|
2096
|
+
? detectRuntimeModel(opts.runtime ?? null, config)
|
|
2097
|
+
: undefined,
|
|
2098
|
+
startedAt: hasRuntime || initialAgentState === "starting" ? Date.now() : undefined,
|
|
2099
|
+
startup: initialStartup,
|
|
2100
|
+
plugins,
|
|
2101
|
+
// Filled asynchronously after server start to keep startup latency low.
|
|
2102
|
+
skills: [],
|
|
2103
|
+
logBuffer: [],
|
|
2104
|
+
eventBuffer: [],
|
|
2105
|
+
nextEventId: 1,
|
|
2106
|
+
chatRoomId: null,
|
|
2107
|
+
chatUserId: null,
|
|
2108
|
+
chatConnectionReady: null,
|
|
2109
|
+
chatConnectionPromise: null,
|
|
2110
|
+
adminEntityId: null,
|
|
2111
|
+
conversations: new Map(),
|
|
2112
|
+
conversationRestorePromise: null,
|
|
2113
|
+
deletedConversationIds,
|
|
2114
|
+
cloudManager: null,
|
|
2115
|
+
sandboxManager: null,
|
|
2116
|
+
appManager: new AppManager(),
|
|
2117
|
+
trainingService: null,
|
|
2118
|
+
registryService: null,
|
|
2119
|
+
dropService: null,
|
|
2120
|
+
shareIngestQueue: [],
|
|
2121
|
+
broadcastStatus: null,
|
|
2122
|
+
broadcastWs: null,
|
|
2123
|
+
broadcastWsToClientId: null,
|
|
2124
|
+
activeConversationId: null,
|
|
2125
|
+
permissionStates: {},
|
|
2126
|
+
shellEnabled: config.features?.shellEnabled !== false,
|
|
2127
|
+
agentAutomationMode: resolveAgentAutomationModeFromConfig(config),
|
|
2128
|
+
tradePermissionMode: resolveTradePermissionMode(config),
|
|
2129
|
+
pendingRestartReasons: [],
|
|
2130
|
+
connectorRouteHandlers: [],
|
|
2131
|
+
connectorHealthMonitor: null,
|
|
2132
|
+
whatsappPairingSessions: new Map(),
|
|
2133
|
+
};
|
|
2134
|
+
const trainingServiceCtor = await resolveTrainingServiceCtor();
|
|
2135
|
+
const trainingServiceOptions = {
|
|
2136
|
+
getRuntime: () => state.runtime,
|
|
2137
|
+
getConfig: () => state.config,
|
|
2138
|
+
setConfig: (nextConfig) => {
|
|
2139
|
+
state.config = nextConfig;
|
|
2140
|
+
saveElizaConfig(nextConfig);
|
|
2141
|
+
},
|
|
2142
|
+
};
|
|
2143
|
+
if (trainingServiceCtor) {
|
|
2144
|
+
state.trainingService = new trainingServiceCtor(trainingServiceOptions);
|
|
2145
|
+
}
|
|
2146
|
+
else {
|
|
2147
|
+
logger.info("[eliza-api] Training service package unavailable; training routes will be disabled");
|
|
2148
|
+
}
|
|
2149
|
+
// Register immediately so /api/training routes are available without a startup race.
|
|
2150
|
+
const configuredAdminEntityId = config.agents?.defaults?.adminEntityId;
|
|
2151
|
+
if (configuredAdminEntityId && isUuidLike(configuredAdminEntityId)) {
|
|
2152
|
+
state.adminEntityId = configuredAdminEntityId;
|
|
2153
|
+
state.chatUserId = state.adminEntityId;
|
|
2154
|
+
}
|
|
2155
|
+
else if (configuredAdminEntityId) {
|
|
2156
|
+
logger.warn(`[eliza-api] Ignoring invalid agents.defaults.adminEntityId "${configuredAdminEntityId}"`);
|
|
2157
|
+
}
|
|
2158
|
+
// Wire the app manager to the runtime if already running
|
|
2159
|
+
if (state.runtime) {
|
|
2160
|
+
// AppManager doesn't need a runtime reference — it just installs plugins
|
|
2161
|
+
}
|
|
2162
|
+
// Start the periodic stale-run sweeper that stops app runs whose UI
|
|
2163
|
+
// heartbeat has gone silent (e.g. the user closed the tab without
|
|
2164
|
+
// pressing Stop). Without this, plugins that own a setInterval — like
|
|
2165
|
+
// the Defense-of-the-Agents game loop — would tick forever after the
|
|
2166
|
+
// browser disappeared. The sweeper invokes the same `stopRun` route
|
|
2167
|
+
// hook the Stop button uses so plugins have one shutdown path.
|
|
2168
|
+
state.appManager.startStaleRunSweeper(() => state.runtime);
|
|
2169
|
+
const addLog = (level, message, source = "system", tags = []) => {
|
|
2170
|
+
let resolvedSource = source;
|
|
2171
|
+
if (source === "auto" || source === "system") {
|
|
2172
|
+
const bracketMatch = /^\[([^\]]+)\]\s*/.exec(message);
|
|
2173
|
+
if (bracketMatch)
|
|
2174
|
+
resolvedSource = bracketMatch[1];
|
|
2175
|
+
}
|
|
2176
|
+
// Auto-tag based on source when no explicit tags provided
|
|
2177
|
+
const resolvedTags = tags.length > 0
|
|
2178
|
+
? tags
|
|
2179
|
+
: resolvedSource === "runtime" || resolvedSource === "autonomy"
|
|
2180
|
+
? ["agent"]
|
|
2181
|
+
: resolvedSource === "api" || resolvedSource === "websocket"
|
|
2182
|
+
? ["server"]
|
|
2183
|
+
: resolvedSource === "cloud"
|
|
2184
|
+
? ["server", "cloud"]
|
|
2185
|
+
: ["system"];
|
|
2186
|
+
pushWithBatchEvict(state.logBuffer, {
|
|
2187
|
+
timestamp: Date.now(),
|
|
2188
|
+
level,
|
|
2189
|
+
message,
|
|
2190
|
+
source: resolvedSource,
|
|
2191
|
+
tags: resolvedTags,
|
|
2192
|
+
}, 1200, 200);
|
|
2193
|
+
};
|
|
2194
|
+
// ── Flush early-captured logs into the main buffer ────────────────────
|
|
2195
|
+
const earlyEntries = flushEarlyLogs();
|
|
2196
|
+
if (earlyEntries.length > 0) {
|
|
2197
|
+
for (const entry of earlyEntries) {
|
|
2198
|
+
state.logBuffer.push(entry);
|
|
2199
|
+
}
|
|
2200
|
+
if (state.logBuffer.length > 1000) {
|
|
2201
|
+
state.logBuffer.splice(0, state.logBuffer.length - 1000);
|
|
2202
|
+
}
|
|
2203
|
+
addLog("info", `Flushed ${earlyEntries.length} early startup log entries`, "system", ["system"]);
|
|
2204
|
+
}
|
|
2205
|
+
addLog("info", `Discovered ${plugins.length} plugins, loading skills in background`, "system", ["system", "plugins"]);
|
|
2206
|
+
// Warm per-provider model caches in background (non-blocking)
|
|
2207
|
+
void getOrFetchAllProviders().catch((err) => {
|
|
2208
|
+
logger.warn("[api] Provider cache warm-up failed:", err);
|
|
2209
|
+
});
|
|
2210
|
+
// ── Intercept loggers so ALL agent/plugin/service logs appear in the UI ──
|
|
2211
|
+
// We patch both the global `logger` singleton from @elizaos/core (used by
|
|
2212
|
+
// eliza.ts, services, plugins, etc.) AND the runtime instance logger.
|
|
2213
|
+
// A marker prevents double-patching on hot-restart and avoids stacking
|
|
2214
|
+
// wrapper functions that would leak memory.
|
|
2215
|
+
const PATCHED_MARKER = "__elizaLogPatched";
|
|
2216
|
+
const LEVELS = ["debug", "info", "warn", "error"];
|
|
2217
|
+
/**
|
|
2218
|
+
* Patch a logger object so every log call also feeds into the UI log buffer.
|
|
2219
|
+
* Returns true if patching was performed, false if already patched.
|
|
2220
|
+
*/
|
|
2221
|
+
const patchLogger = (target, defaultSource, defaultTags) => {
|
|
2222
|
+
const patchedTarget = target;
|
|
2223
|
+
if (patchedTarget[PATCHED_MARKER]) {
|
|
2224
|
+
return false;
|
|
2225
|
+
}
|
|
2226
|
+
for (const lvl of LEVELS) {
|
|
2227
|
+
const original = target[lvl].bind(target);
|
|
2228
|
+
// pino / adze signature: logger.info(obj, msg) or logger.info(msg)
|
|
2229
|
+
const patched = (...args) => {
|
|
2230
|
+
let msg = "";
|
|
2231
|
+
let source = defaultSource;
|
|
2232
|
+
let tags = [...defaultTags];
|
|
2233
|
+
if (typeof args[0] === "string") {
|
|
2234
|
+
msg = args[0];
|
|
2235
|
+
}
|
|
2236
|
+
else if (args[0] && typeof args[0] === "object") {
|
|
2237
|
+
const obj = args[0];
|
|
2238
|
+
if (typeof obj.src === "string")
|
|
2239
|
+
source = obj.src;
|
|
2240
|
+
// Extract tags from structured log objects
|
|
2241
|
+
if (Array.isArray(obj.tags)) {
|
|
2242
|
+
tags = [...tags, ...obj.tags];
|
|
2243
|
+
}
|
|
2244
|
+
msg = typeof args[1] === "string" ? args[1] : JSON.stringify(obj);
|
|
2245
|
+
}
|
|
2246
|
+
// Auto-extract source from [bracket] prefixes (e.g. "[eliza] ...")
|
|
2247
|
+
const bracketMatch = /^\[([^\]]+)\]\s*/.exec(msg);
|
|
2248
|
+
if (bracketMatch && source === defaultSource) {
|
|
2249
|
+
source = bracketMatch[1];
|
|
2250
|
+
}
|
|
2251
|
+
// Auto-tag based on source context
|
|
2252
|
+
if (source !== defaultSource && !tags.includes(source)) {
|
|
2253
|
+
tags.push(source);
|
|
2254
|
+
}
|
|
2255
|
+
if (msg)
|
|
2256
|
+
addLog(lvl, msg, source, tags);
|
|
2257
|
+
return original(...args);
|
|
2258
|
+
};
|
|
2259
|
+
target[lvl] = patched;
|
|
2260
|
+
}
|
|
2261
|
+
patchedTarget[PATCHED_MARKER] = true;
|
|
2262
|
+
return true;
|
|
2263
|
+
};
|
|
2264
|
+
// 1) Patch the global @elizaos/core logger — this captures ALL log calls
|
|
2265
|
+
// from eliza.ts, services, plugins, cloud, hooks, etc.
|
|
2266
|
+
if (patchLogger(logger, "agent", ["agent"])) {
|
|
2267
|
+
addLog("info", "Global logger connected — all agent logs will stream to the UI", "system", ["system", "agent"]);
|
|
2268
|
+
}
|
|
2269
|
+
// 2) Patch the runtime instance logger (if it's a different object)
|
|
2270
|
+
// This catches logs from runtime internals that use their own logger child.
|
|
2271
|
+
if (opts?.runtime?.logger && opts.runtime.logger !== logger) {
|
|
2272
|
+
if (patchLogger(opts.runtime.logger, "runtime", ["agent", "runtime"])) {
|
|
2273
|
+
addLog("info", "Runtime logger connected — runtime logs will stream to the UI", "system", ["system", "agent"]);
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
// Store the restart callback on the state so the route handler can access it.
|
|
2277
|
+
const onRestart = opts?.onRestart ?? null;
|
|
2278
|
+
console.log(`[eliza-api] Creating http server (${Date.now() - apiStartTime}ms)`);
|
|
2279
|
+
const server = http.createServer(async (req, res) => {
|
|
2280
|
+
try {
|
|
2281
|
+
await handleRequest(req, res, state, {
|
|
2282
|
+
onRestart,
|
|
2283
|
+
onRuntimeSwapped: () => {
|
|
2284
|
+
bindRuntimeStreams(state.runtime);
|
|
2285
|
+
void wireCoordinatorBridgesWhenReady(state, {
|
|
2286
|
+
wireChatBridge: wireCodingAgentChatBridge,
|
|
2287
|
+
wireWsBridge: wireCodingAgentWsBridge,
|
|
2288
|
+
wireEventRouting: wireCoordinatorEventRouting,
|
|
2289
|
+
wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
|
|
2290
|
+
context: "restart",
|
|
2291
|
+
logger,
|
|
2292
|
+
});
|
|
2293
|
+
},
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
catch (err) {
|
|
2297
|
+
const msg = err instanceof Error ? err.message : "internal error";
|
|
2298
|
+
addLog("error", msg, "api", ["server", "api"]);
|
|
2299
|
+
error(res, msg, 500);
|
|
2300
|
+
}
|
|
2301
|
+
});
|
|
2302
|
+
console.log(`[eliza-api] Server created (${Date.now() - apiStartTime}ms)`);
|
|
2303
|
+
const broadcastWs = (payload) => {
|
|
2304
|
+
const message = JSON.stringify(payload);
|
|
2305
|
+
for (const client of wsClients) {
|
|
2306
|
+
if (client.readyState === 1) {
|
|
2307
|
+
try {
|
|
2308
|
+
client.send(message);
|
|
2309
|
+
}
|
|
2310
|
+
catch (err) {
|
|
2311
|
+
logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2316
|
+
const pushEvent = (event) => {
|
|
2317
|
+
const envelope = {
|
|
2318
|
+
...event,
|
|
2319
|
+
eventId: `evt-${state.nextEventId}`,
|
|
2320
|
+
version: 1,
|
|
2321
|
+
};
|
|
2322
|
+
state.nextEventId += 1;
|
|
2323
|
+
state.eventBuffer.push(envelope);
|
|
2324
|
+
if (state.eventBuffer.length > 1500) {
|
|
2325
|
+
state.eventBuffer.splice(0, state.eventBuffer.length - 1500);
|
|
2326
|
+
}
|
|
2327
|
+
broadcastWs(envelope);
|
|
2328
|
+
};
|
|
2329
|
+
let detachRuntimeStreams = null;
|
|
2330
|
+
let detachTrainingStream = null;
|
|
2331
|
+
const bindRuntimeStreams = (runtime) => {
|
|
2332
|
+
if (detachRuntimeStreams) {
|
|
2333
|
+
detachRuntimeStreams();
|
|
2334
|
+
detachRuntimeStreams = null;
|
|
2335
|
+
}
|
|
2336
|
+
const svc = getAgentEventSvc(runtime);
|
|
2337
|
+
if (!svc) {
|
|
2338
|
+
if (runtime) {
|
|
2339
|
+
logger.warn("[eliza-api] AGENT_EVENT service not found on runtime — event streaming will be unavailable");
|
|
2340
|
+
}
|
|
2341
|
+
return;
|
|
2342
|
+
}
|
|
2343
|
+
const unsubAgentEvents = svc.subscribe((event) => {
|
|
2344
|
+
pushEvent({
|
|
2345
|
+
type: "agent_event",
|
|
2346
|
+
ts: event.ts,
|
|
2347
|
+
runId: event.runId,
|
|
2348
|
+
seq: event.seq,
|
|
2349
|
+
stream: event.stream,
|
|
2350
|
+
sessionKey: event.sessionKey,
|
|
2351
|
+
agentId: event.agentId,
|
|
2352
|
+
roomId: event.roomId,
|
|
2353
|
+
payload: event.data,
|
|
2354
|
+
});
|
|
2355
|
+
void maybeRouteAutonomyEventToConversation(state, event).catch((err) => {
|
|
2356
|
+
logger.warn(`[autonomy-route] Failed to route proactive event: ${err instanceof Error ? err.message : String(err)}`);
|
|
2357
|
+
});
|
|
2358
|
+
});
|
|
2359
|
+
const unsubHeartbeat = svc.subscribeHeartbeat((event) => {
|
|
2360
|
+
pushEvent({
|
|
2361
|
+
type: "heartbeat_event",
|
|
2362
|
+
ts: event.ts,
|
|
2363
|
+
payload: event,
|
|
2364
|
+
});
|
|
2365
|
+
});
|
|
2366
|
+
detachRuntimeStreams = () => {
|
|
2367
|
+
unsubAgentEvents();
|
|
2368
|
+
unsubHeartbeat();
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
const bindTrainingStream = () => {
|
|
2372
|
+
if (detachTrainingStream) {
|
|
2373
|
+
detachTrainingStream();
|
|
2374
|
+
detachTrainingStream = null;
|
|
2375
|
+
}
|
|
2376
|
+
if (!state.trainingService)
|
|
2377
|
+
return;
|
|
2378
|
+
detachTrainingStream = state.trainingService.subscribe((event) => {
|
|
2379
|
+
const payload = typeof event === "object" && event !== null ? event : { value: event };
|
|
2380
|
+
pushEvent({
|
|
2381
|
+
type: "training_event",
|
|
2382
|
+
ts: Date.now(),
|
|
2383
|
+
payload,
|
|
2384
|
+
});
|
|
2385
|
+
});
|
|
2386
|
+
};
|
|
2387
|
+
// ── Deferred startup work (non-blocking) ────────────────────────────────
|
|
2388
|
+
// Keep API startup fast: listen first, then warm optional subsystems.
|
|
2389
|
+
const startDeferredStartupWork = () => {
|
|
2390
|
+
void (async () => {
|
|
2391
|
+
try {
|
|
2392
|
+
const discoveredSkills = await discoverSkills(workspaceDir, state.config, state.runtime);
|
|
2393
|
+
state.skills = discoveredSkills;
|
|
2394
|
+
addLog("info", `Discovered ${discoveredSkills.length} skills`, "system", ["system", "plugins"]);
|
|
2395
|
+
}
|
|
2396
|
+
catch (err) {
|
|
2397
|
+
logger.warn(`[eliza-api] Skill discovery failed during startup: ${err instanceof Error ? err.message : String(err)}`);
|
|
2398
|
+
}
|
|
2399
|
+
})();
|
|
2400
|
+
void (async () => {
|
|
2401
|
+
const trainingService = state.trainingService;
|
|
2402
|
+
if (!trainingService)
|
|
2403
|
+
return;
|
|
2404
|
+
try {
|
|
2405
|
+
await trainingService.initialize();
|
|
2406
|
+
bindTrainingStream();
|
|
2407
|
+
addLog("info", "Training service initialised", "system", [
|
|
2408
|
+
"system",
|
|
2409
|
+
"training",
|
|
2410
|
+
]);
|
|
2411
|
+
}
|
|
2412
|
+
catch (err) {
|
|
2413
|
+
logger.error(`[eliza-api] Training service init failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
2414
|
+
}
|
|
2415
|
+
})();
|
|
2416
|
+
void (async () => {
|
|
2417
|
+
initializeOGCodeInState();
|
|
2418
|
+
// Get EVM private key from runtime secrets (preferred) or config.env (fallback)
|
|
2419
|
+
const runtime = state.runtime;
|
|
2420
|
+
const evmKey = runtime?.getSetting?.("EVM_PRIVATE_KEY") ??
|
|
2421
|
+
state.config.env
|
|
2422
|
+
?.EVM_PRIVATE_KEY;
|
|
2423
|
+
const registryConfig = state.config.registry;
|
|
2424
|
+
if (!evmKey ||
|
|
2425
|
+
!registryConfig?.registryAddress ||
|
|
2426
|
+
!registryConfig.mainnetRpc) {
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
2429
|
+
try {
|
|
2430
|
+
const registryRpcUrl = normalizeJsonRpcUrl(registryConfig.mainnetRpc);
|
|
2431
|
+
const registryRpcProbe = await probeJsonRpcEndpoint(registryRpcUrl);
|
|
2432
|
+
if (!registryRpcProbe.ok) {
|
|
2433
|
+
addLog("warn", `ERC-8004 registry service disabled: RPC unavailable (${registryRpcProbe.reason ?? "unknown error"})`, "system", ["system"]);
|
|
2434
|
+
logger.warn({
|
|
2435
|
+
reason: registryRpcProbe.reason,
|
|
2436
|
+
}, "ERC-8004 registry service disabled because mainnetRpc is unavailable");
|
|
2437
|
+
return;
|
|
2438
|
+
}
|
|
2439
|
+
const txService = new TxService(registryRpcUrl, evmKey);
|
|
2440
|
+
state.registryService = new RegistryService(txService, registryConfig.registryAddress);
|
|
2441
|
+
if (registryConfig.collectionAddress) {
|
|
2442
|
+
const dropEnabled = state.config.features?.dropEnabled === true;
|
|
2443
|
+
state.dropService = new DropService(txService, registryConfig.collectionAddress, dropEnabled);
|
|
2444
|
+
setElizaMakerDropService(state.dropService);
|
|
2445
|
+
}
|
|
2446
|
+
else {
|
|
2447
|
+
state.dropService = null;
|
|
2448
|
+
setElizaMakerDropService(null);
|
|
2449
|
+
}
|
|
2450
|
+
addLog("info", `ERC-8004 registry service initialised (${registryConfig.registryAddress})`, "system", ["system"]);
|
|
2451
|
+
}
|
|
2452
|
+
catch (err) {
|
|
2453
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
2454
|
+
addLog("warn", `ERC-8004 registry service disabled: ${msg}`, "system", [
|
|
2455
|
+
"system",
|
|
2456
|
+
]);
|
|
2457
|
+
logger.warn({ err }, "Failed to initialize ERC-8004 registry service");
|
|
2458
|
+
}
|
|
2459
|
+
})();
|
|
2460
|
+
// ── Connector health monitoring ──────────────────────────────────────────
|
|
2461
|
+
if (state.runtime && state.config.connectors) {
|
|
2462
|
+
state.connectorHealthMonitor = new ConnectorHealthMonitor({
|
|
2463
|
+
runtime: state.runtime,
|
|
2464
|
+
config: state.config,
|
|
2465
|
+
broadcastWs,
|
|
2466
|
+
});
|
|
2467
|
+
state.connectorHealthMonitor.start();
|
|
2468
|
+
}
|
|
2469
|
+
// ── Dynamic streaming + connector route loading ────────────────────────
|
|
2470
|
+
// Always register generic stream routes. If a streaming destination is
|
|
2471
|
+
// configured, inject it so /api/stream/live can fetch credentials.
|
|
2472
|
+
void (async () => {
|
|
2473
|
+
try {
|
|
2474
|
+
const { handleStreamRoute } = await import("./stream-routes.js");
|
|
2475
|
+
// Screen capture manager is injected by the desktop host via globalThis
|
|
2476
|
+
const screenCapture = globalThis
|
|
2477
|
+
.__elizaScreenCapture;
|
|
2478
|
+
// Build destination registry — all configured destinations
|
|
2479
|
+
const _connectors = state.config.connectors ?? {};
|
|
2480
|
+
const streaming = state.config.streaming;
|
|
2481
|
+
const destinations = new Map();
|
|
2482
|
+
// Custom RTMP
|
|
2483
|
+
if (isStreamingDestinationConfigured("customRtmp", streaming?.customRtmp)) {
|
|
2484
|
+
try {
|
|
2485
|
+
const { createCustomRtmpDestination } = await import("../plugins/custom-rtmp/index.js");
|
|
2486
|
+
destinations.set("custom-rtmp", createCustomRtmpDestination(streaming?.customRtmp));
|
|
2487
|
+
}
|
|
2488
|
+
catch (err) {
|
|
2489
|
+
logger.warn(`[eliza-api] Failed to load custom-rtmp destination: ${err instanceof Error ? err.message : String(err)}`);
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
// Twitch
|
|
2493
|
+
if (isStreamingDestinationConfigured("twitch", streaming?.twitch)) {
|
|
2494
|
+
try {
|
|
2495
|
+
const twitchMod = "@elizaos/plugin-twitch-streaming";
|
|
2496
|
+
const { createTwitchDestination } = await import(__rewriteRelativeImportExtension(twitchMod));
|
|
2497
|
+
destinations.set("twitch", createTwitchDestination(streaming?.twitch));
|
|
2498
|
+
}
|
|
2499
|
+
catch (err) {
|
|
2500
|
+
logger.warn(`[eliza-api] Failed to load twitch destination: ${err instanceof Error ? err.message : String(err)}`);
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
// YouTube
|
|
2504
|
+
if (isStreamingDestinationConfigured("youtube", streaming?.youtube)) {
|
|
2505
|
+
try {
|
|
2506
|
+
const youtubeMod = "@elizaos/plugin-youtube-streaming";
|
|
2507
|
+
const { createYoutubeDestination } = await import(__rewriteRelativeImportExtension(youtubeMod));
|
|
2508
|
+
destinations.set("youtube", createYoutubeDestination(streaming?.youtube));
|
|
2509
|
+
}
|
|
2510
|
+
catch (err) {
|
|
2511
|
+
logger.warn(`[eliza-api] Failed to load youtube destination: ${err instanceof Error ? err.message : String(err)}`);
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
// pump.fun
|
|
2515
|
+
if (isStreamingDestinationConfigured("pumpfun", streaming?.pumpfun)) {
|
|
2516
|
+
try {
|
|
2517
|
+
const pumpfunMod = "@elizaos/plugin-pumpfun-streaming";
|
|
2518
|
+
const { createPumpfunDestination } = await import(__rewriteRelativeImportExtension(pumpfunMod));
|
|
2519
|
+
destinations.set("pumpfun", createPumpfunDestination(streaming?.pumpfun));
|
|
2520
|
+
}
|
|
2521
|
+
catch (err) {
|
|
2522
|
+
logger.warn(`[eliza-api] Failed to load pumpfun destination: ${err instanceof Error ? err.message : String(err)}`);
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
// X (Twitter)
|
|
2526
|
+
if (isStreamingDestinationConfigured("x", streaming?.x)) {
|
|
2527
|
+
try {
|
|
2528
|
+
const xMod = "@elizaos/plugin-x-streaming";
|
|
2529
|
+
const { createXStreamDestination } = await import(__rewriteRelativeImportExtension(xMod));
|
|
2530
|
+
destinations.set("x", createXStreamDestination(streaming?.x));
|
|
2531
|
+
}
|
|
2532
|
+
catch (err) {
|
|
2533
|
+
logger.warn(`[eliza-api] Failed to load x destination: ${err instanceof Error ? err.message : String(err)}`);
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
// Active destination: config preference → first available
|
|
2537
|
+
const activeDestinationId = streaming?.activeDestination ??
|
|
2538
|
+
(destinations.size > 0
|
|
2539
|
+
? destinations.keys().next().value
|
|
2540
|
+
: undefined);
|
|
2541
|
+
const streamState = {
|
|
2542
|
+
streamManager,
|
|
2543
|
+
port,
|
|
2544
|
+
screenCapture,
|
|
2545
|
+
captureUrl: undefined,
|
|
2546
|
+
destinations,
|
|
2547
|
+
activeDestinationId,
|
|
2548
|
+
activeStreamSource: { type: "stream-tab" },
|
|
2549
|
+
mirrorStreamAvatarToElizaConfig: (avatarIndex) => {
|
|
2550
|
+
try {
|
|
2551
|
+
if (!Number.isFinite(avatarIndex)) {
|
|
2552
|
+
return;
|
|
2553
|
+
}
|
|
2554
|
+
const diskCfg = loadElizaConfig();
|
|
2555
|
+
const lang = state.config.ui?.language ?? diskCfg.ui?.language;
|
|
2556
|
+
const preset = resolveStylePresetByAvatarIndex(avatarIndex, lang);
|
|
2557
|
+
const nextUi = {
|
|
2558
|
+
...(state.config.ui ?? {}),
|
|
2559
|
+
avatarIndex,
|
|
2560
|
+
...(preset?.id ? { presetId: preset.id } : {}),
|
|
2561
|
+
};
|
|
2562
|
+
state.config = {
|
|
2563
|
+
...state.config,
|
|
2564
|
+
ui: nextUi,
|
|
2565
|
+
};
|
|
2566
|
+
// Merge disk + live server config so we never persist a minimal
|
|
2567
|
+
// snapshot (e.g. ENOENT default) and clobber eliza.json during
|
|
2568
|
+
// onboarding while state.config still holds the full boot payload.
|
|
2569
|
+
const toSave = {
|
|
2570
|
+
...diskCfg,
|
|
2571
|
+
...state.config,
|
|
2572
|
+
ui: {
|
|
2573
|
+
...(diskCfg.ui ?? {}),
|
|
2574
|
+
...(state.config.ui ?? {}),
|
|
2575
|
+
...nextUi,
|
|
2576
|
+
},
|
|
2577
|
+
};
|
|
2578
|
+
saveElizaConfig(toSave);
|
|
2579
|
+
state.config = {
|
|
2580
|
+
...state.config,
|
|
2581
|
+
ui: toSave.ui,
|
|
2582
|
+
};
|
|
2583
|
+
}
|
|
2584
|
+
catch (err) {
|
|
2585
|
+
logger.warn(`[eliza-api] mirrorStreamAvatarToElizaConfig failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
get config() {
|
|
2589
|
+
const cfg = state.config;
|
|
2590
|
+
const msgs = cfg?.messages;
|
|
2591
|
+
return msgs
|
|
2592
|
+
? {
|
|
2593
|
+
messages: {
|
|
2594
|
+
tts: msgs.tts,
|
|
2595
|
+
},
|
|
2596
|
+
}
|
|
2597
|
+
: undefined;
|
|
2598
|
+
},
|
|
2599
|
+
};
|
|
2600
|
+
state.connectorRouteHandlers.push((req, res, pathname, method) => handleStreamRoute(req, res, pathname, method, streamState));
|
|
2601
|
+
const destNames = Array.from(destinations.values())
|
|
2602
|
+
.map((d) => d.name)
|
|
2603
|
+
.join(", ");
|
|
2604
|
+
const destLabel = destinations.size > 0
|
|
2605
|
+
? `destinations: ${destNames}`
|
|
2606
|
+
: "no destinations";
|
|
2607
|
+
addLog("info", `Stream routes registered (${destLabel})`, "system", [
|
|
2608
|
+
"system",
|
|
2609
|
+
"streaming",
|
|
2610
|
+
]);
|
|
2611
|
+
}
|
|
2612
|
+
catch (err) {
|
|
2613
|
+
logger.warn(`[eliza-api] Failed to load stream routes: ${err instanceof Error ? err.message : String(err)}`);
|
|
2614
|
+
}
|
|
2615
|
+
})();
|
|
2616
|
+
};
|
|
2617
|
+
// ── WebSocket Server ─────────────────────────────────────────────────────
|
|
2618
|
+
const wss = new WebSocketServer({ noServer: true, maxPayload: 64 * 1024 });
|
|
2619
|
+
const wsClients = new Set();
|
|
2620
|
+
const wsClientIds = new WeakMap();
|
|
2621
|
+
/** Per-WS-client PTY output subscriptions: sessionId → unsubscribe */
|
|
2622
|
+
const wsClientPtySubscriptions = new WeakMap();
|
|
2623
|
+
bindRuntimeStreams(opts?.runtime ?? null);
|
|
2624
|
+
bindTrainingStream();
|
|
2625
|
+
// Wire coding-agent bridges at initial boot (event-driven via getServiceLoadPromise)
|
|
2626
|
+
if (opts?.runtime) {
|
|
2627
|
+
void wireCoordinatorBridgesWhenReady(state, {
|
|
2628
|
+
wireChatBridge: wireCodingAgentChatBridge,
|
|
2629
|
+
wireWsBridge: wireCodingAgentWsBridge,
|
|
2630
|
+
wireEventRouting: wireCoordinatorEventRouting,
|
|
2631
|
+
wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
|
|
2632
|
+
context: "boot",
|
|
2633
|
+
logger,
|
|
2634
|
+
});
|
|
2635
|
+
}
|
|
2636
|
+
// Handle upgrade requests for WebSocket
|
|
2637
|
+
server.on("upgrade", (request, socket, head) => {
|
|
2638
|
+
try {
|
|
2639
|
+
const wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
|
|
2640
|
+
const rejection = resolveWebSocketUpgradeRejection(request, wsUrl);
|
|
2641
|
+
if (rejection) {
|
|
2642
|
+
rejectWebSocketUpgrade(socket, rejection.status, rejection.reason);
|
|
2643
|
+
return;
|
|
2644
|
+
}
|
|
2645
|
+
wss.handleUpgrade(request, socket, head, (ws) => {
|
|
2646
|
+
wss.emit("connection", ws, request);
|
|
2647
|
+
});
|
|
2648
|
+
}
|
|
2649
|
+
catch (err) {
|
|
2650
|
+
logger.error(`[eliza-api] WebSocket upgrade error: ${err instanceof Error ? err.message : err}`);
|
|
2651
|
+
rejectWebSocketUpgrade(socket, 404, "Not found");
|
|
2652
|
+
}
|
|
2653
|
+
});
|
|
2654
|
+
// Handle WebSocket connections
|
|
2655
|
+
wss.on("connection", (ws, request) => {
|
|
2656
|
+
let wsUrl;
|
|
2657
|
+
try {
|
|
2658
|
+
wsUrl = new URL(request.url ?? "/", `http://${request.headers.host ?? "localhost"}`);
|
|
2659
|
+
const clientId = normalizeWsClientId(wsUrl.searchParams.get("clientId"));
|
|
2660
|
+
if (clientId)
|
|
2661
|
+
wsClientIds.set(ws, clientId);
|
|
2662
|
+
}
|
|
2663
|
+
catch {
|
|
2664
|
+
// Ignore malformed WS URL metadata; auth/path were already validated.
|
|
2665
|
+
wsUrl = new URL("ws://localhost/ws");
|
|
2666
|
+
}
|
|
2667
|
+
let isAuthenticated = isWebSocketAuthorized(request, wsUrl);
|
|
2668
|
+
const activateAuthenticatedConnection = () => {
|
|
2669
|
+
wsClients.add(ws);
|
|
2670
|
+
addLog("info", "WebSocket client connected", "websocket", [
|
|
2671
|
+
"server",
|
|
2672
|
+
"websocket",
|
|
2673
|
+
]);
|
|
2674
|
+
try {
|
|
2675
|
+
ws.send(JSON.stringify({
|
|
2676
|
+
type: "status",
|
|
2677
|
+
state: state.agentState,
|
|
2678
|
+
agentName: state.agentName,
|
|
2679
|
+
model: state.model,
|
|
2680
|
+
startedAt: state.startedAt,
|
|
2681
|
+
startup: state.startup,
|
|
2682
|
+
pendingRestart: state.pendingRestartReasons.length > 0,
|
|
2683
|
+
pendingRestartReasons: state.pendingRestartReasons,
|
|
2684
|
+
}));
|
|
2685
|
+
const replay = state.eventBuffer.slice(-120);
|
|
2686
|
+
for (const event of replay) {
|
|
2687
|
+
ws.send(JSON.stringify(event));
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
catch (err) {
|
|
2691
|
+
logger.error(`[eliza-api] WebSocket send error: ${err instanceof Error ? err.message : err}`);
|
|
2692
|
+
}
|
|
2693
|
+
};
|
|
2694
|
+
if (isAuthenticated) {
|
|
2695
|
+
activateAuthenticatedConnection();
|
|
2696
|
+
}
|
|
2697
|
+
ws.on("message", (data) => {
|
|
2698
|
+
try {
|
|
2699
|
+
const msg = JSON.parse(String(data));
|
|
2700
|
+
if (!isAuthenticated) {
|
|
2701
|
+
const expected = getConfiguredApiToken();
|
|
2702
|
+
if (expected &&
|
|
2703
|
+
msg.type === "auth" &&
|
|
2704
|
+
typeof msg.token === "string" &&
|
|
2705
|
+
tokenMatches(expected, msg.token.trim())) {
|
|
2706
|
+
isAuthenticated = true;
|
|
2707
|
+
ws.send(JSON.stringify({ type: "auth-ok" }));
|
|
2708
|
+
activateAuthenticatedConnection();
|
|
2709
|
+
}
|
|
2710
|
+
else {
|
|
2711
|
+
logger.warn("[eliza-api] WebSocket message rejected before auth");
|
|
2712
|
+
ws.close(1008, "Unauthorized");
|
|
2713
|
+
}
|
|
2714
|
+
return;
|
|
2715
|
+
}
|
|
2716
|
+
if (msg.type === "ping") {
|
|
2717
|
+
ws.send(JSON.stringify({ type: "pong" }));
|
|
2718
|
+
}
|
|
2719
|
+
else if (msg.type === "active-conversation") {
|
|
2720
|
+
state.activeConversationId =
|
|
2721
|
+
typeof msg.conversationId === "string" ? msg.conversationId : null;
|
|
2722
|
+
}
|
|
2723
|
+
else if (msg.type === "pty-subscribe" &&
|
|
2724
|
+
typeof msg.sessionId === "string") {
|
|
2725
|
+
const bridge = getPtyConsoleBridge(state);
|
|
2726
|
+
if (bridge) {
|
|
2727
|
+
let subs = wsClientPtySubscriptions.get(ws);
|
|
2728
|
+
if (!subs) {
|
|
2729
|
+
subs = new Map();
|
|
2730
|
+
wsClientPtySubscriptions.set(ws, subs);
|
|
2731
|
+
}
|
|
2732
|
+
// Don't double-subscribe
|
|
2733
|
+
if (!subs.has(msg.sessionId)) {
|
|
2734
|
+
const targetId = msg.sessionId;
|
|
2735
|
+
const listener = (evt) => {
|
|
2736
|
+
if (evt.sessionId !== targetId)
|
|
2737
|
+
return;
|
|
2738
|
+
if (ws.readyState === 1) {
|
|
2739
|
+
ws.send(JSON.stringify({
|
|
2740
|
+
type: "pty-output",
|
|
2741
|
+
sessionId: targetId,
|
|
2742
|
+
data: evt.data,
|
|
2743
|
+
}));
|
|
2744
|
+
}
|
|
2745
|
+
};
|
|
2746
|
+
bridge.on("session_output", listener);
|
|
2747
|
+
subs.set(targetId, () => bridge.off("session_output", listener));
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
else if (msg.type === "pty-unsubscribe" &&
|
|
2752
|
+
typeof msg.sessionId === "string") {
|
|
2753
|
+
const subs = wsClientPtySubscriptions.get(ws);
|
|
2754
|
+
const unsub = subs?.get(msg.sessionId);
|
|
2755
|
+
if (unsub) {
|
|
2756
|
+
unsub();
|
|
2757
|
+
subs?.delete(msg.sessionId);
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
else if (msg.type === "pty-input" &&
|
|
2761
|
+
typeof msg.sessionId === "string" &&
|
|
2762
|
+
typeof msg.data === "string") {
|
|
2763
|
+
// Only allow input to sessions this client has subscribed to
|
|
2764
|
+
const subs = wsClientPtySubscriptions.get(ws);
|
|
2765
|
+
if (!subs?.has(msg.sessionId)) {
|
|
2766
|
+
logger.warn(`[eliza-api] pty-input rejected: client not subscribed to session ${msg.sessionId}`);
|
|
2767
|
+
}
|
|
2768
|
+
else if (msg.data.length > 4096) {
|
|
2769
|
+
logger.warn(`[eliza-api] pty-input rejected: payload too large (${msg.data.length} bytes) for session ${msg.sessionId}`);
|
|
2770
|
+
}
|
|
2771
|
+
else {
|
|
2772
|
+
const bridge = getPtyConsoleBridge(state);
|
|
2773
|
+
if (bridge) {
|
|
2774
|
+
logger.debug(`[eliza-api] pty-input: session=${msg.sessionId} len=${msg.data.length}`);
|
|
2775
|
+
bridge.writeRaw(msg.sessionId, msg.data);
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
else if (msg.type === "pty-resize" &&
|
|
2780
|
+
typeof msg.sessionId === "string") {
|
|
2781
|
+
// Only allow resize for sessions this client has subscribed to
|
|
2782
|
+
const subs = wsClientPtySubscriptions.get(ws);
|
|
2783
|
+
if (!subs?.has(msg.sessionId)) {
|
|
2784
|
+
logger.warn(`[eliza-api] pty-resize rejected: client not subscribed to session ${msg.sessionId}`);
|
|
2785
|
+
}
|
|
2786
|
+
else {
|
|
2787
|
+
const bridge = getPtyConsoleBridge(state);
|
|
2788
|
+
if (bridge &&
|
|
2789
|
+
typeof msg.cols === "number" &&
|
|
2790
|
+
typeof msg.rows === "number" &&
|
|
2791
|
+
Number.isFinite(msg.cols) &&
|
|
2792
|
+
Number.isFinite(msg.rows) &&
|
|
2793
|
+
Number.isInteger(msg.cols) &&
|
|
2794
|
+
Number.isInteger(msg.rows) &&
|
|
2795
|
+
msg.cols >= 1 &&
|
|
2796
|
+
msg.cols <= 500 &&
|
|
2797
|
+
msg.rows >= 1 &&
|
|
2798
|
+
msg.rows <= 500) {
|
|
2799
|
+
bridge.resize(msg.sessionId, msg.cols, msg.rows);
|
|
2800
|
+
}
|
|
2801
|
+
else {
|
|
2802
|
+
logger.warn(`[eliza-api] pty-resize rejected: invalid dimensions cols=${msg.cols} rows=${msg.rows}`);
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
catch (err) {
|
|
2808
|
+
logger.error(`[eliza-api] WebSocket message error: ${err instanceof Error ? err.message : err}`);
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
ws.on("close", () => {
|
|
2812
|
+
wsClients.delete(ws);
|
|
2813
|
+
// Clean up any PTY output subscriptions for this client
|
|
2814
|
+
const subs = wsClientPtySubscriptions.get(ws);
|
|
2815
|
+
if (subs) {
|
|
2816
|
+
for (const unsub of subs.values())
|
|
2817
|
+
unsub();
|
|
2818
|
+
subs.clear();
|
|
2819
|
+
}
|
|
2820
|
+
addLog("info", "WebSocket client disconnected", "websocket", [
|
|
2821
|
+
"server",
|
|
2822
|
+
"websocket",
|
|
2823
|
+
]);
|
|
2824
|
+
});
|
|
2825
|
+
ws.on("error", (err) => {
|
|
2826
|
+
logger.error(`[eliza-api] WebSocket error: ${err instanceof Error ? err.message : err}`);
|
|
2827
|
+
wsClients.delete(ws);
|
|
2828
|
+
// Clean up PTY subscriptions on error too
|
|
2829
|
+
const subs = wsClientPtySubscriptions.get(ws);
|
|
2830
|
+
if (subs) {
|
|
2831
|
+
for (const unsub of subs.values())
|
|
2832
|
+
unsub();
|
|
2833
|
+
subs.clear();
|
|
2834
|
+
}
|
|
2835
|
+
});
|
|
2836
|
+
});
|
|
2837
|
+
// Broadcast status to all connected WebSocket clients (flattened — PR #36 fix)
|
|
2838
|
+
const broadcastStatus = () => {
|
|
2839
|
+
broadcastWs({
|
|
2840
|
+
type: "status",
|
|
2841
|
+
state: state.agentState,
|
|
2842
|
+
agentName: state.agentName,
|
|
2843
|
+
model: state.model,
|
|
2844
|
+
startedAt: state.startedAt,
|
|
2845
|
+
startup: state.startup,
|
|
2846
|
+
pendingRestart: state.pendingRestartReasons.length > 0,
|
|
2847
|
+
pendingRestartReasons: state.pendingRestartReasons,
|
|
2848
|
+
});
|
|
2849
|
+
};
|
|
2850
|
+
// Make broadcastStatus accessible to route handlers via state
|
|
2851
|
+
state.broadcastStatus = broadcastStatus;
|
|
2852
|
+
// Generic broadcast — sends an arbitrary JSON payload to all WS clients.
|
|
2853
|
+
state.broadcastWs = (data) => {
|
|
2854
|
+
const message = JSON.stringify(data);
|
|
2855
|
+
for (const client of wsClients) {
|
|
2856
|
+
if (client.readyState === 1) {
|
|
2857
|
+
try {
|
|
2858
|
+
client.send(message);
|
|
2859
|
+
}
|
|
2860
|
+
catch (err) {
|
|
2861
|
+
logger.error(`[eliza-api] WebSocket broadcast error: ${err instanceof Error ? err.message : err}`);
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
state.broadcastWsToClientId = (clientId, data) => {
|
|
2867
|
+
const message = JSON.stringify(data);
|
|
2868
|
+
let delivered = 0;
|
|
2869
|
+
for (const client of wsClients) {
|
|
2870
|
+
if (client.readyState !== 1)
|
|
2871
|
+
continue;
|
|
2872
|
+
if (wsClientIds.get(client) !== clientId)
|
|
2873
|
+
continue;
|
|
2874
|
+
try {
|
|
2875
|
+
client.send(message);
|
|
2876
|
+
delivered += 1;
|
|
2877
|
+
}
|
|
2878
|
+
catch (err) {
|
|
2879
|
+
logger.error(`[eliza-api] WebSocket targeted send error: ${err instanceof Error ? err.message : err}`);
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
return delivered;
|
|
2883
|
+
};
|
|
2884
|
+
// Wire up ConnectorSetupService broadcastWs so connector plugins
|
|
2885
|
+
// (Signal, WhatsApp) can broadcast pairing events via the service.
|
|
2886
|
+
if (state.runtime) {
|
|
2887
|
+
try {
|
|
2888
|
+
const setupSvc = state.runtime.getService("connector-setup");
|
|
2889
|
+
setupSvc?.setBroadcastWs?.(state.broadcastWs);
|
|
2890
|
+
}
|
|
2891
|
+
catch {
|
|
2892
|
+
// non-fatal — service may not be registered yet
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
// Broadcast status every 5 seconds
|
|
2896
|
+
const statusInterval = setInterval(broadcastStatus, 5000);
|
|
2897
|
+
/**
|
|
2898
|
+
* Restore the in-memory conversation list from the database.
|
|
2899
|
+
* Web-chat rooms live in a deterministic world; we scan it for rooms
|
|
2900
|
+
* whose channelId starts with "web-conv-" and reconstruct the metadata.
|
|
2901
|
+
*/
|
|
2902
|
+
const restoreConversationsFromDb = async (rt) => {
|
|
2903
|
+
try {
|
|
2904
|
+
const agentName = rt.character.name ?? "Eliza";
|
|
2905
|
+
const worldId = stringToUuid(`${agentName}-web-chat-world`);
|
|
2906
|
+
const rooms = await rt.getRoomsByWorld(worldId);
|
|
2907
|
+
if (!rooms?.length)
|
|
2908
|
+
return;
|
|
2909
|
+
let restored = 0;
|
|
2910
|
+
for (const room of rooms) {
|
|
2911
|
+
// channelId is "web-conv-{uuid}" — extract the conversation id
|
|
2912
|
+
const channelId = typeof room.channelId === "string" ? room.channelId : "";
|
|
2913
|
+
if (!channelId.startsWith("web-conv-"))
|
|
2914
|
+
continue;
|
|
2915
|
+
const convId = channelId.replace("web-conv-", "");
|
|
2916
|
+
if (!convId || state.conversations.has(convId))
|
|
2917
|
+
continue;
|
|
2918
|
+
if (state.deletedConversationIds.has(convId))
|
|
2919
|
+
continue;
|
|
2920
|
+
// Peek at the latest message to get a timestamp
|
|
2921
|
+
let updatedAt = new Date().toISOString();
|
|
2922
|
+
try {
|
|
2923
|
+
const msgs = await rt.getMemories({
|
|
2924
|
+
roomId: room.id,
|
|
2925
|
+
tableName: "messages",
|
|
2926
|
+
limit: 1,
|
|
2927
|
+
});
|
|
2928
|
+
if (msgs.length > 0 && msgs[0].createdAt) {
|
|
2929
|
+
updatedAt = new Date(msgs[0].createdAt).toISOString();
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
catch {
|
|
2933
|
+
// non-fatal — use current time
|
|
2934
|
+
}
|
|
2935
|
+
const conversationMetadata = extractConversationMetadataFromRoom(room, convId);
|
|
2936
|
+
state.conversations.set(convId, {
|
|
2937
|
+
id: convId,
|
|
2938
|
+
title: room.name || "Chat",
|
|
2939
|
+
roomId: room.id,
|
|
2940
|
+
...(conversationMetadata ? { metadata: conversationMetadata } : {}),
|
|
2941
|
+
createdAt: updatedAt,
|
|
2942
|
+
updatedAt,
|
|
2943
|
+
});
|
|
2944
|
+
restored++;
|
|
2945
|
+
}
|
|
2946
|
+
if (restored > 0) {
|
|
2947
|
+
addLog("info", `Restored ${restored} conversation(s) from database`, "system", ["system"]);
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
catch (err) {
|
|
2951
|
+
logger.warn(`[eliza-api] Failed to restore conversations from DB: ${err instanceof Error ? err.message : err}`);
|
|
2952
|
+
}
|
|
2953
|
+
};
|
|
2954
|
+
const beginConversationRestore = (rt) => {
|
|
2955
|
+
const restorePromise = restoreConversationsFromDb(rt).finally(() => {
|
|
2956
|
+
if (state.conversationRestorePromise === restorePromise) {
|
|
2957
|
+
state.conversationRestorePromise = null;
|
|
2958
|
+
}
|
|
2959
|
+
});
|
|
2960
|
+
state.conversationRestorePromise = restorePromise;
|
|
2961
|
+
return restorePromise;
|
|
2962
|
+
};
|
|
2963
|
+
/**
|
|
2964
|
+
* Load the agent's DB-persisted character data and overlay onto the
|
|
2965
|
+
* in-memory runtime.character. This ensures Character Editor edits
|
|
2966
|
+
* survive server restarts without depending on eliza.json persistence.
|
|
2967
|
+
*/
|
|
2968
|
+
const overlayDbCharacter = async (rt, st) => {
|
|
2969
|
+
try {
|
|
2970
|
+
const dbAgent = await rt.getAgent(rt.agentId);
|
|
2971
|
+
const agentRecord = dbAgent && typeof dbAgent === "object" && !Array.isArray(dbAgent)
|
|
2972
|
+
? Object.fromEntries(Object.entries(dbAgent))
|
|
2973
|
+
: null;
|
|
2974
|
+
const saved = agentRecord?.character;
|
|
2975
|
+
if (!saved || typeof saved !== "object")
|
|
2976
|
+
return;
|
|
2977
|
+
const c = rt.character;
|
|
2978
|
+
// Only overlay fields that were explicitly saved (non-empty)
|
|
2979
|
+
if (typeof saved.name === "string" && saved.name)
|
|
2980
|
+
c.name = saved.name;
|
|
2981
|
+
if (Array.isArray(saved.bio) && saved.bio.length > 0) {
|
|
2982
|
+
c.bio = saved.bio;
|
|
2983
|
+
}
|
|
2984
|
+
if (typeof saved.system === "string" && saved.system) {
|
|
2985
|
+
c.system = saved.system;
|
|
2986
|
+
}
|
|
2987
|
+
if (Array.isArray(saved.adjectives)) {
|
|
2988
|
+
c.adjectives = saved.adjectives;
|
|
2989
|
+
}
|
|
2990
|
+
if (Array.isArray(saved.topics)) {
|
|
2991
|
+
c.topics = saved.topics;
|
|
2992
|
+
}
|
|
2993
|
+
if (saved.style && typeof saved.style === "object") {
|
|
2994
|
+
c.style = saved.style;
|
|
2995
|
+
}
|
|
2996
|
+
if (Array.isArray(saved.messageExamples)) {
|
|
2997
|
+
c.messageExamples = saved.messageExamples;
|
|
2998
|
+
}
|
|
2999
|
+
if (Array.isArray(saved.postExamples) && saved.postExamples.length > 0) {
|
|
3000
|
+
c.postExamples = saved.postExamples;
|
|
3001
|
+
}
|
|
3002
|
+
// Update agent name on state
|
|
3003
|
+
st.agentName = c.name ?? st.agentName;
|
|
3004
|
+
logger.info(`[character-db] Overlaid DB-persisted character "${c.name}" onto runtime`);
|
|
3005
|
+
}
|
|
3006
|
+
catch (err) {
|
|
3007
|
+
logger.warn(`[character-db] Failed to load character from DB: ${err instanceof Error ? err.message : err}`);
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
// Restore conversations from DB at initial boot (if runtime was passed in)
|
|
3011
|
+
if (opts?.runtime) {
|
|
3012
|
+
void beginConversationRestore(opts.runtime).catch((err) => {
|
|
3013
|
+
logger.warn("[api] Conversation restore failed:", err);
|
|
3014
|
+
});
|
|
3015
|
+
void overlayDbCharacter(opts.runtime, state).catch((err) => {
|
|
3016
|
+
logger.warn("[api] Character overlay restore failed:", err);
|
|
3017
|
+
});
|
|
3018
|
+
registerClientChatSendHandler(opts.runtime, state);
|
|
3019
|
+
}
|
|
3020
|
+
const assertX402RoutesValid = (rt) => {
|
|
3021
|
+
if (!rt?.routes?.length)
|
|
3022
|
+
return;
|
|
3023
|
+
const agentId = rt.agentId != null && String(rt.agentId).length > 0
|
|
3024
|
+
? String(rt.agentId)
|
|
3025
|
+
: undefined;
|
|
3026
|
+
const result = validateX402Startup(rt.routes, rt.character, {
|
|
3027
|
+
agentId,
|
|
3028
|
+
});
|
|
3029
|
+
if (!result.valid) {
|
|
3030
|
+
throw new Error(`x402 configuration invalid:\n${result.errors.map((e) => ` • ${e}`).join("\n")}`);
|
|
3031
|
+
}
|
|
3032
|
+
for (const w of result.warnings) {
|
|
3033
|
+
logger.warn(`[x402] ${w}`);
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
/** Hot-swap the runtime reference (used after an in-process restart). */
|
|
3037
|
+
const updateRuntime = (rt) => {
|
|
3038
|
+
assertX402RoutesValid(rt);
|
|
3039
|
+
state.runtime = rt;
|
|
3040
|
+
state.chatConnectionReady = null;
|
|
3041
|
+
state.chatConnectionPromise = null;
|
|
3042
|
+
bindRuntimeStreams(rt);
|
|
3043
|
+
// AppManager doesn't need a runtime reference
|
|
3044
|
+
state.agentState = "running";
|
|
3045
|
+
state.agentName =
|
|
3046
|
+
rt.character.name ?? resolveDefaultAgentName(state.config);
|
|
3047
|
+
state.model = detectRuntimeModel(rt, state.config);
|
|
3048
|
+
state.startedAt = Date.now();
|
|
3049
|
+
state.startup = {
|
|
3050
|
+
phase: "running",
|
|
3051
|
+
attempt: 0,
|
|
3052
|
+
};
|
|
3053
|
+
addLog("info", `Runtime restarted — agent: ${state.agentName}`, "system", [
|
|
3054
|
+
"system",
|
|
3055
|
+
"agent",
|
|
3056
|
+
]);
|
|
3057
|
+
// Restore conversations from DB so they survive restarts
|
|
3058
|
+
void beginConversationRestore(rt).catch((err) => {
|
|
3059
|
+
logger.warn("[api] Conversation restore failed on restart:", err);
|
|
3060
|
+
});
|
|
3061
|
+
// Overlay DB-persisted character data (from Character Editor saves)
|
|
3062
|
+
void overlayDbCharacter(rt, state).catch((err) => {
|
|
3063
|
+
logger.warn("[api] Character overlay restore failed on restart:", err);
|
|
3064
|
+
});
|
|
3065
|
+
// Broadcast status update immediately after restart
|
|
3066
|
+
broadcastStatus();
|
|
3067
|
+
// Re-register client_chat send handler on the new runtime
|
|
3068
|
+
registerClientChatSendHandler(rt, state);
|
|
3069
|
+
// Wire coding-agent bridges (event-driven via getServiceLoadPromise)
|
|
3070
|
+
void wireCoordinatorBridgesWhenReady(state, {
|
|
3071
|
+
wireChatBridge: wireCodingAgentChatBridge,
|
|
3072
|
+
wireWsBridge: wireCodingAgentWsBridge,
|
|
3073
|
+
wireEventRouting: wireCoordinatorEventRouting,
|
|
3074
|
+
wireSwarmSynthesis: wireCodingAgentSwarmSynthesis,
|
|
3075
|
+
context: "restart",
|
|
3076
|
+
logger,
|
|
3077
|
+
});
|
|
3078
|
+
};
|
|
3079
|
+
const updateStartup = (update) => {
|
|
3080
|
+
const { state: nextState, ...startupUpdate } = update;
|
|
3081
|
+
state.startup = {
|
|
3082
|
+
...state.startup,
|
|
3083
|
+
...startupUpdate,
|
|
3084
|
+
};
|
|
3085
|
+
if (nextState) {
|
|
3086
|
+
state.agentState = nextState;
|
|
3087
|
+
if (nextState === "error") {
|
|
3088
|
+
state.startedAt = undefined;
|
|
3089
|
+
}
|
|
3090
|
+
else if ((nextState === "starting" || nextState === "running") &&
|
|
3091
|
+
!state.startedAt) {
|
|
3092
|
+
state.startedAt = Date.now();
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
broadcastStatus();
|
|
3096
|
+
};
|
|
3097
|
+
console.log(`[eliza-api] Calling server.listen (${Date.now() - apiStartTime}ms)`);
|
|
3098
|
+
try {
|
|
3099
|
+
assertX402RoutesValid(state.runtime);
|
|
3100
|
+
}
|
|
3101
|
+
catch (err) {
|
|
3102
|
+
return Promise.reject(err);
|
|
3103
|
+
}
|
|
3104
|
+
return new Promise((resolve, reject) => {
|
|
3105
|
+
let currentPort = port;
|
|
3106
|
+
server.on("error", (err) => {
|
|
3107
|
+
if (err.code === "EADDRINUSE") {
|
|
3108
|
+
console.warn(`[eliza-api] Port ${currentPort} is already in use. Checking fallback...`);
|
|
3109
|
+
if (currentPort !== 0) {
|
|
3110
|
+
console.warn(`[eliza-api] Retrying with dynamic port (0)...`);
|
|
3111
|
+
currentPort = 0;
|
|
3112
|
+
server.listen(0, host);
|
|
3113
|
+
return;
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
else {
|
|
3117
|
+
console.error(`[eliza-api] Server error: ${err.message} (code: ${err.code})`);
|
|
3118
|
+
}
|
|
3119
|
+
reject(err);
|
|
3120
|
+
});
|
|
3121
|
+
server.listen(port, host, () => {
|
|
3122
|
+
console.log(`[eliza-api] server.listen callback fired (${Date.now() - apiStartTime}ms)`);
|
|
3123
|
+
const addr = server.address();
|
|
3124
|
+
const actualPort = typeof addr === "object" && addr ? addr.port : currentPort;
|
|
3125
|
+
const displayHost = typeof addr === "object" && addr ? addr.address : host;
|
|
3126
|
+
addLog("info", `API server listening on http://${displayHost}:${actualPort}`, "system", ["server", "system"]);
|
|
3127
|
+
// Log to both stdout (for agent.ts port detection) and the in-memory
|
|
3128
|
+
// logger. agent.ts watches stdout for "Listening on http://host:PORT"
|
|
3129
|
+
// to detect dynamic port reassignment when the default port is in use.
|
|
3130
|
+
console.log(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
|
|
3131
|
+
logger.info(`[eliza-api] Listening on http://${displayHost}:${actualPort}`);
|
|
3132
|
+
if (!opts?.skipDeferredStartupWork) {
|
|
3133
|
+
startDeferredStartupWork();
|
|
3134
|
+
}
|
|
3135
|
+
resolve({
|
|
3136
|
+
port: actualPort,
|
|
3137
|
+
close: async () => await new Promise((r) => {
|
|
3138
|
+
void (async () => {
|
|
3139
|
+
const closeAllConnections = server.closeAllConnections;
|
|
3140
|
+
const closeIdleConnections = server.closeIdleConnections;
|
|
3141
|
+
clearInterval(statusInterval);
|
|
3142
|
+
if (state.connectorHealthMonitor) {
|
|
3143
|
+
state.connectorHealthMonitor.stop();
|
|
3144
|
+
state.connectorHealthMonitor = null;
|
|
3145
|
+
}
|
|
3146
|
+
if (detachRuntimeStreams) {
|
|
3147
|
+
detachRuntimeStreams();
|
|
3148
|
+
detachRuntimeStreams = null;
|
|
3149
|
+
}
|
|
3150
|
+
if (detachTrainingStream) {
|
|
3151
|
+
detachTrainingStream();
|
|
3152
|
+
detachTrainingStream = null;
|
|
3153
|
+
}
|
|
3154
|
+
for (const ws of wsClients) {
|
|
3155
|
+
if (ws.readyState === 1 || ws.readyState === 0) {
|
|
3156
|
+
ws.terminate();
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
wsClients.clear();
|
|
3160
|
+
// Clean up WhatsApp pairing sessions
|
|
3161
|
+
if (state.whatsappPairingSessions) {
|
|
3162
|
+
for (const s of state.whatsappPairingSessions.values()) {
|
|
3163
|
+
try {
|
|
3164
|
+
s.stop();
|
|
3165
|
+
}
|
|
3166
|
+
catch {
|
|
3167
|
+
/* non-fatal */
|
|
3168
|
+
}
|
|
3169
|
+
}
|
|
3170
|
+
state.whatsappPairingSessions.clear();
|
|
3171
|
+
}
|
|
3172
|
+
// Clean up Signal pairing sessions
|
|
3173
|
+
if (state.signalPairingSessions) {
|
|
3174
|
+
for (const s of state.signalPairingSessions.values()) {
|
|
3175
|
+
try {
|
|
3176
|
+
s.stop();
|
|
3177
|
+
}
|
|
3178
|
+
catch {
|
|
3179
|
+
/* non-fatal */
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
state.signalPairingSessions.clear();
|
|
3183
|
+
}
|
|
3184
|
+
if (state.telegramAccountAuthSession) {
|
|
3185
|
+
try {
|
|
3186
|
+
await state.telegramAccountAuthSession.stop();
|
|
3187
|
+
}
|
|
3188
|
+
catch {
|
|
3189
|
+
/* non-fatal */
|
|
3190
|
+
}
|
|
3191
|
+
state.telegramAccountAuthSession = null;
|
|
3192
|
+
}
|
|
3193
|
+
wss.close();
|
|
3194
|
+
const closeTimeout = setTimeout(() => r(), 5_000);
|
|
3195
|
+
const resolved = { done: false };
|
|
3196
|
+
const finalize = () => {
|
|
3197
|
+
if (!resolved.done) {
|
|
3198
|
+
resolved.done = true;
|
|
3199
|
+
clearTimeout(closeTimeout);
|
|
3200
|
+
r();
|
|
3201
|
+
}
|
|
3202
|
+
};
|
|
3203
|
+
if (typeof closeAllConnections === "function") {
|
|
3204
|
+
try {
|
|
3205
|
+
closeAllConnections();
|
|
3206
|
+
}
|
|
3207
|
+
catch {
|
|
3208
|
+
// Bun/Node server internals vary by runtime; non-fatal on shutdown.
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
if (typeof closeIdleConnections === "function") {
|
|
3212
|
+
try {
|
|
3213
|
+
closeIdleConnections();
|
|
3214
|
+
}
|
|
3215
|
+
catch {
|
|
3216
|
+
// Bun/Node server internals vary by runtime; non-fatal on shutdown.
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
server.close(finalize);
|
|
3220
|
+
})();
|
|
3221
|
+
}),
|
|
3222
|
+
updateRuntime,
|
|
3223
|
+
updateStartup,
|
|
3224
|
+
});
|
|
3225
|
+
});
|
|
3226
|
+
});
|
|
3227
|
+
}
|