@elizaos/agent 0.25.8 → 2.0.0-alpha.144
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/LICENSE +1 -1
- package/apps/app-companion/src/actions/emote.d.ts +10 -0
- package/apps/app-companion/src/actions/emote.d.ts.map +1 -0
- package/apps/app-companion/src/actions/emote.js +79 -0
- 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/plugin.d.ts +9 -0
- package/apps/app-companion/src/plugin.d.ts.map +1 -0
- package/apps/app-companion/src/plugin.js +15 -0
- package/apps/app-knowledge/src/routes.d.ts +23 -0
- package/apps/app-knowledge/src/routes.d.ts.map +1 -0
- package/apps/app-knowledge/src/routes.js +956 -0
- package/apps/app-knowledge/src/service-loader.d.ts +51 -0
- package/apps/app-knowledge/src/service-loader.d.ts.map +1 -0
- package/apps/app-knowledge/src/service-loader.js +34 -0
- package/apps/app-lifeops/src/action.d.ts +3 -0
- package/apps/app-lifeops/src/action.d.ts.map +1 -0
- package/apps/app-lifeops/src/action.js +332 -0
- package/apps/app-lifeops/src/actions/calendar.d.ts +19 -0
- package/apps/app-lifeops/src/actions/calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/calendar.js +3143 -0
- package/apps/app-lifeops/src/actions/gmail.d.ts +33 -0
- package/apps/app-lifeops/src/actions/gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/gmail.js +1734 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts +69 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-goal-extractor.js +354 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts +78 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-param-extractor.js +423 -0
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts +9 -0
- package/apps/app-lifeops/src/actions/life-recent-context.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-recent-context.js +84 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts +27 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life-update-extractor.js +195 -0
- package/apps/app-lifeops/src/actions/life.d.ts +9 -0
- package/apps/app-lifeops/src/actions/life.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life.extractor.d.ts +18 -0
- package/apps/app-lifeops/src/actions/life.extractor.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/life.extractor.js +264 -0
- package/apps/app-lifeops/src/actions/life.js +3379 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts +16 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/lifeops-extraction-config.js +25 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts +62 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/lifeops-google-helpers.js +607 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts +3 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.d.ts.map +1 -0
- package/apps/app-lifeops/src/actions/timezone-normalization.js +105 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/app-state.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/app-state.js +32 -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/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 +205 -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 +389 -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 +147 -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 +154 -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 +53 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-calendar.js +268 -0
- package/apps/app-lifeops/src/lifeops/google-connector-gateway.d.ts +19 -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 +65 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts +11 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-fetch.js +85 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts +54 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-gmail.js +471 -0
- package/apps/app-lifeops/src/lifeops/google-managed-client.d.ts +127 -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 +294 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts +61 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-oauth.js +491 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts +13 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/google-scopes.js +96 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts +15 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/owner-profile.js +194 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts +209 -0
- package/apps/app-lifeops/src/lifeops/repository.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/repository.js +3187 -0
- package/apps/app-lifeops/src/lifeops/runtime.d.ts +14 -0
- package/apps/app-lifeops/src/lifeops/runtime.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/runtime.js +120 -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 +111 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts +275 -0
- package/apps/app-lifeops/src/lifeops/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/service.js +9260 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts +31 -0
- package/apps/app-lifeops/src/lifeops/sql.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/sql.js +247 -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/twilio.d.ts +25 -0
- package/apps/app-lifeops/src/lifeops/twilio.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/twilio.js +157 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts +19 -0
- package/apps/app-lifeops/src/lifeops/x-poster.d.ts.map +1 -0
- package/apps/app-lifeops/src/lifeops/x-poster.js +148 -0
- package/apps/app-lifeops/src/plugin.d.ts +19 -0
- package/apps/app-lifeops/src/plugin.d.ts.map +1 -0
- package/apps/app-lifeops/src/plugin.js +79 -0
- package/apps/app-lifeops/src/provider.d.ts +3 -0
- package/apps/app-lifeops/src/provider.d.ts.map +1 -0
- package/apps/app-lifeops/src/provider.js +75 -0
- package/apps/app-lifeops/src/providers/lifeops.d.ts +3 -0
- package/apps/app-lifeops/src/providers/lifeops.d.ts.map +1 -0
- package/apps/app-lifeops/src/providers/lifeops.js +157 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts +16 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.d.ts.map +1 -0
- package/apps/app-lifeops/src/routes/lifeops-browser-packaging.js +305 -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 +1173 -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 +175 -0
- package/apps/app-lifeops/src/selfcontrol/access.d.ts +8 -0
- package/apps/app-lifeops/src/selfcontrol/access.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/access.js +16 -0
- package/apps/app-lifeops/src/selfcontrol/action.d.ts +10 -0
- package/apps/app-lifeops/src/selfcontrol/action.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/action.js +506 -0
- package/apps/app-lifeops/src/selfcontrol/index.d.ts +13 -0
- package/apps/app-lifeops/src/selfcontrol/index.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/index.js +10 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.d.ts +9 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/permissions.js +1 -0
- package/apps/app-lifeops/src/selfcontrol/provider.d.ts +4 -0
- package/apps/app-lifeops/src/selfcontrol/provider.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/provider.js +116 -0
- package/apps/app-lifeops/src/selfcontrol/roles.d.ts +13 -0
- package/apps/app-lifeops/src/selfcontrol/roles.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/roles.js +228 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.d.ts +97 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/selfcontrol.js +949 -0
- package/apps/app-lifeops/src/selfcontrol/service.d.ts +21 -0
- package/apps/app-lifeops/src/selfcontrol/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/selfcontrol/service.js +268 -0
- package/apps/app-lifeops/src/service.d.ts +8 -0
- package/apps/app-lifeops/src/service.d.ts.map +1 -0
- package/apps/app-lifeops/src/service.js +11 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts +28 -0
- package/apps/app-steward/src/api/wallet-capability.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-capability.js +94 -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 +35 -0
- package/apps/app-steward/src/api/wallet-routes.d.ts.map +1 -0
- package/apps/app-steward/src/api/wallet-routes.js +470 -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 +453 -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 +639 -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 +69 -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 +46 -0
- package/apps/app-steward/src/routes/wallet-export-guard.d.ts +51 -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/steward-evm-account.d.ts +58 -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 +302 -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 +99 -0
- package/apps/app-training/src/core/cli.d.ts +11 -0
- package/apps/app-training/src/core/cli.d.ts.map +1 -0
- package/apps/app-training/src/core/cli.js +302 -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 +259 -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 +135 -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/replay-validator.d.ts +96 -0
- package/apps/app-training/src/core/replay-validator.d.ts.map +1 -0
- package/apps/app-training/src/core/replay-validator.js +265 -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/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 +281 -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 +234 -0
- package/apps/app-training/src/services/index.d.ts +3 -0
- package/apps/app-training/src/services/index.d.ts.map +1 -0
- package/apps/app-training/src/services/index.js +1 -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 +38 -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/package.json +489 -34
- package/packages/agent/src/actions/app-control.d.ts +17 -0
- package/packages/agent/src/actions/app-control.d.ts.map +1 -0
- package/packages/agent/src/actions/app-control.js +212 -0
- package/packages/agent/src/actions/calendar.d.ts +19 -0
- package/packages/agent/src/actions/calendar.d.ts.map +1 -0
- package/packages/agent/src/actions/calendar.js +3143 -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 +201 -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/entity-actions.d.ts +4 -0
- package/packages/agent/src/actions/entity-actions.d.ts.map +1 -0
- package/packages/agent/src/actions/entity-actions.js +344 -0
- package/packages/agent/src/actions/gmail.d.ts +33 -0
- package/packages/agent/src/actions/gmail.d.ts.map +1 -0
- package/packages/agent/src/actions/gmail.js +1734 -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 +309 -0
- package/packages/agent/src/actions/inbox-digest.d.ts +2 -0
- package/packages/agent/src/actions/inbox-digest.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-digest.js +1 -0
- package/packages/agent/src/actions/inbox-respond.d.ts +2 -0
- package/packages/agent/src/actions/inbox-respond.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-respond.js +1 -0
- package/packages/agent/src/actions/inbox-triage.d.ts +2 -0
- package/packages/agent/src/actions/inbox-triage.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox-triage.js +1 -0
- package/packages/agent/src/actions/inbox.d.ts +3 -0
- package/packages/agent/src/actions/inbox.d.ts.map +1 -0
- package/packages/agent/src/actions/inbox.js +856 -0
- package/packages/agent/src/actions/index.d.ts +11 -0
- package/packages/agent/src/actions/index.d.ts.map +1 -0
- package/packages/agent/src/actions/index.js +10 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts +69 -0
- package/packages/agent/src/actions/life-goal-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-goal-extractor.js +354 -0
- package/packages/agent/src/actions/life-param-extractor.d.ts +78 -0
- package/packages/agent/src/actions/life-param-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-param-extractor.js +423 -0
- package/packages/agent/src/actions/life-recent-context.d.ts +9 -0
- package/packages/agent/src/actions/life-recent-context.d.ts.map +1 -0
- package/packages/agent/src/actions/life-recent-context.js +84 -0
- package/packages/agent/src/actions/life-update-extractor.d.ts +27 -0
- package/packages/agent/src/actions/life-update-extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life-update-extractor.js +195 -0
- package/packages/agent/src/actions/life.d.ts +9 -0
- package/packages/agent/src/actions/life.d.ts.map +1 -0
- package/packages/agent/src/actions/life.extractor.d.ts +18 -0
- package/packages/agent/src/actions/life.extractor.d.ts.map +1 -0
- package/packages/agent/src/actions/life.extractor.js +264 -0
- package/packages/agent/src/actions/life.js +3379 -0
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts +16 -0
- package/packages/agent/src/actions/lifeops-extraction-config.d.ts.map +1 -0
- package/packages/agent/src/actions/lifeops-extraction-config.js +25 -0
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts +62 -0
- package/packages/agent/src/actions/lifeops-google-helpers.d.ts.map +1 -0
- package/packages/agent/src/actions/lifeops-google-helpers.js +607 -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 +253 -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 +224 -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 +109 -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 +181 -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 +106 -0
- package/packages/agent/src/actions/send-message.d.ts +11 -0
- package/packages/agent/src/actions/send-message.d.ts.map +1 -0
- package/packages/agent/src/actions/send-message.js +243 -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 +82 -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 +141 -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 +112 -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 +453 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts +3 -0
- package/packages/agent/src/actions/timezone-normalization.d.ts.map +1 -0
- package/packages/agent/src/actions/timezone-normalization.js +107 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts +3 -0
- package/packages/agent/src/actions/update-owner-profile.d.ts.map +1 -0
- package/packages/agent/src/actions/update-owner-profile.js +131 -0
- package/packages/agent/src/actions/web-search.d.ts +16 -0
- package/packages/agent/src/actions/web-search.d.ts.map +1 -0
- package/packages/agent/src/actions/web-search.js +196 -0
- package/packages/agent/src/activity-profile/analyzer.d.ts +23 -0
- package/packages/agent/src/activity-profile/analyzer.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/analyzer.js +531 -0
- package/packages/agent/src/activity-profile/proactive-planner.d.ts +49 -0
- package/packages/agent/src/activity-profile/proactive-planner.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/proactive-planner.js +455 -0
- package/packages/agent/src/activity-profile/proactive-worker.d.ts +32 -0
- package/packages/agent/src/activity-profile/proactive-worker.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/proactive-worker.js +523 -0
- package/packages/agent/src/activity-profile/profile-metadata.d.ts +10 -0
- package/packages/agent/src/activity-profile/profile-metadata.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/profile-metadata.js +25 -0
- package/packages/agent/src/activity-profile/service.d.ts +11 -0
- package/packages/agent/src/activity-profile/service.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/service.js +226 -0
- package/packages/agent/src/activity-profile/types.d.ts +89 -0
- package/packages/agent/src/activity-profile/types.d.ts.map +1 -0
- package/packages/agent/src/activity-profile/types.js +29 -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 +24 -0
- package/packages/agent/src/api/apps-routes.d.ts.map +1 -0
- package/packages/agent/src/api/apps-routes.js +477 -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 +776 -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/bsc-trade.d.ts +40 -0
- package/packages/agent/src/api/bsc-trade.d.ts.map +1 -0
- package/packages/agent/src/api/bsc-trade.js +786 -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 +264 -0
- package/packages/agent/src/api/character-routes.d.ts +51 -0
- package/packages/agent/src/api/character-routes.d.ts.map +1 -0
- package/packages/agent/src/api/character-routes.js +367 -0
- package/packages/agent/src/api/chat-augmentation.d.ts +89 -0
- package/packages/agent/src/api/chat-augmentation.d.ts.map +1 -0
- package/packages/agent/src/api/chat-augmentation.js +396 -0
- package/packages/agent/src/api/chat-routes.d.ts +106 -0
- package/packages/agent/src/api/chat-routes.d.ts.map +1 -0
- package/packages/agent/src/api/chat-routes.js +1485 -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 +183 -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 +52 -0
- package/packages/agent/src/api/cloud-routes.d.ts +80 -0
- package/packages/agent/src/api/cloud-routes.d.ts.map +1 -0
- package/packages/agent/src/api/cloud-routes.js +582 -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 +143 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts +23 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-auth-sanitize.js +39 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts +29 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.d.ts.map +1 -0
- package/packages/agent/src/api/coding-agents-preflight-normalize.js +45 -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 +126 -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 +33 -0
- package/packages/agent/src/api/config-routes.d.ts.map +1 -0
- package/packages/agent/src/api/config-routes.js +253 -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 +21 -0
- package/packages/agent/src/api/connector-routes.d.ts.map +1 -0
- package/packages/agent/src/api/connector-routes.js +79 -0
- package/packages/agent/src/api/conversation-routes.d.ts +42 -0
- package/packages/agent/src/api/conversation-routes.d.ts.map +1 -0
- package/packages/agent/src/api/conversation-routes.js +1128 -0
- package/packages/agent/src/api/coordinator-types.d.ts +47 -0
- package/packages/agent/src/api/coordinator-types.d.ts.map +1 -0
- package/packages/agent/src/api/coordinator-types.js +1 -0
- package/packages/agent/src/api/coordinator-wiring.d.ts +46 -0
- package/packages/agent/src/api/coordinator-wiring.d.ts.map +1 -0
- package/packages/agent/src/api/coordinator-wiring.js +108 -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 +41 -0
- package/packages/agent/src/api/database.d.ts +33 -0
- package/packages/agent/src/api/database.d.ts.map +1 -0
- package/packages/agent/src/api/database.js +1020 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts +53 -0
- package/packages/agent/src/api/diagnostics-routes.d.ts.map +1 -0
- package/packages/agent/src/api/diagnostics-routes.js +250 -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-local-routes.d.ts +12 -0
- package/packages/agent/src/api/discord-local-routes.d.ts.map +1 -0
- package/packages/agent/src/api/discord-local-routes.js +145 -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 +282 -0
- package/packages/agent/src/api/drop-routes.d.ts +22 -0
- package/packages/agent/src/api/drop-routes.d.ts.map +1 -0
- package/packages/agent/src/api/drop-routes.js +155 -0
- package/packages/agent/src/api/drop-service.d.ts +26 -0
- package/packages/agent/src/api/drop-service.d.ts.map +1 -0
- package/packages/agent/src/api/drop-service.js +134 -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/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 +148 -0
- package/packages/agent/src/api/imessage-routes.d.ts +55 -0
- package/packages/agent/src/api/imessage-routes.d.ts.map +1 -0
- package/packages/agent/src/api/imessage-routes.js +231 -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 +1547 -0
- package/packages/agent/src/api/index.d.ts +63 -0
- package/packages/agent/src/api/index.d.ts.map +1 -0
- package/packages/agent/src/api/index.js +62 -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/lifeops-browser-packaging.d.ts +16 -0
- package/packages/agent/src/api/lifeops-browser-packaging.d.ts.map +1 -0
- package/packages/agent/src/api/lifeops-browser-packaging.js +305 -0
- package/packages/agent/src/api/lifeops-routes.d.ts +20 -0
- package/packages/agent/src/api/lifeops-routes.d.ts.map +1 -0
- package/packages/agent/src/api/lifeops-routes.js +1173 -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 +420 -0
- package/packages/agent/src/api/merkle-tree.d.ts +90 -0
- package/packages/agent/src/api/merkle-tree.d.ts.map +1 -0
- package/packages/agent/src/api/merkle-tree.js +174 -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 +557 -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/nft-verify.d.ts +16 -0
- package/packages/agent/src/api/nft-verify.d.ts.map +1 -0
- package/packages/agent/src/api/nft-verify.js +81 -0
- package/packages/agent/src/api/og-tracker.d.ts +28 -0
- package/packages/agent/src/api/og-tracker.d.ts.map +1 -0
- package/packages/agent/src/api/og-tracker.js +60 -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 +561 -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 +110 -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 +1015 -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 +1140 -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 +60 -0
- package/packages/agent/src/api/provider-switch-config.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-config.js +718 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts +22 -0
- package/packages/agent/src/api/provider-switch-routes.d.ts.map +1 -0
- package/packages/agent/src/api/provider-switch-routes.js +92 -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 +54 -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 +181 -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 +21 -0
- package/packages/agent/src/api/runtime-plugin-routes.d.ts.map +1 -0
- package/packages/agent/src/api/runtime-plugin-routes.js +132 -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 +52 -0
- package/packages/agent/src/api/server-auth.d.ts.map +1 -0
- package/packages/agent/src/api/server-auth.js +332 -0
- package/packages/agent/src/api/server-helpers.d.ts +95 -0
- package/packages/agent/src/api/server-helpers.d.ts.map +1 -0
- package/packages/agent/src/api/server-helpers.js +708 -0
- package/packages/agent/src/api/server-startup.d.ts +16 -0
- package/packages/agent/src/api/server-startup.d.ts.map +1 -0
- package/packages/agent/src/api/server-startup.js +14 -0
- package/packages/agent/src/api/server-types.d.ts +216 -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 +144 -0
- package/packages/agent/src/api/server.d.ts.map +1 -0
- package/packages/agent/src/api/server.js +5304 -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 +232 -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 +381 -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 +947 -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 +43 -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 +213 -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/telegram-setup-routes.d.ts +27 -0
- package/packages/agent/src/api/telegram-setup-routes.d.ts.map +1 -0
- package/packages/agent/src/api/telegram-setup-routes.js +125 -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 +39 -0
- package/packages/agent/src/api/trade-safety.d.ts.map +1 -0
- package/packages/agent/src/api/trade-safety.js +66 -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 +73 -0
- package/packages/agent/src/api/trigger-routes.d.ts.map +1 -0
- package/packages/agent/src/api/trigger-routes.js +308 -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/twitter-verify.d.ts +25 -0
- package/packages/agent/src/api/twitter-verify.d.ts.map +1 -0
- package/packages/agent/src/api/twitter-verify.js +168 -0
- package/packages/agent/src/api/tx-service.d.ts +51 -0
- package/packages/agent/src/api/tx-service.d.ts.map +1 -0
- package/packages/agent/src/api/tx-service.js +160 -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-bsc-routes.d.ts +67 -0
- package/packages/agent/src/api/wallet-bsc-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-bsc-routes.js +322 -0
- package/packages/agent/src/api/wallet-capability.d.ts +33 -0
- package/packages/agent/src/api/wallet-capability.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-capability.js +124 -0
- package/packages/agent/src/api/wallet-dex-prices.d.ts +43 -0
- package/packages/agent/src/api/wallet-dex-prices.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-dex-prices.js +153 -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 +104 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts +66 -0
- package/packages/agent/src/api/wallet-evm-balance.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-evm-balance.js +667 -0
- package/packages/agent/src/api/wallet-routes.d.ts +55 -0
- package/packages/agent/src/api/wallet-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-routes.js +833 -0
- package/packages/agent/src/api/wallet-rpc.d.ts +78 -0
- package/packages/agent/src/api/wallet-rpc.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-rpc.js +476 -0
- package/packages/agent/src/api/wallet-trade-routes.d.ts +110 -0
- package/packages/agent/src/api/wallet-trade-routes.d.ts.map +1 -0
- package/packages/agent/src/api/wallet-trade-routes.js +353 -0
- package/packages/agent/src/api/wallet-trading-profile.d.ts +56 -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 +674 -0
- package/packages/agent/src/api/website-blocker-routes.d.ts +7 -0
- package/packages/agent/src/api/website-blocker-routes.d.ts.map +1 -0
- package/packages/agent/src/api/website-blocker-routes.js +174 -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 +226 -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 +133 -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 +405 -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/anthropic.d.ts +29 -0
- package/packages/agent/src/auth/anthropic.d.ts.map +1 -0
- package/packages/agent/src/auth/anthropic.js +43 -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 +74 -0
- package/packages/agent/src/auth/credentials.d.ts.map +1 -0
- package/packages/agent/src/auth/credentials.js +379 -0
- package/packages/agent/src/auth/index.d.ts +6 -0
- package/packages/agent/src/auth/index.d.ts.map +1 -0
- package/packages/agent/src/auth/index.js +5 -0
- package/packages/agent/src/auth/openai-codex.d.ts +32 -0
- package/packages/agent/src/auth/openai-codex.d.ts.map +1 -0
- package/packages/agent/src/auth/openai-codex.js +81 -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 +16 -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 +78 -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/autonomy/index.d.ts +48 -0
- package/packages/agent/src/autonomy/index.d.ts.map +1 -0
- package/packages/agent/src/autonomy/index.js +330 -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/bin.d.ts +3 -0
- package/packages/agent/src/bin.d.ts.map +1 -0
- package/packages/agent/src/bin.js +6 -0
- package/packages/agent/src/cli/benchmark.d.ts +10 -0
- package/packages/agent/src/cli/benchmark.d.ts.map +1 -0
- package/packages/agent/src/cli/benchmark.js +293 -0
- package/packages/agent/src/cli/index.d.ts +2 -0
- package/packages/agent/src/cli/index.d.ts.map +1 -0
- package/packages/agent/src/cli/index.js +70 -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 +52 -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 +32 -0
- package/packages/agent/src/cloud/cloud-manager.d.ts.map +1 -0
- package/packages/agent/src/cloud/cloud-manager.js +121 -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 +94 -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 +7 -0
- package/packages/agent/src/cloud/index.d.ts.map +1 -0
- package/packages/agent/src/cloud/index.js +6 -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 +277 -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 +282 -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 +19 -0
- package/packages/agent/src/config/index.d.ts.map +1 -0
- package/packages/agent/src/config/index.js +18 -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 +13 -0
- package/packages/agent/src/config/paths.d.ts.map +1 -0
- package/packages/agent/src/config/paths.js +106 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts +36 -0
- package/packages/agent/src/config/plugin-auto-enable.d.ts.map +1 -0
- package/packages/agent/src/config/plugin-auto-enable.js +519 -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 +70 -0
- package/packages/agent/src/config/runtime-env.d.ts +2 -0
- package/packages/agent/src/config/runtime-env.d.ts.map +1 -0
- package/packages/agent/src/config/runtime-env.js +1 -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 +362 -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 +670 -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 +694 -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 +148 -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/drop.d.ts +2 -0
- package/packages/agent/src/contracts/drop.d.ts.map +1 -0
- package/packages/agent/src/contracts/drop.js +1 -0
- package/packages/agent/src/contracts/index.d.ts +11 -0
- package/packages/agent/src/contracts/index.d.ts.map +1 -0
- package/packages/agent/src/contracts/index.js +10 -0
- package/packages/agent/src/contracts/lifeops.d.ts +2 -0
- package/packages/agent/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/agent/src/contracts/lifeops.js +1 -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/permissions.d.ts +2 -0
- package/packages/agent/src/contracts/permissions.d.ts.map +1 -0
- package/packages/agent/src/contracts/permissions.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/verification.d.ts +2 -0
- package/packages/agent/src/contracts/verification.d.ts.map +1 -0
- package/packages/agent/src/contracts/verification.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/index.d.ts +2 -0
- package/packages/agent/src/diagnostics/index.d.ts.map +1 -0
- package/packages/agent/src/diagnostics/index.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 +75 -0
- package/packages/agent/src/evals/coordinator-eval-client.d.ts +39 -0
- package/packages/agent/src/evals/coordinator-eval-client.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-eval-client.js +138 -0
- package/packages/agent/src/evals/coordinator-live-runner.d.ts +57 -0
- package/packages/agent/src/evals/coordinator-live-runner.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-live-runner.js +546 -0
- package/packages/agent/src/evals/coordinator-preflight.d.ts +32 -0
- package/packages/agent/src/evals/coordinator-preflight.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-preflight.js +296 -0
- package/packages/agent/src/evals/coordinator-scenarios.d.ts +24 -0
- package/packages/agent/src/evals/coordinator-scenarios.d.ts.map +1 -0
- package/packages/agent/src/evals/coordinator-scenarios.js +1141 -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/inbox/channel-deep-links.d.ts +20 -0
- package/packages/agent/src/inbox/channel-deep-links.d.ts.map +1 -0
- package/packages/agent/src/inbox/channel-deep-links.js +185 -0
- package/packages/agent/src/inbox/config.d.ts +7 -0
- package/packages/agent/src/inbox/config.d.ts.map +1 -0
- package/packages/agent/src/inbox/config.js +59 -0
- package/packages/agent/src/inbox/message-fetcher.d.ts +33 -0
- package/packages/agent/src/inbox/message-fetcher.d.ts.map +1 -0
- package/packages/agent/src/inbox/message-fetcher.js +252 -0
- package/packages/agent/src/inbox/reflection.d.ts +45 -0
- package/packages/agent/src/inbox/reflection.d.ts.map +1 -0
- package/packages/agent/src/inbox/reflection.js +157 -0
- package/packages/agent/src/inbox/repository.d.ts +53 -0
- package/packages/agent/src/inbox/repository.d.ts.map +1 -0
- package/packages/agent/src/inbox/repository.js +362 -0
- package/packages/agent/src/inbox/triage-classifier.d.ts +17 -0
- package/packages/agent/src/inbox/triage-classifier.d.ts.map +1 -0
- package/packages/agent/src/inbox/triage-classifier.js +209 -0
- package/packages/agent/src/inbox/types.d.ts +130 -0
- package/packages/agent/src/inbox/types.d.ts.map +1 -0
- package/packages/agent/src/inbox/types.js +1 -0
- package/packages/agent/src/index.d.ts +22 -0
- package/packages/agent/src/index.d.ts.map +1 -0
- package/packages/agent/src/index.js +20 -0
- package/packages/agent/src/lifeops/app-state.d.ts +11 -0
- package/packages/agent/src/lifeops/app-state.d.ts.map +1 -0
- package/packages/agent/src/lifeops/app-state.js +32 -0
- package/packages/agent/src/lifeops/apple-reminders.d.ts +58 -0
- package/packages/agent/src/lifeops/apple-reminders.d.ts.map +1 -0
- package/packages/agent/src/lifeops/apple-reminders.js +325 -0
- package/packages/agent/src/lifeops/defaults.d.ts +24 -0
- package/packages/agent/src/lifeops/defaults.d.ts.map +1 -0
- package/packages/agent/src/lifeops/defaults.js +205 -0
- package/packages/agent/src/lifeops/engine.d.ts +8 -0
- package/packages/agent/src/lifeops/engine.d.ts.map +1 -0
- package/packages/agent/src/lifeops/engine.js +389 -0
- package/packages/agent/src/lifeops/goal-grounding.d.ts +54 -0
- package/packages/agent/src/lifeops/goal-grounding.d.ts.map +1 -0
- package/packages/agent/src/lifeops/goal-grounding.js +147 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts +12 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.d.ts.map +1 -0
- package/packages/agent/src/lifeops/goal-semantic-evaluator.js +154 -0
- package/packages/agent/src/lifeops/google-api-error.d.ts +7 -0
- package/packages/agent/src/lifeops/google-api-error.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-api-error.js +35 -0
- package/packages/agent/src/lifeops/google-calendar.d.ts +53 -0
- package/packages/agent/src/lifeops/google-calendar.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-calendar.js +268 -0
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts +19 -0
- package/packages/agent/src/lifeops/google-connector-gateway.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-connector-gateway.js +65 -0
- package/packages/agent/src/lifeops/google-fetch.d.ts +11 -0
- package/packages/agent/src/lifeops/google-fetch.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-fetch.js +85 -0
- package/packages/agent/src/lifeops/google-gmail.d.ts +54 -0
- package/packages/agent/src/lifeops/google-gmail.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-gmail.js +471 -0
- package/packages/agent/src/lifeops/google-managed-client.d.ts +127 -0
- package/packages/agent/src/lifeops/google-managed-client.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-managed-client.js +294 -0
- package/packages/agent/src/lifeops/google-oauth.d.ts +61 -0
- package/packages/agent/src/lifeops/google-oauth.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-oauth.js +494 -0
- package/packages/agent/src/lifeops/google-scopes.d.ts +13 -0
- package/packages/agent/src/lifeops/google-scopes.d.ts.map +1 -0
- package/packages/agent/src/lifeops/google-scopes.js +96 -0
- package/packages/agent/src/lifeops/index.d.ts +3 -0
- package/packages/agent/src/lifeops/index.d.ts.map +1 -0
- package/packages/agent/src/lifeops/index.js +2 -0
- package/packages/agent/src/lifeops/owner-profile.d.ts +15 -0
- package/packages/agent/src/lifeops/owner-profile.d.ts.map +1 -0
- package/packages/agent/src/lifeops/owner-profile.js +194 -0
- package/packages/agent/src/lifeops/repository.d.ts +209 -0
- package/packages/agent/src/lifeops/repository.d.ts.map +1 -0
- package/packages/agent/src/lifeops/repository.js +3187 -0
- package/packages/agent/src/lifeops/runtime.d.ts +14 -0
- package/packages/agent/src/lifeops/runtime.d.ts.map +1 -0
- package/packages/agent/src/lifeops/runtime.js +120 -0
- package/packages/agent/src/lifeops/screen-context.d.ts +52 -0
- package/packages/agent/src/lifeops/screen-context.d.ts.map +1 -0
- package/packages/agent/src/lifeops/screen-context.js +332 -0
- package/packages/agent/src/lifeops/seed-routines.d.ts +20 -0
- package/packages/agent/src/lifeops/seed-routines.d.ts.map +1 -0
- package/packages/agent/src/lifeops/seed-routines.js +111 -0
- package/packages/agent/src/lifeops/service.d.ts +275 -0
- package/packages/agent/src/lifeops/service.d.ts.map +1 -0
- package/packages/agent/src/lifeops/service.js +9260 -0
- package/packages/agent/src/lifeops/sql.d.ts +31 -0
- package/packages/agent/src/lifeops/sql.d.ts.map +1 -0
- package/packages/agent/src/lifeops/sql.js +247 -0
- package/packages/agent/src/lifeops/time.d.ts +17 -0
- package/packages/agent/src/lifeops/time.d.ts.map +1 -0
- package/packages/agent/src/lifeops/time.js +132 -0
- package/packages/agent/src/lifeops/twilio.d.ts +25 -0
- package/packages/agent/src/lifeops/twilio.d.ts.map +1 -0
- package/packages/agent/src/lifeops/twilio.js +157 -0
- package/packages/agent/src/lifeops/x-poster.d.ts +19 -0
- package/packages/agent/src/lifeops/x-poster.d.ts.map +1 -0
- package/packages/agent/src/lifeops/x-poster.js +148 -0
- package/packages/agent/src/onboarding-presets.d.ts +2 -0
- package/packages/agent/src/onboarding-presets.d.ts.map +1 -0
- package/packages/agent/src/onboarding-presets.js +1 -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/plugins/discord-voice-capability.d.ts +35 -0
- package/packages/agent/src/plugins/discord-voice-capability.d.ts.map +1 -0
- package/packages/agent/src/plugins/discord-voice-capability.js +97 -0
- package/packages/agent/src/providers/activity-profile.d.ts +3 -0
- package/packages/agent/src/providers/activity-profile.d.ts.map +1 -0
- package/packages/agent/src/providers/activity-profile.js +140 -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/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 +79 -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/inbox-triage.d.ts +3 -0
- package/packages/agent/src/providers/inbox-triage.d.ts.map +1 -0
- package/packages/agent/src/providers/inbox-triage.js +89 -0
- package/packages/agent/src/providers/index.d.ts +15 -0
- package/packages/agent/src/providers/index.d.ts.map +1 -0
- package/packages/agent/src/providers/index.js +14 -0
- package/packages/agent/src/providers/lifeops.d.ts +3 -0
- package/packages/agent/src/providers/lifeops.d.ts.map +1 -0
- package/packages/agent/src/providers/lifeops.js +157 -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 +87 -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 +88 -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 +77 -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 +336 -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 +22 -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 +54 -0
- package/packages/agent/src/providers/workspace.d.ts.map +1 -0
- package/packages/agent/src/providers/workspace.js +481 -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 +19 -0
- package/packages/agent/src/runtime/core-plugins.d.ts.map +1 -0
- package/packages/agent/src/runtime/core-plugins.js +62 -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 +884 -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 +218 -0
- package/packages/agent/src/runtime/eliza.d.ts +181 -0
- package/packages/agent/src/runtime/eliza.d.ts.map +1 -0
- package/packages/agent/src/runtime/eliza.js +3286 -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 +25 -0
- package/packages/agent/src/runtime/first-time-setup.d.ts.map +1 -0
- package/packages/agent/src/runtime/first-time-setup.js +697 -0
- package/packages/agent/src/runtime/index.d.ts +13 -0
- package/packages/agent/src/runtime/index.d.ts.map +1 -0
- package/packages/agent/src/runtime/index.js +12 -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 +74 -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 +38 -0
- package/packages/agent/src/runtime/plugin-collector.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-collector.js +397 -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 +584 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts +31 -0
- package/packages/agent/src/runtime/plugin-resolver.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-resolver.js +828 -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 +232 -0
- package/packages/agent/src/runtime/plugin-types.d.ts +71 -0
- package/packages/agent/src/runtime/plugin-types.d.ts.map +1 -0
- package/packages/agent/src/runtime/plugin-types.js +318 -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 +11 -0
- package/packages/agent/src/runtime/prompt-optimization.d.ts.map +1 -0
- package/packages/agent/src/runtime/prompt-optimization.js +421 -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 +45 -0
- package/packages/agent/src/runtime/restart.d.ts.map +1 -0
- package/packages/agent/src/runtime/restart.js +45 -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 +676 -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 +299 -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-export.d.ts +8 -0
- package/packages/agent/src/runtime/trajectory-export.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-export.js +7 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts +217 -0
- package/packages/agent/src/runtime/trajectory-internals.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-internals.js +1298 -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 +65 -0
- package/packages/agent/src/runtime/trajectory-storage.d.ts.map +1 -0
- package/packages/agent/src/runtime/trajectory-storage.js +1026 -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 +149 -0
- package/packages/agent/src/security/audit-log.d.ts +49 -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 +3 -0
- package/packages/agent/src/security/index.d.ts.map +1 -0
- package/packages/agent/src/security/index.js +2 -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/server/index.d.ts +3 -0
- package/packages/agent/src/server/index.d.ts.map +1 -0
- package/packages/agent/src/server/index.js +1 -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 +56 -0
- package/packages/agent/src/services/app-manager.d.ts.map +1 -0
- package/packages/agent/src/services/app-manager.js +2019 -0
- package/packages/agent/src/services/app-package-modules.d.ts +30 -0
- package/packages/agent/src/services/app-package-modules.d.ts.map +1 -0
- package/packages/agent/src/services/app-package-modules.js +348 -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.d.ts +179 -0
- package/packages/agent/src/services/browser-workspace.d.ts.map +1 -0
- package/packages/agent/src/services/browser-workspace.js +4589 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.d.ts +28 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.d.ts.map +1 -0
- package/packages/agent/src/services/built-in-app-routes/2004scape.js +1343 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts +5 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.d.ts.map +1 -0
- package/packages/agent/src/services/built-in-app-routes/hyperscape.js +189 -0
- package/packages/agent/src/services/character-persistence.d.ts +39 -0
- package/packages/agent/src/services/character-persistence.d.ts.map +1 -0
- package/packages/agent/src/services/character-persistence.js +159 -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 +20 -0
- package/packages/agent/src/services/coding-task-executor.d.ts.map +1 -0
- package/packages/agent/src/services/coding-task-executor.js +141 -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/credential-words.d.ts +26 -0
- package/packages/agent/src/services/credential-words.d.ts.map +1 -0
- package/packages/agent/src/services/credential-words.js +116 -0
- package/packages/agent/src/services/escalation.d.ts +46 -0
- package/packages/agent/src/services/escalation.d.ts.map +1 -0
- package/packages/agent/src/services/escalation.js +415 -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/index.d.ts +25 -0
- package/packages/agent/src/services/index.d.ts.map +1 -0
- package/packages/agent/src/services/index.js +24 -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/plugin-manager-types.d.ts +113 -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/privy-wallets.d.ts +23 -0
- package/packages/agent/src/services/privy-wallets.d.ts.map +1 -0
- package/packages/agent/src/services/privy-wallets.js +230 -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 +225 -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 +545 -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 +119 -0
- package/packages/agent/src/services/registry-client-queries.d.ts +15 -0
- package/packages/agent/src/services/registry-client-queries.d.ts.map +1 -0
- package/packages/agent/src/services/registry-client-queries.js +172 -0
- package/packages/agent/src/services/registry-client-types.d.ts +125 -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 +134 -0
- package/packages/agent/src/services/relationships-graph.d.ts.map +1 -0
- package/packages/agent/src/services/relationships-graph.js +1332 -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 +136 -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 +57 -0
- package/packages/agent/src/services/signal-pairing.d.ts.map +1 -0
- package/packages/agent/src/services/signal-pairing.js +393 -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 +689 -0
- package/packages/agent/src/services/steward-evm-account.d.ts +62 -0
- package/packages/agent/src/services/steward-evm-account.d.ts.map +1 -0
- package/packages/agent/src/services/steward-evm-account.js +308 -0
- package/packages/agent/src/services/steward-evm-bridge.d.ts +39 -0
- package/packages/agent/src/services/steward-evm-bridge.d.ts.map +1 -0
- package/packages/agent/src/services/steward-evm-bridge.js +103 -0
- package/packages/agent/src/services/steward-wallet.d.ts +30 -0
- package/packages/agent/src/services/steward-wallet.d.ts.map +1 -0
- package/packages/agent/src/services/steward-wallet.js +334 -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/index.d.ts +2 -0
- package/packages/agent/src/shared/index.d.ts.map +1 -0
- package/packages/agent/src/shared/index.js +1 -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 +17 -0
- package/packages/agent/src/test-utils/sqlite-compat.d.ts.map +1 -0
- package/packages/agent/src/test-utils/sqlite-compat.js +48 -0
- package/packages/agent/src/testing/index.d.ts +4 -0
- package/packages/agent/src/testing/index.d.ts.map +1 -0
- package/packages/agent/src/testing/index.js +3 -0
- package/packages/agent/src/training/cli.d.ts +2 -0
- package/packages/agent/src/training/cli.d.ts.map +1 -0
- package/packages/agent/src/training/cli.js +2 -0
- package/packages/agent/src/training/context-audit.d.ts +2 -0
- package/packages/agent/src/training/context-audit.d.ts.map +1 -0
- package/packages/agent/src/training/context-audit.js +2 -0
- package/packages/agent/src/training/context-catalog.d.ts +2 -0
- package/packages/agent/src/training/context-catalog.d.ts.map +1 -0
- package/packages/agent/src/training/context-catalog.js +2 -0
- package/packages/agent/src/training/context-types.d.ts +2 -0
- package/packages/agent/src/training/context-types.d.ts.map +1 -0
- package/packages/agent/src/training/context-types.js +2 -0
- package/packages/agent/src/training/dataset-generator.d.ts +2 -0
- package/packages/agent/src/training/dataset-generator.d.ts.map +1 -0
- package/packages/agent/src/training/dataset-generator.js +2 -0
- package/packages/agent/src/training/replay-validator.d.ts +2 -0
- package/packages/agent/src/training/replay-validator.d.ts.map +1 -0
- package/packages/agent/src/training/replay-validator.js +2 -0
- package/packages/agent/src/training/roleplay-executor.d.ts +2 -0
- package/packages/agent/src/training/roleplay-executor.d.ts.map +1 -0
- package/packages/agent/src/training/roleplay-executor.js +2 -0
- package/packages/agent/src/training/roleplay-trajectories.d.ts +2 -0
- package/packages/agent/src/training/roleplay-trajectories.d.ts.map +1 -0
- package/packages/agent/src/training/roleplay-trajectories.js +2 -0
- package/packages/agent/src/training/scenario-blueprints.d.ts +2 -0
- package/packages/agent/src/training/scenario-blueprints.d.ts.map +1 -0
- package/packages/agent/src/training/scenario-blueprints.js +2 -0
- package/packages/agent/src/training/trajectory-task-datasets.d.ts +2 -0
- package/packages/agent/src/training/trajectory-task-datasets.d.ts.map +1 -0
- package/packages/agent/src/training/trajectory-task-datasets.js +2 -0
- package/packages/agent/src/training/vertex-tuning.d.ts +2 -0
- package/packages/agent/src/training/vertex-tuning.d.ts.map +1 -0
- package/packages/agent/src/training/vertex-tuning.js +2 -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 +316 -0
- package/packages/agent/src/triggers/index.d.ts +5 -0
- package/packages/agent/src/triggers/index.d.ts.map +1 -0
- package/packages/agent/src/triggers/index.js +4 -0
- package/packages/agent/src/triggers/runtime.d.ts +25 -0
- package/packages/agent/src/triggers/runtime.d.ts.map +1 -0
- package/packages/agent/src/triggers/runtime.js +456 -0
- package/packages/agent/src/triggers/scheduling.d.ts +71 -0
- package/packages/agent/src/triggers/scheduling.d.ts.map +1 -0
- package/packages/agent/src/triggers/scheduling.js +355 -0
- package/packages/agent/src/triggers/types.d.ts +115 -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/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/trajectory.d.ts +106 -0
- package/packages/agent/src/types/trajectory.d.ts.map +1 -0
- package/packages/agent/src/types/trajectory.js +7 -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/index.d.ts +3 -0
- package/packages/agent/src/utils/index.d.ts.map +1 -0
- package/packages/agent/src/utils/index.js +2 -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 +52 -0
- package/packages/agent/src/utils/spoken-text.d.ts +2 -0
- package/packages/agent/src/utils/spoken-text.d.ts.map +1 -0
- package/packages/agent/src/utils/spoken-text.js +1 -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/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 +16 -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 +99 -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 +18 -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 +469 -0
- package/packages/app-core/src/config/boot-config-store.d.ts +117 -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 +135 -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/config/config.d.ts +12 -0
- package/packages/app-core/src/config/config.d.ts.map +1 -0
- package/packages/app-core/src/config/config.js +23 -0
- package/packages/app-core/src/navigation/index.d.ts +52 -0
- package/packages/app-core/src/navigation/index.d.ts.map +1 -0
- package/packages/app-core/src/navigation/index.js +354 -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/types/index.d.ts +649 -0
- package/packages/app-core/src/types/index.d.ts.map +1 -0
- package/packages/app-core/src/types/index.js +1 -0
- package/packages/app-core/src/types/lifeops-ui.d.ts +10 -0
- package/packages/app-core/src/types/lifeops-ui.d.ts.map +1 -0
- package/packages/app-core/src/types/lifeops-ui.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/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 +68 -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 +91 -0
- package/packages/shared/src/contracts/apps.d.ts +204 -0
- package/packages/shared/src/contracts/apps.d.ts.map +1 -0
- package/packages/shared/src/contracts/apps.js +188 -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 +73 -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/index.d.ts +13 -0
- package/packages/shared/src/contracts/index.d.ts.map +1 -0
- package/packages/shared/src/contracts/index.js +12 -0
- package/packages/shared/src/contracts/lifeops.d.ts +1337 -0
- package/packages/shared/src/contracts/lifeops.d.ts.map +1 -0
- package/packages/shared/src/contracts/lifeops.js +278 -0
- package/packages/shared/src/contracts/onboarding.d.ts +443 -0
- package/packages/shared/src/contracts/onboarding.d.ts.map +1 -0
- package/packages/shared/src/contracts/onboarding.js +1020 -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/service-routing.d.ts +77 -0
- package/packages/shared/src/contracts/service-routing.d.ts.map +1 -0
- package/packages/shared/src/contracts/service-routing.js +227 -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 +626 -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/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 +16 -0
- package/packages/shared/src/env-utils.js +4 -0
- package/packages/shared/src/i18n/generated/validation-keyword-data.d.ts +1030 -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 +1033 -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 +13 -0
- package/packages/shared/src/index.d.ts.map +1 -0
- package/packages/shared/src/index.js +12 -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 +2606 -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 +176 -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/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 +82 -0
- package/packages/shared/src/runtime-env.d.ts.map +1 -0
- package/packages/shared/src/runtime-env.js +242 -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 +116 -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/types.d.ts +27 -0
- package/packages/shared/src/types.d.ts.map +1 -0
- package/packages/shared/src/types.js +1 -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/typescript/src/action-docs.d.ts +22 -0
- package/packages/typescript/src/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/action-docs.js +93 -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 +456 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/append.js +150 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/delete.js +136 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/list.js +84 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-attachment.js +107 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.d.ts +16 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read-file.js +187 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/read.js +138 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/remove-from-clipboard.js +96 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/search.js +139 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/actions/write.js +138 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.d.ts +39 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/index.js +78 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.d.ts +4 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/providers/clipboard.js +62 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.d.ts +16 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/attachmentContext.js +162 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.d.ts +65 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/clipboardService.js +352 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts +24 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardPersistence.js +63 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.d.ts +29 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/services/taskClipboardService.js +195 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.d.ts +15 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/specs.js +164 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.d.ts +92 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.d.ts.map +1 -0
- package/packages/typescript/src/advanced-capabilities/clipboard/types.js +4 -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 +1149 -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 +102 -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 +129 -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 +176 -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 +199 -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 +112 -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 +192 -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 +96 -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 +39 -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 +78 -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 +352 -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/index.d.ts +8 -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 +7 -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 +633 -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 +619 -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 +70 -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 +256 -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 +51 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/service.d.ts +46 -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 +569 -0
- package/packages/typescript/src/features/advanced-capabilities/experience/types.d.ts +95 -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/experienceRelationships.d.ts +25 -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 +116 -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 +70 -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 +924 -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 +588 -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 +114 -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/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 +10 -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 +8 -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 +498 -0
- package/packages/typescript/src/features/advanced-capabilities/personality/types.d.ts +18 -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 +11 -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 +108 -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 +125 -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 +180 -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 +286 -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 +198 -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 +37 -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 +347 -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 +181 -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 +132 -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 +80 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts +108 -0
- package/packages/typescript/src/features/basic-capabilities/index.d.ts.map +1 -0
- package/packages/typescript/src/features/basic-capabilities/index.js +1020 -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 +232 -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 +82 -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 +19 -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 +18 -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 +70 -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 +323 -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/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/index.d.ts +58 -0
- package/packages/typescript/src/features/index.d.ts.map +1 -0
- package/packages/typescript/src/features/index.js +155 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts +5 -0
- package/packages/typescript/src/features/knowledge/actions.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/actions.js +269 -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 +9 -0
- package/packages/typescript/src/features/knowledge/docs-loader.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/docs-loader.js +202 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts +26 -0
- package/packages/typescript/src/features/knowledge/document-processor.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/document-processor.js +618 -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 +106 -0
- package/packages/typescript/src/features/knowledge/index.d.ts +16 -0
- package/packages/typescript/src/features/knowledge/index.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/index.js +29 -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 +62 -0
- package/packages/typescript/src/features/knowledge/service.d.ts +76 -0
- package/packages/typescript/src/features/knowledge/service.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/service.js +511 -0
- package/packages/typescript/src/features/knowledge/types.d.ts +144 -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/utils.d.ts +17 -0
- package/packages/typescript/src/features/knowledge/utils.d.ts.map +1 -0
- package/packages/typescript/src/features/knowledge/utils.js +313 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts +41 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-handlers.js +443 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts +34 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/coding-task-helpers.js +171 -0
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts +11 -0
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/eval-metadata.js +55 -0
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts +11 -0
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/finalize-workspace.js +214 -0
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts +13 -0
- package/packages/typescript/src/features/orchestrator/actions/list-agents.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/list-agents.js +174 -0
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts +11 -0
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/manage-issues.js +428 -0
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts +11 -0
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/provision-workspace.js +189 -0
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts +12 -0
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/send-to-agent.js +265 -0
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts +12 -0
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/spawn-agent.js +356 -0
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts +22 -0
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/start-coding-task.js +270 -0
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts +12 -0
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/stop-agent.js +192 -0
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts +3 -0
- package/packages/typescript/src/features/orchestrator/actions/task-control.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/task-control.js +217 -0
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts +3 -0
- package/packages/typescript/src/features/orchestrator/actions/task-history.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/task-history.js +323 -0
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts +3 -0
- package/packages/typescript/src/features/orchestrator/actions/task-share.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/task-share.js +168 -0
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts +11 -0
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/actions/task-thread-target.js +68 -0
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts +18 -0
- package/packages/typescript/src/features/orchestrator/api/agent-routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/agent-routes.js +654 -0
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts +22 -0
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/coordinator-routes.js +403 -0
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts +18 -0
- package/packages/typescript/src/features/orchestrator/api/hook-routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/hook-routes.js +164 -0
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts +17 -0
- package/packages/typescript/src/features/orchestrator/api/issue-routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/issue-routes.js +132 -0
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts +37 -0
- package/packages/typescript/src/features/orchestrator/api/routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/routes.js +96 -0
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts +17 -0
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/api/workspace-routes.js +149 -0
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts +19 -0
- package/packages/typescript/src/features/orchestrator/base-plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/base-plugin.js +75 -0
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts +101 -0
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/claude-jsonl-completion-watcher.js +310 -0
- package/packages/typescript/src/features/orchestrator/index.d.ts +33 -0
- package/packages/typescript/src/features/orchestrator/index.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/index.js +30 -0
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts +15 -0
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/patch-agent-orchestrator-plugin.js +1449 -0
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts +14 -0
- package/packages/typescript/src/features/orchestrator/providers/action-examples.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/providers/action-examples.js +151 -0
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts +13 -0
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/providers/active-workspace-context.js +142 -0
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts +6 -0
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/agent-credentials.js +91 -0
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts +30 -0
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/agent-metrics.js +54 -0
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts +53 -0
- package/packages/typescript/src/features/orchestrator/services/agent-selection.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/agent-selection.js +70 -0
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts +61 -0
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/ansi-utils.js +252 -0
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts +13 -0
- package/packages/typescript/src/features/orchestrator/services/config-env.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/config-env.js +37 -0
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts +50 -0
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/coordinator-event-normalizer.js +184 -0
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts +38 -0
- package/packages/typescript/src/features/orchestrator/services/debug-capture.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/debug-capture.js +113 -0
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts +30 -0
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-auto-response.js +146 -0
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts +54 -0
- package/packages/typescript/src/features/orchestrator/services/pty-init.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-init.js +315 -0
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts +175 -0
- package/packages/typescript/src/features/orchestrator/services/pty-service.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-service.js +1469 -0
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts +49 -0
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-session-io.js +180 -0
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts +53 -0
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-spawn.js +280 -0
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts +80 -0
- package/packages/typescript/src/features/orchestrator/services/pty-types.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/pty-types.js +51 -0
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts +16 -0
- package/packages/typescript/src/features/orchestrator/services/repo-input.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/repo-input.js +88 -0
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts +69 -0
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/stall-classifier.js +446 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts +97 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator-prompts.js +342 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts +421 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-coordinator.js +2356 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts +52 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-decision-loop.js +1538 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts +49 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-event-triage.js +171 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts +27 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-history.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-history.js +148 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts +22 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/swarm-idle-watchdog.js +265 -0
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts +8 -0
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-acceptance.js +114 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts +68 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-auth.js +559 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts +82 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-agent-frameworks.js +738 -0
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts +3 -0
- package/packages/typescript/src/features/orchestrator/services/task-kind.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-kind.js +40 -0
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts +17 -0
- package/packages/typescript/src/features/orchestrator/services/task-policy.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-policy.js +226 -0
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts +550 -0
- package/packages/typescript/src/features/orchestrator/services/task-registry.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-registry.js +2182 -0
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts +18 -0
- package/packages/typescript/src/features/orchestrator/services/task-share.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-share.js +159 -0
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts +69 -0
- package/packages/typescript/src/features/orchestrator/services/task-validation.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-validation.js +587 -0
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts +5 -0
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/task-verifier-runner.js +372 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts +73 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-context.js +64 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts +53 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/trajectory-feedback.js +260 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts +28 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-git-ops.js +105 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts +58 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-github.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-github.js +139 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts +18 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-lifecycle.js +86 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts +118 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-service.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-service.js +533 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts +81 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-types.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/services/workspace-types.js +8 -0
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts +38 -0
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.d.ts.map +1 -0
- package/packages/typescript/src/features/orchestrator/task-progress-streamer.js +293 -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 +65 -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 +63 -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 +232 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts +35 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/coreExtensions.js +77 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts +25 -0
- package/packages/typescript/src/features/plugin-manager/index.d.ts.map +1 -0
- package/packages/typescript/src/features/plugin-manager/index.js +53 -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 +226 -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 +479 -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 +1007 -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 +402 -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 +278 -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 +105 -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 +223 -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/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 +337 -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/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/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/trajectories/TrajectoriesService.d.ts +275 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.d.ts.map +1 -0
- package/packages/typescript/src/features/trajectories/TrajectoriesService.js +1401 -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 +253 -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 +243 -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 +225 -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 +189 -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 +165 -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 +295 -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 +603 -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 +290 -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 +72 -0
- package/packages/typescript/src/features/trust/index.d.ts.map +1 -0
- package/packages/typescript/src/features/trust/index.js +213 -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 +212 -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/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 +2470 -0
- package/packages/typescript/src/generated/action-docs.d.ts.map +1 -0
- package/packages/typescript/src/generated/action-docs.js +3549 -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 +1032 -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 +1032 -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/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 +78 -0
- package/packages/typescript/src/index.node.d.ts.map +1 -0
- package/packages/typescript/src/index.node.js +106 -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 +1023 -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/plugin-lifecycle.d.ts +16 -0
- package/packages/typescript/src/plugin-lifecycle.d.ts.map +1 -0
- package/packages/typescript/src/plugin-lifecycle.js +551 -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 +334 -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 +14 -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 +88 -0
- package/packages/typescript/src/prompts.d.ts.map +1 -0
- package/packages/typescript/src/prompts.js +1123 -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 +877 -0
- package/packages/typescript/src/runtime.d.ts.map +1 -0
- package/packages/typescript/src/runtime.js +5277 -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.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 +75 -0
- package/packages/typescript/src/schemas/index.d.ts.map +1 -0
- package/packages/typescript/src/schemas/index.js +74 -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 +381 -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 +252 -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 +93 -0
- package/packages/typescript/src/services/message.d.ts.map +1 -0
- package/packages/typescript/src/services/message.js +3131 -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/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 +163 -0
- package/packages/typescript/src/services/relationships.d.ts +125 -0
- package/packages/typescript/src/services/relationships.d.ts.map +1 -0
- package/packages/typescript/src/services/relationships.js +637 -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 +130 -0
- package/packages/typescript/src/services/task.d.ts.map +1 -0
- package/packages/typescript/src/services/task.js +536 -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 +25 -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 +396 -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 +79 -0
- package/packages/typescript/src/streaming-context.d.ts.map +1 -0
- package/packages/typescript/src/streaming-context.js +115 -0
- package/packages/typescript/src/trajectory-context.d.ts +26 -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 +49 -0
- package/packages/typescript/src/trajectory-utils.d.ts.map +1 -0
- package/packages/typescript/src/trajectory-utils.js +105 -0
- package/packages/typescript/src/types/agent.d.ts +62 -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 +346 -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 +386 -0
- package/packages/typescript/src/types/events.d.ts.map +1 -0
- package/packages/typescript/src/types/events.js +83 -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 +38 -0
- package/packages/typescript/src/types/index.d.ts.map +1 -0
- package/packages/typescript/src/types/index.js +46 -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 +438 -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 +169 -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 +45 -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/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 +325 -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/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 +394 -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 +173 -0
- package/packages/typescript/src/types/service.d.ts.map +1 -0
- package/packages/typescript/src/types/service.js +78 -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 +380 -0
- package/packages/typescript/src/types/trigger.d.ts +38 -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/batch-queue/batch-processor.d.ts +53 -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 +129 -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 +126 -0
- package/packages/typescript/src/utils/context-routing.d.ts +25 -0
- package/packages/typescript/src/utils/context-routing.d.ts.map +1 -0
- package/packages/typescript/src/utils/context-routing.js +160 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts +83 -0
- package/packages/typescript/src/utils/crypto-compat.d.ts.map +1 -0
- package/packages/typescript/src/utils/crypto-compat.js +368 -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 +32 -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/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/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 +325 -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.d.ts +190 -0
- package/packages/typescript/src/utils.d.ts.map +1 -0
- package/packages/typescript/src/utils.js +1115 -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/jest.config.js +0 -17
- package/src/__tests__/client-type-identification.test.ts +0 -59
- package/src/defaultCharacter.ts +0 -530
- package/src/index.ts +0 -865
- package/tsconfig.json +0 -16
|
@@ -0,0 +1,1538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swarm Coordinator — Decision Loop & Blocked/Turn-Complete Handlers
|
|
3
|
+
*
|
|
4
|
+
* Extracted from swarm-coordinator.ts for modularity.
|
|
5
|
+
* All functions are pure async helpers that receive a SwarmCoordinatorContext
|
|
6
|
+
* to access shared state and services.
|
|
7
|
+
*
|
|
8
|
+
* @module services/swarm-decision-loop
|
|
9
|
+
*/
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
import { ModelType } from "@elizaos/core";
|
|
12
|
+
import { cleanForChat, extractCompletionSummary } from "./ansi-utils.js";
|
|
13
|
+
import { buildBlockedEventMessage, buildCoordinationPrompt, buildTurnCompletePrompt, parseCoordinationResponse, } from "./swarm-coordinator-prompts.js";
|
|
14
|
+
import { classifyEventTier } from "./swarm-event-triage.js";
|
|
15
|
+
import { validateTaskCompletion } from "./task-validation.js";
|
|
16
|
+
import { runReadyTaskVerifiers } from "./task-verifier-runner.js";
|
|
17
|
+
import { withTrajectoryContext } from "./trajectory-context.js";
|
|
18
|
+
// ─── Constants ───
|
|
19
|
+
/** Timeout for agent decision pipeline callback (ms). */
|
|
20
|
+
const DECISION_CB_TIMEOUT_MS = 30_000;
|
|
21
|
+
const LOGIN_REQUIRED_PROMPT_RE = /\b(?:requires authentication|needs (?:a )?provider login|run\s+"?claude login"?|claude code requires authentication|login required|authenticate|sign in)\b/i;
|
|
22
|
+
/** Wrap a promise with a timeout. Rejects with an error if not resolved in time. */
|
|
23
|
+
function withTimeout(promise, ms, label) {
|
|
24
|
+
return new Promise((resolve, reject) => {
|
|
25
|
+
const timer = setTimeout(() => reject(new Error(`${label} timed out after ${ms}ms`)), ms);
|
|
26
|
+
promise.then((val) => {
|
|
27
|
+
clearTimeout(timer);
|
|
28
|
+
resolve(val);
|
|
29
|
+
}, (err) => {
|
|
30
|
+
clearTimeout(timer);
|
|
31
|
+
reject(err);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/** Maximum consecutive auto-responses before escalating to a human. */
|
|
36
|
+
const MAX_AUTO_RESPONSES = 10;
|
|
37
|
+
/**
|
|
38
|
+
* Grace period after the coordinator sends input to an agent (ms).
|
|
39
|
+
* During this window, stall and turn-complete events are suppressed
|
|
40
|
+
* to give the agent time to process the input before re-assessment.
|
|
41
|
+
*/
|
|
42
|
+
export const POST_SEND_COOLDOWN_MS = 15_000;
|
|
43
|
+
const deferredTurnCompleteTimers = new Map();
|
|
44
|
+
/** Clear all deferred turn-complete timers (used during coordinator shutdown). */
|
|
45
|
+
export function clearDeferredTurnCompleteTimers() {
|
|
46
|
+
for (const timer of deferredTurnCompleteTimers.values()) {
|
|
47
|
+
clearTimeout(timer);
|
|
48
|
+
}
|
|
49
|
+
deferredTurnCompleteTimers.clear();
|
|
50
|
+
}
|
|
51
|
+
// ─── Helpers ───
|
|
52
|
+
/** Build a TaskContextSummary from a TaskContext. */
|
|
53
|
+
function toContextSummary(taskCtx) {
|
|
54
|
+
return {
|
|
55
|
+
sessionId: taskCtx.sessionId,
|
|
56
|
+
agentType: taskCtx.agentType,
|
|
57
|
+
label: taskCtx.label,
|
|
58
|
+
originalTask: taskCtx.originalTask,
|
|
59
|
+
workdir: taskCtx.workdir,
|
|
60
|
+
repo: taskCtx.repo,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** Extract recent non-auto-resolved decisions as history entries. */
|
|
64
|
+
function toDecisionHistory(taskCtx) {
|
|
65
|
+
return taskCtx.decisions
|
|
66
|
+
.filter((d) => d.decision !== "auto_resolved")
|
|
67
|
+
.slice(-5)
|
|
68
|
+
.map((d) => ({
|
|
69
|
+
event: d.event,
|
|
70
|
+
promptText: d.promptText,
|
|
71
|
+
action: d.decision,
|
|
72
|
+
response: d.response,
|
|
73
|
+
reasoning: d.reasoning,
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
/** Collect sibling task summaries for cross-task context (excludes the current session). */
|
|
77
|
+
function collectSiblings(ctx, currentSessionId) {
|
|
78
|
+
const siblings = [];
|
|
79
|
+
for (const [sid, task] of ctx.tasks) {
|
|
80
|
+
if (sid === currentSessionId)
|
|
81
|
+
continue;
|
|
82
|
+
// Find the most recent keyDecision from this sibling's decisions
|
|
83
|
+
let lastKeyDecision;
|
|
84
|
+
for (let i = task.decisions.length - 1; i >= 0; i--) {
|
|
85
|
+
const d = task.decisions[i];
|
|
86
|
+
if (d.reasoning && d.decision !== "auto_resolved") {
|
|
87
|
+
lastKeyDecision = d.reasoning;
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// Also check shared decisions for this sibling's key decisions
|
|
92
|
+
for (let i = ctx.sharedDecisions.length - 1; i >= 0; i--) {
|
|
93
|
+
const sd = ctx.sharedDecisions[i];
|
|
94
|
+
if (sd.agentLabel === task.label) {
|
|
95
|
+
lastKeyDecision = sd.summary;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
siblings.push({
|
|
100
|
+
label: task.label,
|
|
101
|
+
agentType: task.agentType,
|
|
102
|
+
originalTask: task.originalTask,
|
|
103
|
+
status: task.status,
|
|
104
|
+
lastKeyDecision,
|
|
105
|
+
completionSummary: task.completionSummary,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
return siblings;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Enrich a text response with any shared decisions the agent hasn't seen yet.
|
|
112
|
+
* Returns the enriched response and the snapshot index to commit after send.
|
|
113
|
+
* Short responses (like "y", "n", single-word approvals) are left untouched
|
|
114
|
+
* to avoid confusing TUI prompts.
|
|
115
|
+
*/
|
|
116
|
+
function enrichWithSharedDecisions(ctx, sessionId, response) {
|
|
117
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
118
|
+
if (!taskCtx)
|
|
119
|
+
return { response };
|
|
120
|
+
const allDecisions = ctx.sharedDecisions;
|
|
121
|
+
const lastSeen = taskCtx.lastSeenDecisionIndex;
|
|
122
|
+
// Snapshot the current length so we don't skip decisions appended during send.
|
|
123
|
+
const snapshotEnd = allDecisions.length;
|
|
124
|
+
if (lastSeen >= snapshotEnd)
|
|
125
|
+
return { response };
|
|
126
|
+
// Don't inject context into short responses (approvals, single words)
|
|
127
|
+
if (response.length < 20) {
|
|
128
|
+
return { response };
|
|
129
|
+
}
|
|
130
|
+
const unseen = allDecisions.slice(lastSeen, snapshotEnd);
|
|
131
|
+
const contextBlock = unseen
|
|
132
|
+
.map((d) => `[${d.agentLabel}] ${d.summary}`)
|
|
133
|
+
.join("; ");
|
|
134
|
+
return {
|
|
135
|
+
response: `${response}\n\n(Context from other agents: ${contextBlock})`,
|
|
136
|
+
snapshotIndex: snapshotEnd,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/** Advance the shared-decisions high-water mark for a session after a successful send. */
|
|
140
|
+
function commitSharedDecisionIndex(ctx, sessionId, snapshotIndex) {
|
|
141
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
142
|
+
if (taskCtx) {
|
|
143
|
+
taskCtx.lastSeenDecisionIndex = snapshotIndex;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/** Record a key decision from an LLM response into the shared decisions list. */
|
|
147
|
+
function recordKeyDecision(ctx, agentLabel, decision) {
|
|
148
|
+
if (!decision.keyDecision)
|
|
149
|
+
return;
|
|
150
|
+
ctx.sharedDecisions.push({
|
|
151
|
+
agentLabel,
|
|
152
|
+
summary: decision.keyDecision,
|
|
153
|
+
timestamp: Date.now(),
|
|
154
|
+
});
|
|
155
|
+
ctx.log(`Shared decision from "${agentLabel}": ${decision.keyDecision}`);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Drain a buffered task_complete event for a session after an in-flight
|
|
159
|
+
* decision finishes. Prevents task_complete from being silently dropped
|
|
160
|
+
* when it arrives during a slow handleBlocked/handleAutonomous LLM call.
|
|
161
|
+
*/
|
|
162
|
+
async function drainPendingTurnComplete(ctx, sessionId) {
|
|
163
|
+
if (!ctx.pendingTurnComplete.has(sessionId))
|
|
164
|
+
return;
|
|
165
|
+
const pendingData = ctx.pendingTurnComplete.get(sessionId);
|
|
166
|
+
ctx.pendingTurnComplete.delete(sessionId);
|
|
167
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
168
|
+
if (!taskCtx ||
|
|
169
|
+
(taskCtx.status !== "active" && taskCtx.status !== "tool_running")) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
ctx.log(`Draining buffered turn-complete for "${taskCtx.label}"`);
|
|
173
|
+
await handleTurnComplete(ctx, sessionId, taskCtx, pendingData);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Drain a buffered blocked event for a session after an in-flight
|
|
177
|
+
* decision finishes. Prevents a distinct blocked prompt from being
|
|
178
|
+
* silently dropped when it arrives during a slow LLM call.
|
|
179
|
+
*/
|
|
180
|
+
async function drainPendingBlocked(ctx, sessionId) {
|
|
181
|
+
if (!ctx.pendingBlocked.has(sessionId))
|
|
182
|
+
return;
|
|
183
|
+
const pendingData = ctx.pendingBlocked.get(sessionId);
|
|
184
|
+
ctx.pendingBlocked.delete(sessionId);
|
|
185
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
186
|
+
// Mirror drainPendingTurnComplete: a buffered blocked event should still
|
|
187
|
+
// drain if the task is in tool_running state (subagents using tools sit
|
|
188
|
+
// there continuously). Without this, a blocked prompt that arrived during
|
|
189
|
+
// an in-flight decision gets dropped silently when the lock releases.
|
|
190
|
+
if (!taskCtx ||
|
|
191
|
+
(taskCtx.status !== "active" && taskCtx.status !== "tool_running")) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
ctx.log(`Draining buffered blocked event for "${taskCtx.label}"`);
|
|
195
|
+
await handleBlocked(ctx, sessionId, taskCtx, pendingData);
|
|
196
|
+
}
|
|
197
|
+
/** Format a decision's response for recording. */
|
|
198
|
+
function formatDecisionResponse(decision) {
|
|
199
|
+
if (decision.action !== "respond")
|
|
200
|
+
return undefined;
|
|
201
|
+
return decision.useKeys
|
|
202
|
+
? `keys:${decision.keys?.join(",")}`
|
|
203
|
+
: decision.response;
|
|
204
|
+
}
|
|
205
|
+
function truncateForUser(text, max = 140) {
|
|
206
|
+
const trimmed = text.trim();
|
|
207
|
+
if (trimmed.length <= max) {
|
|
208
|
+
return trimmed;
|
|
209
|
+
}
|
|
210
|
+
return `${trimmed.slice(0, max)}...`;
|
|
211
|
+
}
|
|
212
|
+
function extractLoginInstructions(eventData) {
|
|
213
|
+
const instructions = typeof eventData.promptInfo?.instructions === "string"
|
|
214
|
+
? eventData.promptInfo.instructions.trim()
|
|
215
|
+
: "";
|
|
216
|
+
if (instructions) {
|
|
217
|
+
return instructions;
|
|
218
|
+
}
|
|
219
|
+
return typeof eventData.promptInfo?.prompt === "string"
|
|
220
|
+
? eventData.promptInfo.prompt.trim()
|
|
221
|
+
: "";
|
|
222
|
+
}
|
|
223
|
+
function isLoginRequiredPrompt(promptText, promptType) {
|
|
224
|
+
if (promptType === "login") {
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
return LOGIN_REQUIRED_PROMPT_RE.test(promptText);
|
|
228
|
+
}
|
|
229
|
+
function formatSuggestedAction(decision) {
|
|
230
|
+
if (!decision) {
|
|
231
|
+
return "Needs human review with no automatic suggestion.";
|
|
232
|
+
}
|
|
233
|
+
if (decision.action === "respond") {
|
|
234
|
+
if (decision.useKeys && decision.keys?.length) {
|
|
235
|
+
return `Suggested action: send keys ${decision.keys.join(", ")}.`;
|
|
236
|
+
}
|
|
237
|
+
if (decision.response?.trim()) {
|
|
238
|
+
return `Suggested action: reply "${truncateForUser(decision.response, 80)}".`;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return `Suggested action: ${decision.action}.`;
|
|
242
|
+
}
|
|
243
|
+
function decisionFromSuggestedResponse(suggestedResponse, reasoning = "Used adapter-provided auto-response for a routine blocking prompt.") {
|
|
244
|
+
if (suggestedResponse.startsWith("keys:")) {
|
|
245
|
+
return {
|
|
246
|
+
action: "respond",
|
|
247
|
+
useKeys: true,
|
|
248
|
+
keys: suggestedResponse
|
|
249
|
+
.slice("keys:".length)
|
|
250
|
+
.split(",")
|
|
251
|
+
.map((part) => part.trim())
|
|
252
|
+
.filter(Boolean),
|
|
253
|
+
reasoning,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
action: "respond",
|
|
258
|
+
response: suggestedResponse,
|
|
259
|
+
reasoning,
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function inferRoutinePromptResponse(promptText, promptType) {
|
|
263
|
+
if (promptType === "project_select" &&
|
|
264
|
+
/project|workspace/i.test(promptText)) {
|
|
265
|
+
return {
|
|
266
|
+
suggestedResponse: "keys:enter",
|
|
267
|
+
reasoning: "Accepted the current workspace so a routine project-selection prompt does not stall the task.",
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
if (promptType === "config" &&
|
|
271
|
+
/claude (?:dialog awaiting navigation|menu navigation required)/i.test(promptText)) {
|
|
272
|
+
return {
|
|
273
|
+
suggestedResponse: "keys:enter",
|
|
274
|
+
reasoning: "Accepted Claude's default dialog action so the replacement session can continue without exiting the CLI.",
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
if (promptType && promptType !== "unknown") {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
if (/should i open (?:the )?(?:page|link|url).*(?:new tab|browser tab).*instead\??/i.test(promptText)) {
|
|
281
|
+
return {
|
|
282
|
+
suggestedResponse: "yes",
|
|
283
|
+
reasoning: "Accepted routine browser follow-up so the agent can keep using its web tool without human intervention.",
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
if (/cheaper,\s*faster,\s*but less capable/i.test(promptText) &&
|
|
287
|
+
/keep current model/i.test(promptText)) {
|
|
288
|
+
return {
|
|
289
|
+
suggestedResponse: "2",
|
|
290
|
+
reasoning: "Kept the current Codex model so a routine model-selection prompt does not stall the task.",
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
return null;
|
|
294
|
+
}
|
|
295
|
+
/** Check if a permission prompt references paths outside the workspace. */
|
|
296
|
+
export function isOutOfScopeAccess(promptText, workdir) {
|
|
297
|
+
// Strip URLs so we don't false-positive on https://example.com/foo/bar
|
|
298
|
+
const stripped = promptText.replace(/https?:\/\/\S+/g, "");
|
|
299
|
+
// Match absolute paths: multi-segment (/dir/file) or well-known single-segment
|
|
300
|
+
// roots that agents should never touch (/etc, /tmp, /var, /usr, /opt, /sys, /proc).
|
|
301
|
+
const multiSegment = /\/[\w.-]+(?:\/[\w.-]+)+/g;
|
|
302
|
+
const sensitiveRoots = /\b\/(etc|tmp|var|usr|opt|sys|proc|root)\b/g;
|
|
303
|
+
const homeTilde = /~\/[\w.-]+/g;
|
|
304
|
+
const matches = [
|
|
305
|
+
...(stripped.match(multiSegment) ?? []),
|
|
306
|
+
...(stripped.match(sensitiveRoots) ?? []).map((m) => m.trimStart()),
|
|
307
|
+
...(stripped.match(homeTilde) ?? []).map((m) => m.replace("~", process.env.HOME ?? "/home/user")),
|
|
308
|
+
];
|
|
309
|
+
if (matches.length === 0)
|
|
310
|
+
return false;
|
|
311
|
+
const resolvedWorkdir = path.resolve(workdir);
|
|
312
|
+
return matches.some((p) => {
|
|
313
|
+
const resolved = path.resolve(p);
|
|
314
|
+
return (!resolved.startsWith(resolvedWorkdir + path.sep) &&
|
|
315
|
+
resolved !== resolvedWorkdir);
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Check if all registered tasks have reached a terminal state.
|
|
320
|
+
* If so, send a swarm-wide summary message to the chat.
|
|
321
|
+
*/
|
|
322
|
+
export function checkAllTasksComplete(ctx) {
|
|
323
|
+
void checkAllTasksCompleteAsync(ctx);
|
|
324
|
+
}
|
|
325
|
+
async function checkAllTasksCompleteAsync(ctx) {
|
|
326
|
+
const tasks = Array.from(ctx.tasks.values());
|
|
327
|
+
if (tasks.length === 0)
|
|
328
|
+
return;
|
|
329
|
+
const terminalStates = new Set(["completed", "stopped", "error"]);
|
|
330
|
+
const allDone = tasks.every((t) => terminalStates.has(t.status));
|
|
331
|
+
if (!allDone) {
|
|
332
|
+
const statuses = tasks.map((t) => `${t.label}=${t.status}`).join(", ");
|
|
333
|
+
ctx.log(`checkAllTasksComplete: not all done yet — ${statuses}`);
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const threadIds = [...new Set(tasks.map((task) => task.threadId))];
|
|
337
|
+
const failingThreads = [];
|
|
338
|
+
for (const threadId of threadIds) {
|
|
339
|
+
await runReadyTaskVerifiers(ctx.runtime, ctx.taskRegistry, threadId);
|
|
340
|
+
const thread = await ctx.taskRegistry.getThread(threadId);
|
|
341
|
+
if (!thread || thread.nodes.length === 0) {
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
const goalNodes = thread.nodes.filter((node) => node.kind === "goal");
|
|
345
|
+
const failedGoals = goalNodes
|
|
346
|
+
.filter((node) => node.status === "failed" ||
|
|
347
|
+
node.status === "canceled" ||
|
|
348
|
+
node.status === "interrupted")
|
|
349
|
+
.map((node) => `${node.title}=${node.status}`);
|
|
350
|
+
const incompleteGoals = goalNodes
|
|
351
|
+
.filter((node) => node.status !== "completed" &&
|
|
352
|
+
node.status !== "failed" &&
|
|
353
|
+
node.status !== "canceled" &&
|
|
354
|
+
node.status !== "interrupted")
|
|
355
|
+
.map((node) => `${node.title}=${node.status}`);
|
|
356
|
+
if (incompleteGoals.length > 0) {
|
|
357
|
+
const pendingGoals = goalNodes
|
|
358
|
+
.filter((node) => node.status !== "completed")
|
|
359
|
+
.map((node) => `${node.title}=${node.status}`)
|
|
360
|
+
.join(", ");
|
|
361
|
+
ctx.log(`checkAllTasksComplete: thread ${threadId} still has non-terminal goal nodes — ${pendingGoals}`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
const runningVerifiers = thread.verifierJobs.filter((job) => job.status === "running");
|
|
365
|
+
if (runningVerifiers.length > 0) {
|
|
366
|
+
ctx.log(`checkAllTasksComplete: thread ${threadId} still has running verifier jobs`);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
const pendingVerifiers = thread.verifierJobs.filter((job) => job.status === "pending");
|
|
370
|
+
if (pendingVerifiers.length > 0) {
|
|
371
|
+
ctx.log(`checkAllTasksComplete: thread ${threadId} still has pending verifier jobs`);
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
const failedVerifiers = thread.verifierJobs
|
|
375
|
+
.filter((job) => job.status === "failed")
|
|
376
|
+
.map((job) => `${job.title}=failed`);
|
|
377
|
+
if (failedGoals.length > 0 || failedVerifiers.length > 0) {
|
|
378
|
+
failingThreads.push({
|
|
379
|
+
threadId,
|
|
380
|
+
failedGoals,
|
|
381
|
+
failedVerifiers,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
if (failingThreads.length > 0) {
|
|
386
|
+
if (ctx.swarmCompleteNotified) {
|
|
387
|
+
ctx.log("checkAllTasksComplete: failure notification already sent — skipping");
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
ctx.swarmCompleteNotified = true;
|
|
391
|
+
const summary = failingThreads
|
|
392
|
+
.map((thread) => [
|
|
393
|
+
`thread ${thread.threadId}`,
|
|
394
|
+
thread.failedGoals.length > 0
|
|
395
|
+
? `failed goals: ${thread.failedGoals.join(", ")}`
|
|
396
|
+
: "",
|
|
397
|
+
thread.failedVerifiers.length > 0
|
|
398
|
+
? `failed verifiers: ${thread.failedVerifiers.join(", ")}`
|
|
399
|
+
: "",
|
|
400
|
+
]
|
|
401
|
+
.filter(Boolean)
|
|
402
|
+
.join(" | "))
|
|
403
|
+
.join("; ");
|
|
404
|
+
ctx.log(`checkAllTasksComplete: sessions are terminal but acceptance failed — ${summary}`);
|
|
405
|
+
ctx.broadcast({
|
|
406
|
+
type: "swarm_attention_required",
|
|
407
|
+
sessionId: "",
|
|
408
|
+
timestamp: Date.now(),
|
|
409
|
+
data: {
|
|
410
|
+
summary,
|
|
411
|
+
threads: failingThreads,
|
|
412
|
+
},
|
|
413
|
+
});
|
|
414
|
+
ctx.sendChatMessage(`Task agents finished running, but the coordinator could not prove completion. ${summary}`, "task-agent");
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
// Guard: only fire once per swarm (reset by coordinator on stop/new swarm)
|
|
418
|
+
if (ctx.swarmCompleteNotified) {
|
|
419
|
+
ctx.log("checkAllTasksComplete: already notified — skipping");
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
ctx.swarmCompleteNotified = true;
|
|
423
|
+
const completed = tasks.filter((t) => t.status === "completed");
|
|
424
|
+
const stopped = tasks.filter((t) => t.status === "stopped");
|
|
425
|
+
const errored = tasks.filter((t) => t.status === "error");
|
|
426
|
+
const parts = [];
|
|
427
|
+
if (completed.length > 0) {
|
|
428
|
+
parts.push(`${completed.length} completed`);
|
|
429
|
+
}
|
|
430
|
+
if (stopped.length > 0) {
|
|
431
|
+
parts.push(`${stopped.length} stopped`);
|
|
432
|
+
}
|
|
433
|
+
if (errored.length > 0) {
|
|
434
|
+
parts.push(`${errored.length} errored`);
|
|
435
|
+
}
|
|
436
|
+
ctx.log(`checkAllTasksComplete: all ${tasks.length} tasks terminal (${parts.join(", ")}) — firing swarm_complete`);
|
|
437
|
+
ctx.broadcast({
|
|
438
|
+
type: "swarm_complete",
|
|
439
|
+
sessionId: "",
|
|
440
|
+
timestamp: Date.now(),
|
|
441
|
+
data: {
|
|
442
|
+
total: tasks.length,
|
|
443
|
+
completed: completed.length,
|
|
444
|
+
stopped: stopped.length,
|
|
445
|
+
errored: errored.length,
|
|
446
|
+
},
|
|
447
|
+
});
|
|
448
|
+
// Fire swarm complete callback for synthesis — if wired, the host
|
|
449
|
+
// (milaidy) will use this to generate a synthesized overview.
|
|
450
|
+
const swarmCompleteCb = ctx.getSwarmCompleteCallback();
|
|
451
|
+
const sendFallbackSummary = () => {
|
|
452
|
+
ctx.sendChatMessage(`All ${tasks.length} task agents finished (${parts.join(", ")}). Review their work when you're ready.`, "task-agent");
|
|
453
|
+
};
|
|
454
|
+
if (swarmCompleteCb) {
|
|
455
|
+
ctx.log("checkAllTasksComplete: swarm complete callback is wired — calling synthesis");
|
|
456
|
+
const taskSummaries = tasks.map((t) => {
|
|
457
|
+
// Fold in shared decisions relevant to this task so the synthesis
|
|
458
|
+
// prompt includes the agent's actual findings, not just PR URLs.
|
|
459
|
+
const decisions = ctx.sharedDecisions
|
|
460
|
+
.filter((sd) => sd.agentLabel === t.label)
|
|
461
|
+
.map((sd) => sd.summary);
|
|
462
|
+
const summaryParts = [];
|
|
463
|
+
if (decisions.length > 0)
|
|
464
|
+
summaryParts.push(decisions.join("; "));
|
|
465
|
+
if (t.completionSummary)
|
|
466
|
+
summaryParts.push(t.completionSummary);
|
|
467
|
+
return {
|
|
468
|
+
sessionId: t.sessionId,
|
|
469
|
+
label: t.label,
|
|
470
|
+
agentType: t.agentType,
|
|
471
|
+
originalTask: t.originalTask,
|
|
472
|
+
status: t.status,
|
|
473
|
+
completionSummary: summaryParts.join("\n") || "",
|
|
474
|
+
};
|
|
475
|
+
});
|
|
476
|
+
// Wrap in Promise.resolve().then() to catch sync throws, and race against
|
|
477
|
+
// a timeout to guard against callbacks that never settle.
|
|
478
|
+
void withTimeout(Promise.resolve().then(() => swarmCompleteCb({
|
|
479
|
+
tasks: taskSummaries,
|
|
480
|
+
total: tasks.length,
|
|
481
|
+
completed: completed.length,
|
|
482
|
+
stopped: stopped.length,
|
|
483
|
+
errored: errored.length,
|
|
484
|
+
})), DECISION_CB_TIMEOUT_MS, "swarmCompleteCb").catch((err) => {
|
|
485
|
+
ctx.log(`Swarm complete callback failed: ${err} — falling back to generic summary`);
|
|
486
|
+
sendFallbackSummary();
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
ctx.log("checkAllTasksComplete: no synthesis callback — sending generic message");
|
|
491
|
+
sendFallbackSummary();
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
/** Fetch recent PTY output, returning empty string on failure. */
|
|
495
|
+
async function fetchRecentOutput(ctx, sessionId, lines = 50) {
|
|
496
|
+
if (!ctx.ptyService)
|
|
497
|
+
return "";
|
|
498
|
+
try {
|
|
499
|
+
return await ctx.ptyService.getSessionOutput(sessionId, lines);
|
|
500
|
+
}
|
|
501
|
+
catch {
|
|
502
|
+
return "";
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
// ─── LLM Decision ───
|
|
506
|
+
/**
|
|
507
|
+
* Ask the LLM to make a coordination decision about a blocked agent.
|
|
508
|
+
*/
|
|
509
|
+
export async function makeCoordinationDecision(ctx, taskCtx, promptText, recentOutput) {
|
|
510
|
+
const prompt = buildCoordinationPrompt(toContextSummary(taskCtx), promptText, recentOutput, toDecisionHistory(taskCtx), collectSiblings(ctx, taskCtx.sessionId), ctx.sharedDecisions, ctx.getSwarmContext());
|
|
511
|
+
try {
|
|
512
|
+
const result = await withTrajectoryContext(ctx.runtime, {
|
|
513
|
+
source: "orchestrator",
|
|
514
|
+
decisionType: "coordination",
|
|
515
|
+
sessionId: taskCtx.sessionId,
|
|
516
|
+
taskLabel: taskCtx.label,
|
|
517
|
+
repo: taskCtx.repo,
|
|
518
|
+
workdir: taskCtx.workdir,
|
|
519
|
+
originalTask: taskCtx.originalTask,
|
|
520
|
+
}, () => ctx.runtime.useModel(ModelType.TEXT_SMALL, { prompt }));
|
|
521
|
+
return parseCoordinationResponse(result);
|
|
522
|
+
}
|
|
523
|
+
catch (err) {
|
|
524
|
+
ctx.log(`LLM coordination call failed: ${err}`);
|
|
525
|
+
return null;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Execute a coordination decision — send response, complete session, escalate, or ignore.
|
|
530
|
+
*/
|
|
531
|
+
export async function executeDecision(ctx, sessionId, decision) {
|
|
532
|
+
if (!ctx.ptyService)
|
|
533
|
+
return;
|
|
534
|
+
switch (decision.action) {
|
|
535
|
+
case "respond": {
|
|
536
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
537
|
+
if (taskCtx) {
|
|
538
|
+
taskCtx.status = "active";
|
|
539
|
+
}
|
|
540
|
+
if (decision.useKeys && decision.keys) {
|
|
541
|
+
await ctx.ptyService.sendKeysToSession(sessionId, decision.keys);
|
|
542
|
+
}
|
|
543
|
+
else if (decision.response !== undefined) {
|
|
544
|
+
// Proactive injection: append unseen shared decisions to text responses
|
|
545
|
+
const { response: enriched, snapshotIndex } = enrichWithSharedDecisions(ctx, sessionId, decision.response);
|
|
546
|
+
await ctx.ptyService.sendToSession(sessionId, enriched);
|
|
547
|
+
// Only advance the high-water mark after send succeeds — if the send
|
|
548
|
+
// fails, the decisions will be retried on the next enrichment.
|
|
549
|
+
if (snapshotIndex !== undefined) {
|
|
550
|
+
commitSharedDecisionIndex(ctx, sessionId, snapshotIndex);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
// Mark the send time so stall/turn-complete events are suppressed
|
|
554
|
+
// during the grace period while the agent processes this input.
|
|
555
|
+
if (taskCtx) {
|
|
556
|
+
taskCtx.lastInputSentAt = Date.now();
|
|
557
|
+
await ctx.syncTaskContext(taskCtx);
|
|
558
|
+
}
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
case "complete": {
|
|
562
|
+
const taskCtx = ctx.tasks.get(sessionId);
|
|
563
|
+
// Extract meaningful artifacts (PR URLs, commits) instead of
|
|
564
|
+
// dumping raw terminal output which is full of TUI noise.
|
|
565
|
+
let summary = "";
|
|
566
|
+
try {
|
|
567
|
+
const rawOutput = await ctx.ptyService.getSessionOutput(sessionId, 50);
|
|
568
|
+
summary = extractCompletionSummary(rawOutput);
|
|
569
|
+
}
|
|
570
|
+
catch {
|
|
571
|
+
/* ignore */
|
|
572
|
+
}
|
|
573
|
+
if (!taskCtx) {
|
|
574
|
+
ctx.broadcast({
|
|
575
|
+
type: "task_complete",
|
|
576
|
+
sessionId,
|
|
577
|
+
timestamp: Date.now(),
|
|
578
|
+
data: { reasoning: decision.reasoning },
|
|
579
|
+
});
|
|
580
|
+
ctx.ptyService.stopSession(sessionId, /* force */ true).catch((err) => {
|
|
581
|
+
ctx.log(`Failed to stop session after LLM-detected completion: ${err}`);
|
|
582
|
+
});
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
taskCtx.completionSummary = summary || decision.reasoning || "";
|
|
586
|
+
taskCtx.status = "tool_running";
|
|
587
|
+
await Promise.all([
|
|
588
|
+
ctx.syncTaskContext(taskCtx),
|
|
589
|
+
ctx.taskRegistry.appendEvent({
|
|
590
|
+
threadId: taskCtx.threadId,
|
|
591
|
+
sessionId,
|
|
592
|
+
eventType: "validation_started",
|
|
593
|
+
summary: `Validation started for "${taskCtx.label}"`,
|
|
594
|
+
data: {
|
|
595
|
+
completionReasoning: decision.reasoning,
|
|
596
|
+
completionSummary: taskCtx.completionSummary,
|
|
597
|
+
},
|
|
598
|
+
}),
|
|
599
|
+
]);
|
|
600
|
+
ctx.broadcast({
|
|
601
|
+
type: "tool_running",
|
|
602
|
+
sessionId,
|
|
603
|
+
timestamp: Date.now(),
|
|
604
|
+
data: {
|
|
605
|
+
description: "validation",
|
|
606
|
+
},
|
|
607
|
+
});
|
|
608
|
+
const verifierJob = taskCtx.taskNodeId
|
|
609
|
+
? await ctx.taskRegistry.createTaskVerifierJob({
|
|
610
|
+
threadId: taskCtx.threadId,
|
|
611
|
+
nodeId: taskCtx.taskNodeId,
|
|
612
|
+
status: "running",
|
|
613
|
+
verifierType: "task_completion",
|
|
614
|
+
title: `Validate ${taskCtx.label}`,
|
|
615
|
+
instructions: [
|
|
616
|
+
`Task: ${taskCtx.originalTask}`,
|
|
617
|
+
taskCtx.completionSummary
|
|
618
|
+
? `Completion summary: ${taskCtx.completionSummary}`
|
|
619
|
+
: "",
|
|
620
|
+
decision.reasoning ? `Reasoning: ${decision.reasoning}` : "",
|
|
621
|
+
]
|
|
622
|
+
.filter(Boolean)
|
|
623
|
+
.join("\n"),
|
|
624
|
+
config: {
|
|
625
|
+
sessionId,
|
|
626
|
+
agentType: taskCtx.agentType,
|
|
627
|
+
},
|
|
628
|
+
metadata: {
|
|
629
|
+
source: "swarm-decision-loop",
|
|
630
|
+
},
|
|
631
|
+
startedAt: new Date().toISOString(),
|
|
632
|
+
})
|
|
633
|
+
: null;
|
|
634
|
+
const validation = await validateTaskCompletion(ctx, {
|
|
635
|
+
sessionId,
|
|
636
|
+
taskCtx,
|
|
637
|
+
completionReasoning: decision.reasoning,
|
|
638
|
+
completionSummary: taskCtx.completionSummary,
|
|
639
|
+
turnOutput: taskCtx.completionSummary,
|
|
640
|
+
}).catch((err) => ({
|
|
641
|
+
verdict: "escalate",
|
|
642
|
+
summary: err instanceof Error
|
|
643
|
+
? `Validation failed: ${err.message}`
|
|
644
|
+
: `Validation failed: ${String(err)}`,
|
|
645
|
+
followUpPrompt: undefined,
|
|
646
|
+
reportPath: "",
|
|
647
|
+
artifacts: [],
|
|
648
|
+
}));
|
|
649
|
+
for (const artifact of validation.artifacts) {
|
|
650
|
+
await ctx.taskRegistry.recordArtifact({
|
|
651
|
+
threadId: taskCtx.threadId,
|
|
652
|
+
sessionId,
|
|
653
|
+
artifactType: artifact.artifactType,
|
|
654
|
+
title: artifact.title,
|
|
655
|
+
path: artifact.path ?? null,
|
|
656
|
+
uri: artifact.uri ?? null,
|
|
657
|
+
mimeType: artifact.mimeType ?? null,
|
|
658
|
+
metadata: artifact.metadata ?? {},
|
|
659
|
+
});
|
|
660
|
+
if (taskCtx.taskNodeId && verifierJob) {
|
|
661
|
+
await ctx.taskRegistry.recordTaskEvidence({
|
|
662
|
+
threadId: taskCtx.threadId,
|
|
663
|
+
nodeId: taskCtx.taskNodeId,
|
|
664
|
+
sessionId,
|
|
665
|
+
verifierJobId: verifierJob.id,
|
|
666
|
+
evidenceType: artifact.artifactType,
|
|
667
|
+
title: artifact.title,
|
|
668
|
+
summary: validation.summary,
|
|
669
|
+
path: artifact.path ?? null,
|
|
670
|
+
uri: artifact.uri ?? null,
|
|
671
|
+
content: artifact.metadata &&
|
|
672
|
+
typeof artifact.metadata === "object" &&
|
|
673
|
+
!Array.isArray(artifact.metadata)
|
|
674
|
+
? artifact.metadata
|
|
675
|
+
: {},
|
|
676
|
+
metadata: {
|
|
677
|
+
mimeType: artifact.mimeType ?? null,
|
|
678
|
+
},
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
if (validation.verdict !== "pass") {
|
|
683
|
+
const followUpPrompt = validation.followUpPrompt?.trim() ||
|
|
684
|
+
`Validation found the task incomplete. Continue working until this is resolved:\n\n${validation.summary}`;
|
|
685
|
+
const nextStatus = validation.verdict === "escalate" ? "blocked" : "active";
|
|
686
|
+
taskCtx.status = nextStatus;
|
|
687
|
+
await Promise.all([
|
|
688
|
+
ctx.syncTaskContext(taskCtx),
|
|
689
|
+
verifierJob
|
|
690
|
+
? ctx.taskRegistry.updateTaskVerifierJob(verifierJob.id, {
|
|
691
|
+
status: "failed",
|
|
692
|
+
completedAt: new Date().toISOString(),
|
|
693
|
+
metadata: {
|
|
694
|
+
verdict: validation.verdict,
|
|
695
|
+
summary: validation.summary,
|
|
696
|
+
},
|
|
697
|
+
})
|
|
698
|
+
: Promise.resolve(),
|
|
699
|
+
taskCtx.taskNodeId && verifierJob
|
|
700
|
+
? ctx.taskRegistry.recordTaskEvidence({
|
|
701
|
+
threadId: taskCtx.threadId,
|
|
702
|
+
nodeId: taskCtx.taskNodeId,
|
|
703
|
+
sessionId,
|
|
704
|
+
verifierJobId: verifierJob.id,
|
|
705
|
+
evidenceType: "validation_summary",
|
|
706
|
+
title: `Validation ${validation.verdict} for ${taskCtx.label}`,
|
|
707
|
+
summary: validation.summary,
|
|
708
|
+
content: {
|
|
709
|
+
followUpPrompt: validation.verdict === "revise" ? followUpPrompt : null,
|
|
710
|
+
reportPath: validation.reportPath || null,
|
|
711
|
+
verdict: validation.verdict,
|
|
712
|
+
},
|
|
713
|
+
metadata: {
|
|
714
|
+
source: "task-validation",
|
|
715
|
+
},
|
|
716
|
+
})
|
|
717
|
+
: Promise.resolve(),
|
|
718
|
+
ctx.taskRegistry.appendEvent({
|
|
719
|
+
threadId: taskCtx.threadId,
|
|
720
|
+
sessionId,
|
|
721
|
+
eventType: "validation_failed",
|
|
722
|
+
summary: `Validation did not approve "${taskCtx.label}"`,
|
|
723
|
+
data: {
|
|
724
|
+
verdict: validation.verdict,
|
|
725
|
+
summary: validation.summary,
|
|
726
|
+
followUpPrompt: validation.verdict === "revise" ? followUpPrompt : null,
|
|
727
|
+
reportPath: validation.reportPath || null,
|
|
728
|
+
},
|
|
729
|
+
}),
|
|
730
|
+
]);
|
|
731
|
+
if (validation.verdict === "revise") {
|
|
732
|
+
await ctx.ptyService.sendToSession(sessionId, followUpPrompt);
|
|
733
|
+
taskCtx.lastInputSentAt = Date.now();
|
|
734
|
+
await ctx.syncTaskContext(taskCtx);
|
|
735
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Validation asked the agent to continue: ${validation.summary}`, "coding-agent");
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
ctx.broadcast({
|
|
739
|
+
type: "escalation",
|
|
740
|
+
sessionId,
|
|
741
|
+
timestamp: Date.now(),
|
|
742
|
+
data: {
|
|
743
|
+
reason: "validation_escalation",
|
|
744
|
+
summary: validation.summary,
|
|
745
|
+
},
|
|
746
|
+
});
|
|
747
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Validation needs human review: ${validation.summary}`, "coding-agent");
|
|
748
|
+
}
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
taskCtx.status = "completed";
|
|
752
|
+
await Promise.all([
|
|
753
|
+
ctx.syncTaskContext(taskCtx),
|
|
754
|
+
verifierJob
|
|
755
|
+
? ctx.taskRegistry.updateTaskVerifierJob(verifierJob.id, {
|
|
756
|
+
status: "passed",
|
|
757
|
+
completedAt: new Date().toISOString(),
|
|
758
|
+
metadata: {
|
|
759
|
+
summary: validation.summary,
|
|
760
|
+
reportPath: validation.reportPath || null,
|
|
761
|
+
},
|
|
762
|
+
})
|
|
763
|
+
: Promise.resolve(),
|
|
764
|
+
taskCtx.taskNodeId && verifierJob
|
|
765
|
+
? ctx.taskRegistry.recordTaskEvidence({
|
|
766
|
+
threadId: taskCtx.threadId,
|
|
767
|
+
nodeId: taskCtx.taskNodeId,
|
|
768
|
+
sessionId,
|
|
769
|
+
verifierJobId: verifierJob.id,
|
|
770
|
+
evidenceType: "validation_summary",
|
|
771
|
+
title: `Validation passed for ${taskCtx.label}`,
|
|
772
|
+
summary: validation.summary,
|
|
773
|
+
content: {
|
|
774
|
+
completionSummary: taskCtx.completionSummary,
|
|
775
|
+
reportPath: validation.reportPath || null,
|
|
776
|
+
},
|
|
777
|
+
metadata: {
|
|
778
|
+
source: "task-validation",
|
|
779
|
+
},
|
|
780
|
+
})
|
|
781
|
+
: Promise.resolve(),
|
|
782
|
+
ctx.taskRegistry.updateThreadSummary(taskCtx.threadId, taskCtx.completionSummary),
|
|
783
|
+
ctx.taskRegistry.appendEvent({
|
|
784
|
+
threadId: taskCtx.threadId,
|
|
785
|
+
sessionId,
|
|
786
|
+
eventType: "validation_passed",
|
|
787
|
+
summary: `Validation passed for "${taskCtx.label}"`,
|
|
788
|
+
data: {
|
|
789
|
+
summary: validation.summary,
|
|
790
|
+
reportPath: validation.reportPath || null,
|
|
791
|
+
},
|
|
792
|
+
}),
|
|
793
|
+
ctx.taskRegistry.appendEvent({
|
|
794
|
+
threadId: taskCtx.threadId,
|
|
795
|
+
sessionId,
|
|
796
|
+
eventType: "task_status_changed",
|
|
797
|
+
summary: `Task "${taskCtx.label}" completed`,
|
|
798
|
+
data: {
|
|
799
|
+
status: "completed",
|
|
800
|
+
completionSummary: taskCtx.completionSummary,
|
|
801
|
+
validationSummary: validation.summary,
|
|
802
|
+
},
|
|
803
|
+
}),
|
|
804
|
+
]);
|
|
805
|
+
// Log to persistent history (non-blocking but observed)
|
|
806
|
+
ctx.history
|
|
807
|
+
?.append({
|
|
808
|
+
timestamp: Date.now(),
|
|
809
|
+
type: "task_completed",
|
|
810
|
+
sessionId,
|
|
811
|
+
label: taskCtx.label,
|
|
812
|
+
agentType: taskCtx.agentType,
|
|
813
|
+
repo: taskCtx.repo,
|
|
814
|
+
workdir: taskCtx.workdir,
|
|
815
|
+
completionSummary: taskCtx.completionSummary,
|
|
816
|
+
validationSummary: validation.summary,
|
|
817
|
+
})
|
|
818
|
+
.catch((err) => {
|
|
819
|
+
ctx.log(`Failed to persist task completion for "${taskCtx.label}" (${sessionId}): ${err}`);
|
|
820
|
+
});
|
|
821
|
+
ctx.broadcast({
|
|
822
|
+
type: "task_complete",
|
|
823
|
+
sessionId,
|
|
824
|
+
timestamp: Date.now(),
|
|
825
|
+
data: {
|
|
826
|
+
reasoning: decision.reasoning,
|
|
827
|
+
validationSummary: validation.summary,
|
|
828
|
+
},
|
|
829
|
+
});
|
|
830
|
+
ctx.sendChatMessage(taskCtx.completionSummary
|
|
831
|
+
? `Finished "${taskCtx.label}".\n\n${taskCtx.completionSummary}`
|
|
832
|
+
: `Finished "${taskCtx.label}".`, "coding-agent");
|
|
833
|
+
// Force-kill the session — task is done, nothing to save.
|
|
834
|
+
// SIGKILL ensures the PTY and all child processes exit immediately,
|
|
835
|
+
// preventing orphaned workspace processes.
|
|
836
|
+
ctx.ptyService.stopSession(sessionId, /* force */ true).catch((err) => {
|
|
837
|
+
ctx.log(`Failed to stop session after LLM-detected completion: ${err}`);
|
|
838
|
+
});
|
|
839
|
+
// Check if all tasks are now done — send a swarm-wide summary if so
|
|
840
|
+
checkAllTasksComplete(ctx);
|
|
841
|
+
break;
|
|
842
|
+
}
|
|
843
|
+
case "escalate":
|
|
844
|
+
ctx.broadcast({
|
|
845
|
+
type: "escalation",
|
|
846
|
+
sessionId,
|
|
847
|
+
timestamp: Date.now(),
|
|
848
|
+
data: {
|
|
849
|
+
reasoning: decision.reasoning,
|
|
850
|
+
},
|
|
851
|
+
});
|
|
852
|
+
break;
|
|
853
|
+
case "ignore":
|
|
854
|
+
// No action needed
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
// ─── Event Handlers ───
|
|
859
|
+
/**
|
|
860
|
+
* Handle a "blocked" session event — auto-resolved, escalated, or routed to decision loop.
|
|
861
|
+
*/
|
|
862
|
+
export async function handleBlocked(ctx, sessionId, taskCtx, data) {
|
|
863
|
+
// Event data from pty-init: { promptInfo: BlockingPromptInfo, autoResponded: boolean }
|
|
864
|
+
const eventData = data;
|
|
865
|
+
// Extract prompt text from promptInfo (the actual blocking prompt info object)
|
|
866
|
+
const promptText = eventData.promptInfo?.prompt ?? eventData.promptInfo?.instructions ?? "";
|
|
867
|
+
if (isLoginRequiredPrompt(promptText, eventData.promptInfo?.type)) {
|
|
868
|
+
const instructions = extractLoginInstructions(eventData);
|
|
869
|
+
const url = typeof eventData.promptInfo?.url === "string" &&
|
|
870
|
+
eventData.promptInfo.url.trim().length > 0
|
|
871
|
+
? eventData.promptInfo.url.trim()
|
|
872
|
+
: null;
|
|
873
|
+
taskCtx.status = "blocked";
|
|
874
|
+
await ctx.syncTaskContext(taskCtx);
|
|
875
|
+
await ctx.recordDecision(taskCtx, {
|
|
876
|
+
timestamp: Date.now(),
|
|
877
|
+
event: "blocked",
|
|
878
|
+
promptText,
|
|
879
|
+
decision: "escalate",
|
|
880
|
+
reasoning: "Provider login is required before the task agent can continue.",
|
|
881
|
+
});
|
|
882
|
+
await ctx.taskRegistry.appendEvent({
|
|
883
|
+
threadId: taskCtx.threadId,
|
|
884
|
+
sessionId,
|
|
885
|
+
eventType: "task_status_changed",
|
|
886
|
+
summary: `Task "${taskCtx.label}" is waiting for login`,
|
|
887
|
+
data: {
|
|
888
|
+
status: "blocked",
|
|
889
|
+
reason: "login_required",
|
|
890
|
+
instructions: instructions || null,
|
|
891
|
+
url,
|
|
892
|
+
promptType: eventData.promptInfo?.type ?? null,
|
|
893
|
+
},
|
|
894
|
+
});
|
|
895
|
+
ctx.broadcast({
|
|
896
|
+
type: "login_required",
|
|
897
|
+
sessionId,
|
|
898
|
+
timestamp: Date.now(),
|
|
899
|
+
data: {
|
|
900
|
+
instructions: instructions || null,
|
|
901
|
+
url,
|
|
902
|
+
prompt: promptText,
|
|
903
|
+
promptType: eventData.promptInfo?.type,
|
|
904
|
+
},
|
|
905
|
+
});
|
|
906
|
+
const loginParts = [
|
|
907
|
+
`"${taskCtx.label}" needs a provider login before it can continue.`,
|
|
908
|
+
instructions || "",
|
|
909
|
+
url ? `Login link: ${url}` : "",
|
|
910
|
+
].filter(Boolean);
|
|
911
|
+
ctx.sendChatMessage(loginParts.join(" "), "coding-agent");
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
// Auto-responded by rules — log and broadcast, no LLM needed
|
|
915
|
+
if (eventData.autoResponded) {
|
|
916
|
+
// Safety: check if the auto-approved prompt accessed out-of-scope paths.
|
|
917
|
+
// The approval already happened in pty-manager, but we can stop the session
|
|
918
|
+
// and alert the user to prevent further damage.
|
|
919
|
+
if (isOutOfScopeAccess(promptText, taskCtx.workdir)) {
|
|
920
|
+
taskCtx.status = "error";
|
|
921
|
+
await ctx.recordDecision(taskCtx, {
|
|
922
|
+
timestamp: Date.now(),
|
|
923
|
+
event: "blocked",
|
|
924
|
+
promptText,
|
|
925
|
+
decision: "escalate",
|
|
926
|
+
reasoning: `SECURITY: Auto-response approved access outside workspace (${taskCtx.workdir}). Session stopped.`,
|
|
927
|
+
});
|
|
928
|
+
ctx.broadcast({
|
|
929
|
+
type: "escalation",
|
|
930
|
+
sessionId,
|
|
931
|
+
timestamp: Date.now(),
|
|
932
|
+
data: {
|
|
933
|
+
prompt: promptText,
|
|
934
|
+
reason: "out_of_scope_auto_approved",
|
|
935
|
+
workdir: taskCtx.workdir,
|
|
936
|
+
},
|
|
937
|
+
});
|
|
938
|
+
ctx.sendChatMessage(`[${taskCtx.label}] WARNING: Auto-approved access to path outside workspace (${taskCtx.workdir}). ` +
|
|
939
|
+
`Prompt: "${promptText.slice(0, 150)}". Stopping session for safety.`, "coding-agent");
|
|
940
|
+
// Force-kill the session to prevent further out-of-scope access
|
|
941
|
+
ctx.ptyService?.stopSession(sessionId, /* force */ true).catch((err) => {
|
|
942
|
+
ctx.log(`Failed to stop session after out-of-scope auto-approval: ${err}`);
|
|
943
|
+
});
|
|
944
|
+
return;
|
|
945
|
+
}
|
|
946
|
+
taskCtx.autoResolvedCount++;
|
|
947
|
+
await ctx.recordDecision(taskCtx, {
|
|
948
|
+
timestamp: Date.now(),
|
|
949
|
+
event: "blocked",
|
|
950
|
+
promptText,
|
|
951
|
+
decision: "auto_resolved",
|
|
952
|
+
reasoning: "Handled by auto-response rules",
|
|
953
|
+
});
|
|
954
|
+
ctx.broadcast({
|
|
955
|
+
type: "blocked_auto_resolved",
|
|
956
|
+
sessionId,
|
|
957
|
+
timestamp: Date.now(),
|
|
958
|
+
data: {
|
|
959
|
+
prompt: promptText,
|
|
960
|
+
promptType: eventData.promptInfo?.type,
|
|
961
|
+
autoResolvedCount: taskCtx.autoResolvedCount,
|
|
962
|
+
},
|
|
963
|
+
});
|
|
964
|
+
// Log auto-approvals server-side only — don't persist to chat.
|
|
965
|
+
const count = taskCtx.autoResolvedCount;
|
|
966
|
+
if (count <= 2 || count % 5 === 0) {
|
|
967
|
+
const excerpt = promptText.length > 120 ? `${promptText.slice(0, 120)}...` : promptText;
|
|
968
|
+
ctx.log(`[${taskCtx.label}] Approved: ${excerpt}`);
|
|
969
|
+
}
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
const adapterSuggestedResponse = typeof eventData.promptInfo?.suggestedResponse === "string" &&
|
|
973
|
+
eventData.promptInfo.suggestedResponse.trim().length > 0
|
|
974
|
+
? eventData.promptInfo.suggestedResponse.trim()
|
|
975
|
+
: eventData.promptInfo?.canAutoRespond &&
|
|
976
|
+
eventData.promptInfo?.type === "permission"
|
|
977
|
+
? "keys:enter"
|
|
978
|
+
: undefined;
|
|
979
|
+
const inferredPromptResponse = inferRoutinePromptResponse(promptText, eventData.promptInfo?.type);
|
|
980
|
+
const routineSuggestedResponse = adapterSuggestedResponse ?? inferredPromptResponse?.suggestedResponse;
|
|
981
|
+
if (ctx.getSupervisionLevel() === "autonomous" &&
|
|
982
|
+
(eventData.promptInfo?.canAutoRespond || inferredPromptResponse) &&
|
|
983
|
+
routineSuggestedResponse) {
|
|
984
|
+
const fastDecision = decisionFromSuggestedResponse(routineSuggestedResponse, inferredPromptResponse?.reasoning);
|
|
985
|
+
taskCtx.autoResolvedCount++;
|
|
986
|
+
await ctx.recordDecision(taskCtx, {
|
|
987
|
+
timestamp: Date.now(),
|
|
988
|
+
event: "blocked",
|
|
989
|
+
promptText,
|
|
990
|
+
decision: "auto_resolved",
|
|
991
|
+
response: formatDecisionResponse(fastDecision),
|
|
992
|
+
reasoning: fastDecision.reasoning,
|
|
993
|
+
});
|
|
994
|
+
ctx.broadcast({
|
|
995
|
+
type: "blocked_auto_resolved",
|
|
996
|
+
sessionId,
|
|
997
|
+
timestamp: Date.now(),
|
|
998
|
+
data: {
|
|
999
|
+
prompt: promptText,
|
|
1000
|
+
promptType: eventData.promptInfo?.type,
|
|
1001
|
+
autoResolvedCount: taskCtx.autoResolvedCount,
|
|
1002
|
+
strategy: "adapter_suggested_response",
|
|
1003
|
+
},
|
|
1004
|
+
});
|
|
1005
|
+
await executeDecision(ctx, sessionId, fastDecision);
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
// Deduplicate: if an LLM decision is already in-flight for this session
|
|
1009
|
+
// AND the prompt text matches the one already being handled, skip.
|
|
1010
|
+
// TUI re-renders fire the same prompt many times; a *different* prompt
|
|
1011
|
+
// (theoretically possible if the agent resolves one prompt and immediately
|
|
1012
|
+
// hits another) should not be dropped.
|
|
1013
|
+
const promptFingerprint = promptText.slice(0, 200);
|
|
1014
|
+
if (ctx.inFlightDecisions.has(sessionId)) {
|
|
1015
|
+
if (ctx.lastBlockedPromptFingerprint.get(sessionId) === promptFingerprint) {
|
|
1016
|
+
ctx.log(`Skipping duplicate blocked event for ${taskCtx.label} (decision in-flight, same prompt)`);
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
// Different prompt — buffer it so it's replayed after the current decision completes.
|
|
1020
|
+
ctx.log(`New blocked prompt for ${taskCtx.label} while decision in-flight — buffering`);
|
|
1021
|
+
ctx.pendingBlocked.set(sessionId, data);
|
|
1022
|
+
ctx.lastBlockedPromptFingerprint.set(sessionId, promptFingerprint);
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
ctx.lastBlockedPromptFingerprint.set(sessionId, promptFingerprint);
|
|
1026
|
+
taskCtx.status = "blocked";
|
|
1027
|
+
await ctx.syncTaskContext(taskCtx);
|
|
1028
|
+
// Broadcast that the agent is blocked (for all supervision levels)
|
|
1029
|
+
ctx.broadcast({
|
|
1030
|
+
type: "blocked",
|
|
1031
|
+
sessionId,
|
|
1032
|
+
timestamp: Date.now(),
|
|
1033
|
+
data: {
|
|
1034
|
+
prompt: promptText,
|
|
1035
|
+
promptType: eventData.promptInfo?.type,
|
|
1036
|
+
supervisionLevel: ctx.getSupervisionLevel(),
|
|
1037
|
+
},
|
|
1038
|
+
});
|
|
1039
|
+
// Safety check: escalate after too many consecutive auto-responses
|
|
1040
|
+
if (taskCtx.autoResolvedCount >= MAX_AUTO_RESPONSES) {
|
|
1041
|
+
await ctx.recordDecision(taskCtx, {
|
|
1042
|
+
timestamp: Date.now(),
|
|
1043
|
+
event: "blocked",
|
|
1044
|
+
promptText,
|
|
1045
|
+
decision: "escalate",
|
|
1046
|
+
reasoning: `Escalating after ${MAX_AUTO_RESPONSES} consecutive auto-responses`,
|
|
1047
|
+
});
|
|
1048
|
+
ctx.broadcast({
|
|
1049
|
+
type: "escalation",
|
|
1050
|
+
sessionId,
|
|
1051
|
+
timestamp: Date.now(),
|
|
1052
|
+
data: {
|
|
1053
|
+
prompt: promptText,
|
|
1054
|
+
reason: "max_auto_responses_exceeded",
|
|
1055
|
+
},
|
|
1056
|
+
});
|
|
1057
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Paused for your attention after ${MAX_AUTO_RESPONSES} consecutive automatic approvals. Prompt: ${truncateForUser(promptText, 180)}`, "coding-agent");
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
// Route based on supervision level
|
|
1061
|
+
switch (ctx.getSupervisionLevel()) {
|
|
1062
|
+
case "autonomous":
|
|
1063
|
+
await handleAutonomousDecision(ctx, sessionId, taskCtx, promptText, "", eventData.promptInfo?.type);
|
|
1064
|
+
break;
|
|
1065
|
+
case "confirm":
|
|
1066
|
+
await handleConfirmDecision(ctx, sessionId, taskCtx, promptText, "", eventData.promptInfo?.type);
|
|
1067
|
+
break;
|
|
1068
|
+
case "notify":
|
|
1069
|
+
// Notify mode — broadcast only, no action
|
|
1070
|
+
await ctx.recordDecision(taskCtx, {
|
|
1071
|
+
timestamp: Date.now(),
|
|
1072
|
+
event: "blocked",
|
|
1073
|
+
promptText,
|
|
1074
|
+
decision: "escalate",
|
|
1075
|
+
reasoning: "Supervision level is notify — broadcasting only",
|
|
1076
|
+
});
|
|
1077
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Waiting on a blocked prompt: ${truncateForUser(promptText, 180)}`, "coding-agent");
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
// ─── Turn Completion Assessment ───
|
|
1082
|
+
/**
|
|
1083
|
+
* Handle a turn completion event. Instead of immediately stopping the session,
|
|
1084
|
+
* ask the LLM whether the overall task is done or the agent needs more turns.
|
|
1085
|
+
*/
|
|
1086
|
+
export async function handleTurnComplete(ctx, sessionId, taskCtx, data) {
|
|
1087
|
+
// Accept both "active" and "tool_running" — subagents using tools sit in
|
|
1088
|
+
// tool_running almost continuously, and we still want to run validation
|
|
1089
|
+
// when they hit task_complete. Only bail on truly terminal/blocked states.
|
|
1090
|
+
if (taskCtx.status !== "active" && taskCtx.status !== "tool_running") {
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
// If another decision (e.g. handleBlocked) is running for this session,
|
|
1094
|
+
// buffer the task_complete event so it's processed when the lock releases.
|
|
1095
|
+
// Without this, task_complete events are silently lost and sessions hang.
|
|
1096
|
+
if (ctx.inFlightDecisions.has(sessionId)) {
|
|
1097
|
+
ctx.log(`Buffering turn-complete for ${sessionId} (in-flight decision running)`);
|
|
1098
|
+
ctx.pendingTurnComplete.set(sessionId, data);
|
|
1099
|
+
return;
|
|
1100
|
+
}
|
|
1101
|
+
// Suppress turn-complete events during the post-send cooldown period.
|
|
1102
|
+
// After the coordinator sends input, the agent needs time to process it.
|
|
1103
|
+
// Without this, stall-classified "task_complete" events from stale output
|
|
1104
|
+
// trigger cascading follow-ups before the agent starts responding.
|
|
1105
|
+
if (taskCtx.lastInputSentAt) {
|
|
1106
|
+
const elapsed = Date.now() - taskCtx.lastInputSentAt;
|
|
1107
|
+
if (elapsed < POST_SEND_COOLDOWN_MS) {
|
|
1108
|
+
ctx.pendingTurnComplete.set(sessionId, data);
|
|
1109
|
+
if (!deferredTurnCompleteTimers.has(sessionId)) {
|
|
1110
|
+
const delayMs = POST_SEND_COOLDOWN_MS - elapsed + 50;
|
|
1111
|
+
const timer = setTimeout(() => {
|
|
1112
|
+
deferredTurnCompleteTimers.delete(sessionId);
|
|
1113
|
+
const pendingData = ctx.pendingTurnComplete.get(sessionId);
|
|
1114
|
+
if (!pendingData)
|
|
1115
|
+
return;
|
|
1116
|
+
const currentTask = ctx.tasks.get(sessionId);
|
|
1117
|
+
if (!currentTask ||
|
|
1118
|
+
(currentTask.status !== "active" &&
|
|
1119
|
+
currentTask.status !== "tool_running")) {
|
|
1120
|
+
ctx.pendingTurnComplete.delete(sessionId);
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
void handleTurnComplete(ctx, sessionId, currentTask, pendingData).catch((err) => {
|
|
1124
|
+
ctx.log(`Deferred turn-complete replay failed for ${sessionId}: ${err}`);
|
|
1125
|
+
});
|
|
1126
|
+
}, delayMs);
|
|
1127
|
+
deferredTurnCompleteTimers.set(sessionId, timer);
|
|
1128
|
+
}
|
|
1129
|
+
ctx.log(`Suppressing turn-complete for "${taskCtx.label}" — ` +
|
|
1130
|
+
`${Math.round(elapsed / 1000)}s since last input (cooldown ${POST_SEND_COOLDOWN_MS / 1000}s)`);
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
const deferredTimer = deferredTurnCompleteTimers.get(sessionId);
|
|
1135
|
+
if (deferredTimer) {
|
|
1136
|
+
clearTimeout(deferredTimer);
|
|
1137
|
+
deferredTurnCompleteTimers.delete(sessionId);
|
|
1138
|
+
}
|
|
1139
|
+
ctx.pendingTurnComplete.delete(sessionId);
|
|
1140
|
+
ctx.inFlightDecisions.add(sessionId);
|
|
1141
|
+
try {
|
|
1142
|
+
ctx.log(`Turn complete for "${taskCtx.label}" — assessing whether task is done`);
|
|
1143
|
+
// Get the turn output — prefer the captured response, fall back to PTY output
|
|
1144
|
+
const rawResponse = data.response ?? "";
|
|
1145
|
+
let turnOutput = cleanForChat(rawResponse);
|
|
1146
|
+
if (!turnOutput) {
|
|
1147
|
+
const raw = await fetchRecentOutput(ctx, sessionId);
|
|
1148
|
+
turnOutput = cleanForChat(raw);
|
|
1149
|
+
}
|
|
1150
|
+
// Fast-path: if the turn output contains a PR URL or "Created pull request",
|
|
1151
|
+
// the task is done — skip the LLM assessment entirely. The LLM (especially
|
|
1152
|
+
// Gemini Flash) tends to ignore "do not verify" instructions and sends
|
|
1153
|
+
// unnecessary verification follow-ups, adding 2-5 extra rounds per agent.
|
|
1154
|
+
// Only match explicit PR creation signals — not references to existing PRs.
|
|
1155
|
+
const PR_CREATED_RE = /(?:Created|Opened)\s+pull\s+request\s+#?\d+|gh\s+pr\s+create/i;
|
|
1156
|
+
if (PR_CREATED_RE.test(turnOutput)) {
|
|
1157
|
+
const fastDecision = {
|
|
1158
|
+
action: "complete",
|
|
1159
|
+
reasoning: "PR detected in turn output — task complete.",
|
|
1160
|
+
};
|
|
1161
|
+
ctx.log(`Turn assessment for "${taskCtx.label}": complete (fast-path: PR detected in output)`);
|
|
1162
|
+
await ctx.recordDecision(taskCtx, {
|
|
1163
|
+
timestamp: Date.now(),
|
|
1164
|
+
event: "turn_complete",
|
|
1165
|
+
promptText: "Agent finished a turn",
|
|
1166
|
+
decision: "complete",
|
|
1167
|
+
response: "",
|
|
1168
|
+
reasoning: fastDecision.reasoning,
|
|
1169
|
+
});
|
|
1170
|
+
recordKeyDecision(ctx, taskCtx.label, fastDecision);
|
|
1171
|
+
ctx.broadcast({
|
|
1172
|
+
type: "turn_assessment",
|
|
1173
|
+
sessionId,
|
|
1174
|
+
timestamp: Date.now(),
|
|
1175
|
+
data: { action: "complete", reasoning: fastDecision.reasoning },
|
|
1176
|
+
});
|
|
1177
|
+
await executeDecision(ctx, sessionId, fastDecision);
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
// Turn completions always use the fast small-LLM path.
|
|
1181
|
+
// The assessment is a structured complete/continue/escalate decision
|
|
1182
|
+
// that doesn't benefit from the full Milaidy pipeline, and routing
|
|
1183
|
+
// through it risks hangs that block the inFlightDecisions lock.
|
|
1184
|
+
let decision = null;
|
|
1185
|
+
const decisionFromPipeline = false;
|
|
1186
|
+
const prompt = buildTurnCompletePrompt(toContextSummary(taskCtx), turnOutput, toDecisionHistory(taskCtx), collectSiblings(ctx, sessionId), ctx.sharedDecisions, ctx.getSwarmContext());
|
|
1187
|
+
try {
|
|
1188
|
+
const result = await withTrajectoryContext(ctx.runtime, {
|
|
1189
|
+
source: "orchestrator",
|
|
1190
|
+
decisionType: "turn-complete",
|
|
1191
|
+
sessionId,
|
|
1192
|
+
taskLabel: taskCtx.label,
|
|
1193
|
+
repo: taskCtx.repo,
|
|
1194
|
+
workdir: taskCtx.workdir,
|
|
1195
|
+
originalTask: taskCtx.originalTask,
|
|
1196
|
+
}, () => ctx.runtime.useModel(ModelType.TEXT_SMALL, { prompt }));
|
|
1197
|
+
decision = parseCoordinationResponse(result);
|
|
1198
|
+
}
|
|
1199
|
+
catch (err) {
|
|
1200
|
+
ctx.log(`Turn-complete LLM call failed: ${err}`);
|
|
1201
|
+
}
|
|
1202
|
+
if (!decision) {
|
|
1203
|
+
// Both paths failed — escalate so a human can decide rather than
|
|
1204
|
+
// prematurely completing unfinished work on a transient LLM failure.
|
|
1205
|
+
ctx.log(`Turn-complete for "${taskCtx.label}": all decision paths failed — escalating`);
|
|
1206
|
+
decision = {
|
|
1207
|
+
action: "escalate",
|
|
1208
|
+
reasoning: "All decision paths returned invalid response — escalating for human review",
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
// Log the decision
|
|
1212
|
+
ctx.log(`Turn assessment for "${taskCtx.label}": ${decision.action}${decision.action === "respond"
|
|
1213
|
+
? ` → "${(decision.response ?? "").slice(0, 80)}"`
|
|
1214
|
+
: ""} — ${decision.reasoning.slice(0, 120)}`);
|
|
1215
|
+
// Record
|
|
1216
|
+
await ctx.recordDecision(taskCtx, {
|
|
1217
|
+
timestamp: Date.now(),
|
|
1218
|
+
event: "turn_complete",
|
|
1219
|
+
promptText: "Agent finished a turn",
|
|
1220
|
+
decision: decision.action,
|
|
1221
|
+
response: formatDecisionResponse(decision),
|
|
1222
|
+
reasoning: decision.reasoning,
|
|
1223
|
+
});
|
|
1224
|
+
// Layer 2: capture significant decisions for cross-agent sharing
|
|
1225
|
+
recordKeyDecision(ctx, taskCtx.label, decision);
|
|
1226
|
+
ctx.broadcast({
|
|
1227
|
+
type: "turn_assessment",
|
|
1228
|
+
sessionId,
|
|
1229
|
+
timestamp: Date.now(),
|
|
1230
|
+
data: {
|
|
1231
|
+
action: decision.action,
|
|
1232
|
+
reasoning: decision.reasoning,
|
|
1233
|
+
},
|
|
1234
|
+
});
|
|
1235
|
+
if (ctx.pendingBlocked.has(sessionId)) {
|
|
1236
|
+
ctx.log(`Deferring turn assessment execution for "${taskCtx.label}" because a newer blocked prompt arrived during assessment`);
|
|
1237
|
+
ctx.pendingTurnComplete.set(sessionId, data);
|
|
1238
|
+
return;
|
|
1239
|
+
}
|
|
1240
|
+
// Send chat message for small-LLM decisions only.
|
|
1241
|
+
// When Milaidy's pipeline handled it, she already spoke via WS broadcast.
|
|
1242
|
+
if (!decisionFromPipeline) {
|
|
1243
|
+
if (decision.action === "respond") {
|
|
1244
|
+
const instruction = decision.response ?? "";
|
|
1245
|
+
const preview = instruction.length > 120
|
|
1246
|
+
? `${instruction.slice(0, 120)}...`
|
|
1247
|
+
: instruction;
|
|
1248
|
+
ctx.log(`[${taskCtx.label}] Turn done, continuing: ${preview}`);
|
|
1249
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Continuing work: ${preview || "sent follow-up instructions."}`, "coding-agent");
|
|
1250
|
+
}
|
|
1251
|
+
else if (decision.action === "escalate") {
|
|
1252
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Turn finished — needs your attention: ${decision.reasoning}`, "coding-agent");
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
// "complete" chat message is handled by executeDecision
|
|
1256
|
+
await executeDecision(ctx, sessionId, decision);
|
|
1257
|
+
}
|
|
1258
|
+
finally {
|
|
1259
|
+
ctx.inFlightDecisions.delete(sessionId);
|
|
1260
|
+
await drainPendingBlocked(ctx, sessionId);
|
|
1261
|
+
await drainPendingTurnComplete(ctx, sessionId);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
// ─── Autonomous / Confirm Decision Flows ───
|
|
1265
|
+
/**
|
|
1266
|
+
* Handle an autonomous decision for a blocked session — call the LLM and execute immediately.
|
|
1267
|
+
*/
|
|
1268
|
+
export async function handleAutonomousDecision(ctx, sessionId, taskCtx, promptText, recentOutput, promptType) {
|
|
1269
|
+
// Debounce: skip if decision already in-flight for this session
|
|
1270
|
+
if (ctx.inFlightDecisions.has(sessionId)) {
|
|
1271
|
+
ctx.log(`Skipping duplicate decision for ${sessionId} (in-flight)`);
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1274
|
+
ctx.inFlightDecisions.add(sessionId);
|
|
1275
|
+
try {
|
|
1276
|
+
// Get recent output from PTY if not provided
|
|
1277
|
+
let output = recentOutput;
|
|
1278
|
+
if (!output) {
|
|
1279
|
+
output = await fetchRecentOutput(ctx, sessionId);
|
|
1280
|
+
}
|
|
1281
|
+
// Triage: route to small LLM (routine) or Milaidy pipeline (creative).
|
|
1282
|
+
// Track source so we skip duplicate chat messages when Milaidy already spoke.
|
|
1283
|
+
const agentDecisionCb = ctx.getAgentDecisionCallback();
|
|
1284
|
+
let decision = null;
|
|
1285
|
+
let decisionFromPipeline = false;
|
|
1286
|
+
const triageCtx = {
|
|
1287
|
+
eventType: "blocked",
|
|
1288
|
+
promptText,
|
|
1289
|
+
promptType,
|
|
1290
|
+
recentOutput: output,
|
|
1291
|
+
originalTask: taskCtx.originalTask,
|
|
1292
|
+
};
|
|
1293
|
+
const tier = agentDecisionCb
|
|
1294
|
+
? await classifyEventTier(ctx.runtime, triageCtx, ctx.log)
|
|
1295
|
+
: "routine"; // No pipeline → always small LLM
|
|
1296
|
+
if (tier === "routine") {
|
|
1297
|
+
decision = await makeCoordinationDecision(ctx, taskCtx, promptText, output);
|
|
1298
|
+
}
|
|
1299
|
+
else {
|
|
1300
|
+
// Creative — try Milaidy pipeline, fall back to small LLM
|
|
1301
|
+
if (agentDecisionCb) {
|
|
1302
|
+
const eventMessage = buildBlockedEventMessage(toContextSummary(taskCtx), promptText, output, toDecisionHistory(taskCtx), collectSiblings(ctx, sessionId), ctx.sharedDecisions, ctx.getSwarmContext());
|
|
1303
|
+
try {
|
|
1304
|
+
decision = await withTimeout(agentDecisionCb(eventMessage, sessionId, taskCtx), DECISION_CB_TIMEOUT_MS, "agentDecisionCb");
|
|
1305
|
+
if (decision)
|
|
1306
|
+
decisionFromPipeline = true;
|
|
1307
|
+
}
|
|
1308
|
+
catch (err) {
|
|
1309
|
+
ctx.log(`Agent decision callback failed: ${err} — falling back to small LLM`);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
if (!decision) {
|
|
1313
|
+
decision = await makeCoordinationDecision(ctx, taskCtx, promptText, output);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
if (!decision) {
|
|
1317
|
+
// All decision paths returned invalid response — escalate
|
|
1318
|
+
await ctx.recordDecision(taskCtx, {
|
|
1319
|
+
timestamp: Date.now(),
|
|
1320
|
+
event: "blocked",
|
|
1321
|
+
promptText,
|
|
1322
|
+
decision: "escalate",
|
|
1323
|
+
reasoning: "All decision paths returned invalid coordination response",
|
|
1324
|
+
});
|
|
1325
|
+
ctx.broadcast({
|
|
1326
|
+
type: "escalation",
|
|
1327
|
+
sessionId,
|
|
1328
|
+
timestamp: Date.now(),
|
|
1329
|
+
data: {
|
|
1330
|
+
prompt: promptText,
|
|
1331
|
+
reason: "invalid_llm_response",
|
|
1332
|
+
},
|
|
1333
|
+
});
|
|
1334
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Needs your attention: the coordinator could not decide how to handle "${truncateForUser(promptText, 160)}".`, "coding-agent");
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
// Guard: decline + redirect if the prompt references out-of-scope paths.
|
|
1338
|
+
// Instead of stalling via escalate, tell the agent "no" and point it to the
|
|
1339
|
+
// workspace. Also notify the human in case broader access was intended.
|
|
1340
|
+
if (decision.action === "respond" &&
|
|
1341
|
+
isOutOfScopeAccess(promptText, taskCtx.workdir)) {
|
|
1342
|
+
decision = {
|
|
1343
|
+
action: "respond",
|
|
1344
|
+
response: `No — that path is outside your workspace. Use ${taskCtx.workdir} instead. Create any files or directories you need there.`,
|
|
1345
|
+
reasoning: `Declined out-of-scope access (outside ${taskCtx.workdir}) and redirected agent to workspace.`,
|
|
1346
|
+
};
|
|
1347
|
+
// Surface to human so they can grant broader access if intended
|
|
1348
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Declined out-of-scope access and redirected to workspace (${taskCtx.workdir}). If you intended broader access, send the agent an override.`, "coding-agent");
|
|
1349
|
+
}
|
|
1350
|
+
// Record the decision
|
|
1351
|
+
taskCtx.autoResolvedCount = 0;
|
|
1352
|
+
await ctx.recordDecision(taskCtx, {
|
|
1353
|
+
timestamp: Date.now(),
|
|
1354
|
+
event: "blocked",
|
|
1355
|
+
promptText,
|
|
1356
|
+
decision: decision.action,
|
|
1357
|
+
response: formatDecisionResponse(decision),
|
|
1358
|
+
reasoning: decision.reasoning,
|
|
1359
|
+
});
|
|
1360
|
+
// Layer 2: capture significant decisions for cross-agent sharing
|
|
1361
|
+
recordKeyDecision(ctx, taskCtx.label, decision);
|
|
1362
|
+
// Broadcast the decision
|
|
1363
|
+
ctx.broadcast({
|
|
1364
|
+
type: "coordination_decision",
|
|
1365
|
+
sessionId,
|
|
1366
|
+
timestamp: Date.now(),
|
|
1367
|
+
data: {
|
|
1368
|
+
action: decision.action,
|
|
1369
|
+
response: decision.response,
|
|
1370
|
+
useKeys: decision.useKeys,
|
|
1371
|
+
keys: decision.keys,
|
|
1372
|
+
reasoning: decision.reasoning,
|
|
1373
|
+
},
|
|
1374
|
+
});
|
|
1375
|
+
// Send chat message for small-LLM decisions only.
|
|
1376
|
+
// When Milaidy's pipeline handled it, she already spoke via WS broadcast.
|
|
1377
|
+
if (!decisionFromPipeline) {
|
|
1378
|
+
if (decision.action === "respond") {
|
|
1379
|
+
const actionDesc = decision.useKeys
|
|
1380
|
+
? `Sent keys: ${decision.keys?.join(", ")}`
|
|
1381
|
+
: decision.response
|
|
1382
|
+
? `Responded: ${decision.response.length > 100 ? `${decision.response.slice(0, 100)}...` : decision.response}`
|
|
1383
|
+
: "Responded";
|
|
1384
|
+
const reasonExcerpt = decision.reasoning.length > 150
|
|
1385
|
+
? `${decision.reasoning.slice(0, 150)}...`
|
|
1386
|
+
: decision.reasoning;
|
|
1387
|
+
ctx.log(`[${taskCtx.label}] ${actionDesc} — ${reasonExcerpt}`);
|
|
1388
|
+
}
|
|
1389
|
+
else if (decision.action === "escalate") {
|
|
1390
|
+
ctx.sendChatMessage(`[${taskCtx.label}] Needs your attention: ${decision.reasoning}`, "coding-agent");
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
// Execute
|
|
1394
|
+
await executeDecision(ctx, sessionId, decision);
|
|
1395
|
+
}
|
|
1396
|
+
finally {
|
|
1397
|
+
ctx.inFlightDecisions.delete(sessionId);
|
|
1398
|
+
await drainPendingBlocked(ctx, sessionId);
|
|
1399
|
+
await drainPendingTurnComplete(ctx, sessionId);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Handle a confirm-mode decision — call LLM, then queue for human approval.
|
|
1404
|
+
*/
|
|
1405
|
+
export async function handleConfirmDecision(ctx, sessionId, taskCtx, promptText, recentOutput, promptType) {
|
|
1406
|
+
// Debounce
|
|
1407
|
+
if (ctx.inFlightDecisions.has(sessionId))
|
|
1408
|
+
return;
|
|
1409
|
+
ctx.inFlightDecisions.add(sessionId);
|
|
1410
|
+
try {
|
|
1411
|
+
let output = recentOutput;
|
|
1412
|
+
if (!output) {
|
|
1413
|
+
output = await fetchRecentOutput(ctx, sessionId);
|
|
1414
|
+
}
|
|
1415
|
+
// Triage: route to small LLM (routine) or Milaidy pipeline (creative)
|
|
1416
|
+
const agentDecisionCb = ctx.getAgentDecisionCallback();
|
|
1417
|
+
let decision = null;
|
|
1418
|
+
let decisionFromPipeline = false;
|
|
1419
|
+
const triageCtx = {
|
|
1420
|
+
eventType: "blocked",
|
|
1421
|
+
promptText,
|
|
1422
|
+
promptType,
|
|
1423
|
+
recentOutput: output,
|
|
1424
|
+
originalTask: taskCtx.originalTask,
|
|
1425
|
+
};
|
|
1426
|
+
const tier = agentDecisionCb
|
|
1427
|
+
? await classifyEventTier(ctx.runtime, triageCtx, ctx.log)
|
|
1428
|
+
: "routine"; // No pipeline → always small LLM
|
|
1429
|
+
if (tier === "routine") {
|
|
1430
|
+
decision = await makeCoordinationDecision(ctx, taskCtx, promptText, output);
|
|
1431
|
+
}
|
|
1432
|
+
else {
|
|
1433
|
+
// Creative — try Milaidy pipeline, fall back to small LLM
|
|
1434
|
+
if (agentDecisionCb) {
|
|
1435
|
+
const eventMessage = buildBlockedEventMessage(toContextSummary(taskCtx), promptText, output, toDecisionHistory(taskCtx), collectSiblings(ctx, sessionId), ctx.sharedDecisions, ctx.getSwarmContext());
|
|
1436
|
+
try {
|
|
1437
|
+
decision = await withTimeout(agentDecisionCb(eventMessage, sessionId, taskCtx), DECISION_CB_TIMEOUT_MS, "agentDecisionCb");
|
|
1438
|
+
if (decision)
|
|
1439
|
+
decisionFromPipeline = true;
|
|
1440
|
+
}
|
|
1441
|
+
catch (err) {
|
|
1442
|
+
ctx.log(`Agent decision callback failed (confirm): ${err} — falling back to small LLM`);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
if (!decision) {
|
|
1446
|
+
decision = await makeCoordinationDecision(ctx, taskCtx, promptText, output);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
if (!decision) {
|
|
1450
|
+
// Queue for human with no suggestion
|
|
1451
|
+
taskCtx.status = "blocked";
|
|
1452
|
+
await ctx.syncTaskContext(taskCtx);
|
|
1453
|
+
const pendingDecision = {
|
|
1454
|
+
sessionId,
|
|
1455
|
+
promptText,
|
|
1456
|
+
recentOutput: output,
|
|
1457
|
+
llmDecision: {
|
|
1458
|
+
action: "escalate",
|
|
1459
|
+
reasoning: "All decision paths returned invalid response — needs human review",
|
|
1460
|
+
},
|
|
1461
|
+
taskContext: taskCtx,
|
|
1462
|
+
createdAt: Date.now(),
|
|
1463
|
+
};
|
|
1464
|
+
ctx.pendingDecisions.set(sessionId, pendingDecision);
|
|
1465
|
+
await ctx.taskRegistry.upsertPendingDecision({
|
|
1466
|
+
sessionId,
|
|
1467
|
+
threadId: taskCtx.threadId,
|
|
1468
|
+
promptText,
|
|
1469
|
+
recentOutput: output,
|
|
1470
|
+
llmDecision: pendingDecision.llmDecision,
|
|
1471
|
+
taskContext: taskCtx,
|
|
1472
|
+
createdAt: pendingDecision.createdAt,
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
else {
|
|
1476
|
+
// Queue the LLM's suggestion for human approval
|
|
1477
|
+
taskCtx.status = "blocked";
|
|
1478
|
+
await ctx.syncTaskContext(taskCtx);
|
|
1479
|
+
const pendingDecision = {
|
|
1480
|
+
sessionId,
|
|
1481
|
+
promptText,
|
|
1482
|
+
recentOutput: output,
|
|
1483
|
+
llmDecision: decision,
|
|
1484
|
+
taskContext: taskCtx,
|
|
1485
|
+
createdAt: Date.now(),
|
|
1486
|
+
};
|
|
1487
|
+
ctx.pendingDecisions.set(sessionId, pendingDecision);
|
|
1488
|
+
await ctx.taskRegistry.upsertPendingDecision({
|
|
1489
|
+
sessionId,
|
|
1490
|
+
threadId: taskCtx.threadId,
|
|
1491
|
+
promptText,
|
|
1492
|
+
recentOutput: output,
|
|
1493
|
+
llmDecision: decision,
|
|
1494
|
+
taskContext: taskCtx,
|
|
1495
|
+
createdAt: pendingDecision.createdAt,
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
await ctx.taskRegistry.appendEvent({
|
|
1499
|
+
threadId: taskCtx.threadId,
|
|
1500
|
+
sessionId,
|
|
1501
|
+
eventType: "pending_confirmation",
|
|
1502
|
+
summary: `Queued human confirmation for "${taskCtx.label}"`,
|
|
1503
|
+
data: {
|
|
1504
|
+
promptText,
|
|
1505
|
+
suggestedAction: decision?.action ?? "escalate",
|
|
1506
|
+
},
|
|
1507
|
+
});
|
|
1508
|
+
// When Milaidy's pipeline made the suggestion, she already spoke via WS broadcast.
|
|
1509
|
+
// Only broadcast the pending_confirmation event for small-LLM suggestions or
|
|
1510
|
+
// always broadcast it (the UI needs it regardless) but skip any chat messages.
|
|
1511
|
+
ctx.broadcast({
|
|
1512
|
+
type: "pending_confirmation",
|
|
1513
|
+
sessionId,
|
|
1514
|
+
timestamp: Date.now(),
|
|
1515
|
+
data: {
|
|
1516
|
+
prompt: promptText,
|
|
1517
|
+
suggestedAction: decision?.action,
|
|
1518
|
+
suggestedResponse: decision?.response,
|
|
1519
|
+
reasoning: decision?.reasoning,
|
|
1520
|
+
fromPipeline: decisionFromPipeline,
|
|
1521
|
+
},
|
|
1522
|
+
});
|
|
1523
|
+
ctx.sendChatMessage([
|
|
1524
|
+
`[${taskCtx.label}] Waiting for your approval: ${truncateForUser(promptText, 180)}`,
|
|
1525
|
+
formatSuggestedAction(decision),
|
|
1526
|
+
decision?.reasoning
|
|
1527
|
+
? `Reason: ${truncateForUser(decision.reasoning, 180)}`
|
|
1528
|
+
: "",
|
|
1529
|
+
]
|
|
1530
|
+
.filter(Boolean)
|
|
1531
|
+
.join(" "), "coding-agent");
|
|
1532
|
+
}
|
|
1533
|
+
finally {
|
|
1534
|
+
ctx.inFlightDecisions.delete(sessionId);
|
|
1535
|
+
await drainPendingTurnComplete(ctx, sessionId);
|
|
1536
|
+
await drainPendingBlocked(ctx, sessionId);
|
|
1537
|
+
}
|
|
1538
|
+
}
|