@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,2182 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
let cachedSqlRaw = null;
|
|
3
|
+
const schemaReady = new WeakSet();
|
|
4
|
+
function asObject(value) {
|
|
5
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
6
|
+
return null;
|
|
7
|
+
return value;
|
|
8
|
+
}
|
|
9
|
+
function toText(value, fallback = "") {
|
|
10
|
+
if (typeof value === "string")
|
|
11
|
+
return value;
|
|
12
|
+
if (value === null || value === undefined)
|
|
13
|
+
return fallback;
|
|
14
|
+
return String(value);
|
|
15
|
+
}
|
|
16
|
+
function toNumber(value, fallback = 0) {
|
|
17
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
18
|
+
return value;
|
|
19
|
+
if (typeof value === "string") {
|
|
20
|
+
const parsed = Number(value);
|
|
21
|
+
if (Number.isFinite(parsed))
|
|
22
|
+
return parsed;
|
|
23
|
+
}
|
|
24
|
+
return fallback;
|
|
25
|
+
}
|
|
26
|
+
function toNullableText(value) {
|
|
27
|
+
if (value === null || value === undefined || value === "")
|
|
28
|
+
return null;
|
|
29
|
+
return toText(value);
|
|
30
|
+
}
|
|
31
|
+
function toNullableNumber(value) {
|
|
32
|
+
if (value === null || value === undefined || value === "")
|
|
33
|
+
return null;
|
|
34
|
+
const parsed = toNumber(value, Number.NaN);
|
|
35
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
36
|
+
}
|
|
37
|
+
function toBoolean(value, fallback = false) {
|
|
38
|
+
if (typeof value === "boolean")
|
|
39
|
+
return value;
|
|
40
|
+
if (typeof value === "number")
|
|
41
|
+
return value !== 0;
|
|
42
|
+
if (typeof value === "string") {
|
|
43
|
+
const normalized = value.trim().toLowerCase();
|
|
44
|
+
if (["1", "true", "yes", "on"].includes(normalized))
|
|
45
|
+
return true;
|
|
46
|
+
if (["0", "false", "no", "off"].includes(normalized))
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return fallback;
|
|
50
|
+
}
|
|
51
|
+
function parseJsonRecord(value) {
|
|
52
|
+
if (value === null || value === undefined || value === "")
|
|
53
|
+
return {};
|
|
54
|
+
if (typeof value !== "string")
|
|
55
|
+
return asObject(value) ?? {};
|
|
56
|
+
try {
|
|
57
|
+
return asObject(JSON.parse(value)) ?? {};
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function parseJsonArray(value) {
|
|
64
|
+
if (value === null || value === undefined || value === "")
|
|
65
|
+
return [];
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
return value.filter((entry) => typeof entry === "string");
|
|
68
|
+
}
|
|
69
|
+
if (typeof value !== "string")
|
|
70
|
+
return [];
|
|
71
|
+
try {
|
|
72
|
+
const parsed = JSON.parse(value);
|
|
73
|
+
return Array.isArray(parsed)
|
|
74
|
+
? parsed.filter((entry) => typeof entry === "string")
|
|
75
|
+
: [];
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function isoNow() {
|
|
82
|
+
return new Date().toISOString();
|
|
83
|
+
}
|
|
84
|
+
function sqlQuote(value) {
|
|
85
|
+
return `'${value.replace(/'/g, "''")}'`;
|
|
86
|
+
}
|
|
87
|
+
function sqlText(value) {
|
|
88
|
+
if (value === null || value === undefined)
|
|
89
|
+
return "NULL";
|
|
90
|
+
return sqlQuote(value);
|
|
91
|
+
}
|
|
92
|
+
function sqlInteger(value) {
|
|
93
|
+
if (value === null || value === undefined)
|
|
94
|
+
return "NULL";
|
|
95
|
+
if (!Number.isFinite(value)) {
|
|
96
|
+
throw new Error("invalid numeric SQL literal");
|
|
97
|
+
}
|
|
98
|
+
return String(Math.trunc(value));
|
|
99
|
+
}
|
|
100
|
+
function sqlBoolean(value) {
|
|
101
|
+
return value ? "TRUE" : "FALSE";
|
|
102
|
+
}
|
|
103
|
+
function sqlJson(value) {
|
|
104
|
+
return sqlQuote(JSON.stringify(value ?? null));
|
|
105
|
+
}
|
|
106
|
+
function sqlStringList(values) {
|
|
107
|
+
return values.map((value) => sqlQuote(value)).join(", ");
|
|
108
|
+
}
|
|
109
|
+
function normalizeThreadStatus(value) {
|
|
110
|
+
switch (toText(value).toLowerCase()) {
|
|
111
|
+
case "active":
|
|
112
|
+
case "waiting_on_user":
|
|
113
|
+
case "blocked":
|
|
114
|
+
case "validating":
|
|
115
|
+
case "done":
|
|
116
|
+
case "failed":
|
|
117
|
+
case "archived":
|
|
118
|
+
case "interrupted":
|
|
119
|
+
return toText(value).toLowerCase();
|
|
120
|
+
default:
|
|
121
|
+
return "open";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function normalizeSessionStatus(value) {
|
|
125
|
+
switch (toText(value).toLowerCase()) {
|
|
126
|
+
case "blocked":
|
|
127
|
+
case "waiting_on_user":
|
|
128
|
+
case "completed":
|
|
129
|
+
case "stopped":
|
|
130
|
+
case "error":
|
|
131
|
+
case "tool_running":
|
|
132
|
+
case "interrupted":
|
|
133
|
+
return toText(value).toLowerCase();
|
|
134
|
+
default:
|
|
135
|
+
return "active";
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function normalizeTaskNodeKind(value) {
|
|
139
|
+
switch (toText(value).toLowerCase()) {
|
|
140
|
+
case "goal":
|
|
141
|
+
case "execution":
|
|
142
|
+
case "research":
|
|
143
|
+
case "planning":
|
|
144
|
+
case "verification":
|
|
145
|
+
case "handoff":
|
|
146
|
+
return toText(value).toLowerCase();
|
|
147
|
+
default:
|
|
148
|
+
return "execution";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function normalizeTaskNodeStatus(value) {
|
|
152
|
+
switch (toText(value).toLowerCase()) {
|
|
153
|
+
case "ready":
|
|
154
|
+
case "claimed":
|
|
155
|
+
case "running":
|
|
156
|
+
case "blocked":
|
|
157
|
+
case "waiting_on_user":
|
|
158
|
+
case "verifying":
|
|
159
|
+
case "completed":
|
|
160
|
+
case "failed":
|
|
161
|
+
case "canceled":
|
|
162
|
+
case "interrupted":
|
|
163
|
+
return toText(value).toLowerCase();
|
|
164
|
+
default:
|
|
165
|
+
return "planned";
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function normalizeTaskDependencyKind(value) {
|
|
169
|
+
switch (toText(value).toLowerCase()) {
|
|
170
|
+
case "parent_child":
|
|
171
|
+
case "artifact":
|
|
172
|
+
case "handoff":
|
|
173
|
+
return toText(value).toLowerCase();
|
|
174
|
+
default:
|
|
175
|
+
return "blocks";
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function normalizeTaskClaimType(value) {
|
|
179
|
+
switch (toText(value).toLowerCase()) {
|
|
180
|
+
case "verification":
|
|
181
|
+
case "ownership":
|
|
182
|
+
return toText(value).toLowerCase();
|
|
183
|
+
default:
|
|
184
|
+
return "execution";
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function normalizeTaskClaimStatus(value) {
|
|
188
|
+
switch (toText(value).toLowerCase()) {
|
|
189
|
+
case "released":
|
|
190
|
+
case "completed":
|
|
191
|
+
case "failed":
|
|
192
|
+
case "interrupted":
|
|
193
|
+
return toText(value).toLowerCase();
|
|
194
|
+
default:
|
|
195
|
+
return "active";
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function normalizeMailboxDeliveryState(value) {
|
|
199
|
+
switch (toText(value).toLowerCase()) {
|
|
200
|
+
case "delivered":
|
|
201
|
+
case "consumed":
|
|
202
|
+
return toText(value).toLowerCase();
|
|
203
|
+
default:
|
|
204
|
+
return "pending";
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function normalizeVerifierJobStatus(value) {
|
|
208
|
+
switch (toText(value).toLowerCase()) {
|
|
209
|
+
case "running":
|
|
210
|
+
case "passed":
|
|
211
|
+
case "failed":
|
|
212
|
+
case "canceled":
|
|
213
|
+
return toText(value).toLowerCase();
|
|
214
|
+
default:
|
|
215
|
+
return "pending";
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function extractRows(result) {
|
|
219
|
+
if (Array.isArray(result)) {
|
|
220
|
+
return result
|
|
221
|
+
.map((row) => asObject(row))
|
|
222
|
+
.filter((row) => row !== null);
|
|
223
|
+
}
|
|
224
|
+
const obj = asObject(result);
|
|
225
|
+
if (!obj || !Array.isArray(obj.rows))
|
|
226
|
+
return [];
|
|
227
|
+
return obj.rows
|
|
228
|
+
.map((row) => asObject(row))
|
|
229
|
+
.filter((row) => row !== null);
|
|
230
|
+
}
|
|
231
|
+
async function getSqlRaw() {
|
|
232
|
+
if (cachedSqlRaw)
|
|
233
|
+
return cachedSqlRaw;
|
|
234
|
+
const drizzle = (await import("drizzle-orm"));
|
|
235
|
+
cachedSqlRaw = drizzle.sql.raw;
|
|
236
|
+
return cachedSqlRaw;
|
|
237
|
+
}
|
|
238
|
+
function getRuntimeDb(runtime) {
|
|
239
|
+
const runtimeLike = runtime;
|
|
240
|
+
const db = runtimeLike.adapter?.db ?? runtimeLike.databaseAdapter?.db;
|
|
241
|
+
if (!db || typeof db.execute !== "function") {
|
|
242
|
+
throw new Error("runtime database adapter unavailable");
|
|
243
|
+
}
|
|
244
|
+
return db;
|
|
245
|
+
}
|
|
246
|
+
async function executeRawSql(runtime, sqlTextValue) {
|
|
247
|
+
const raw = await getSqlRaw();
|
|
248
|
+
const result = await getRuntimeDb(runtime).execute(raw(sqlTextValue));
|
|
249
|
+
return extractRows(result);
|
|
250
|
+
}
|
|
251
|
+
function parseThreadRow(row) {
|
|
252
|
+
return {
|
|
253
|
+
id: toText(row.id),
|
|
254
|
+
agentId: toText(row.agent_id),
|
|
255
|
+
roomId: toNullableText(row.room_id),
|
|
256
|
+
worldId: toNullableText(row.world_id),
|
|
257
|
+
ownerUserId: toNullableText(row.owner_user_id),
|
|
258
|
+
scenarioId: toNullableText(row.scenario_id),
|
|
259
|
+
batchId: toNullableText(row.batch_id),
|
|
260
|
+
title: toText(row.title),
|
|
261
|
+
kind: toText(row.kind, "coding"),
|
|
262
|
+
status: normalizeThreadStatus(row.status),
|
|
263
|
+
originalRequest: toText(row.original_request),
|
|
264
|
+
summary: toText(row.summary),
|
|
265
|
+
acceptanceCriteria: parseJsonArray(row.acceptance_criteria_json),
|
|
266
|
+
currentPlan: parseJsonRecord(row.current_plan_json),
|
|
267
|
+
searchText: toText(row.search_text),
|
|
268
|
+
createdAt: toText(row.created_at),
|
|
269
|
+
updatedAt: toText(row.updated_at),
|
|
270
|
+
closedAt: toNullableText(row.closed_at),
|
|
271
|
+
archivedAt: toNullableText(row.archived_at),
|
|
272
|
+
lastUserTurnAt: toNullableText(row.last_user_turn_at),
|
|
273
|
+
lastCoordinatorTurnAt: toNullableText(row.last_coordinator_turn_at),
|
|
274
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
function parseThreadSummaryRow(row) {
|
|
278
|
+
return {
|
|
279
|
+
...parseThreadRow(row),
|
|
280
|
+
sessionCount: toNumber(row.session_count, 0),
|
|
281
|
+
activeSessionCount: toNumber(row.active_session_count, 0),
|
|
282
|
+
latestSessionId: toNullableText(row.latest_session_id),
|
|
283
|
+
latestSessionLabel: toNullableText(row.latest_session_label),
|
|
284
|
+
latestWorkdir: toNullableText(row.latest_workdir),
|
|
285
|
+
latestRepo: toNullableText(row.latest_repo),
|
|
286
|
+
latestActivityAt: toNullableNumber(row.latest_activity_at),
|
|
287
|
+
decisionCount: toNumber(row.decision_count, 0),
|
|
288
|
+
nodeCount: toNumber(row.node_count, 0),
|
|
289
|
+
readyNodeCount: toNumber(row.ready_node_count, 0),
|
|
290
|
+
completedNodeCount: toNumber(row.completed_node_count, 0),
|
|
291
|
+
verifierJobCount: toNumber(row.verifier_job_count, 0),
|
|
292
|
+
evidenceCount: toNumber(row.evidence_count, 0),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
function parseSessionRow(row) {
|
|
296
|
+
return {
|
|
297
|
+
id: toText(row.id),
|
|
298
|
+
threadId: toText(row.thread_id),
|
|
299
|
+
agentId: toText(row.agent_id),
|
|
300
|
+
sessionId: toText(row.session_id),
|
|
301
|
+
framework: toText(row.framework, "claude"),
|
|
302
|
+
providerSource: toNullableText(row.provider_source),
|
|
303
|
+
label: toText(row.label),
|
|
304
|
+
originalTask: toText(row.original_task),
|
|
305
|
+
workdir: toText(row.workdir),
|
|
306
|
+
repo: toNullableText(row.repo),
|
|
307
|
+
status: normalizeSessionStatus(row.status),
|
|
308
|
+
decisionCount: toNumber(row.decision_count, 0),
|
|
309
|
+
autoResolvedCount: toNumber(row.auto_resolved_count, 0),
|
|
310
|
+
registeredAt: toNumber(row.registered_at, 0),
|
|
311
|
+
lastActivityAt: toNumber(row.last_activity_at, 0),
|
|
312
|
+
idleCheckCount: toNumber(row.idle_check_count, 0),
|
|
313
|
+
taskDelivered: toBoolean(row.task_delivered),
|
|
314
|
+
completionSummary: toNullableText(row.completion_summary),
|
|
315
|
+
lastSeenDecisionIndex: toNumber(row.last_seen_decision_index, 0),
|
|
316
|
+
lastInputSentAt: toNullableNumber(row.last_input_sent_at),
|
|
317
|
+
stoppedAt: toNullableNumber(row.stopped_at),
|
|
318
|
+
createdAt: toText(row.created_at),
|
|
319
|
+
updatedAt: toText(row.updated_at),
|
|
320
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function parseDecisionRow(row) {
|
|
324
|
+
return {
|
|
325
|
+
id: toText(row.id),
|
|
326
|
+
threadId: toText(row.thread_id),
|
|
327
|
+
sessionId: toText(row.session_id),
|
|
328
|
+
timestamp: toNumber(row.timestamp, 0),
|
|
329
|
+
event: toText(row.event_type),
|
|
330
|
+
promptText: toText(row.prompt_text),
|
|
331
|
+
decision: toText(row.decision),
|
|
332
|
+
response: toNullableText(row.response),
|
|
333
|
+
reasoning: toText(row.reasoning),
|
|
334
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function parseEventRow(row) {
|
|
338
|
+
return {
|
|
339
|
+
id: toText(row.id),
|
|
340
|
+
threadId: toText(row.thread_id),
|
|
341
|
+
sessionId: toNullableText(row.session_id),
|
|
342
|
+
eventType: toText(row.event_type),
|
|
343
|
+
timestamp: toNumber(row.timestamp, 0),
|
|
344
|
+
summary: toText(row.summary),
|
|
345
|
+
data: parseJsonRecord(row.data_json),
|
|
346
|
+
createdAt: toText(row.created_at),
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function parseArtifactRow(row) {
|
|
350
|
+
return {
|
|
351
|
+
id: toText(row.id),
|
|
352
|
+
threadId: toText(row.thread_id),
|
|
353
|
+
sessionId: toNullableText(row.session_id),
|
|
354
|
+
artifactType: toText(row.artifact_type),
|
|
355
|
+
title: toText(row.title),
|
|
356
|
+
path: toNullableText(row.path),
|
|
357
|
+
uri: toNullableText(row.uri),
|
|
358
|
+
mimeType: toNullableText(row.mime_type),
|
|
359
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
360
|
+
createdAt: toText(row.created_at),
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
function parseTranscriptRow(row) {
|
|
364
|
+
return {
|
|
365
|
+
id: toText(row.id),
|
|
366
|
+
threadId: toText(row.thread_id),
|
|
367
|
+
sessionId: toText(row.session_id),
|
|
368
|
+
timestamp: toNumber(row.timestamp, 0),
|
|
369
|
+
direction: toText(row.direction),
|
|
370
|
+
content: toText(row.content),
|
|
371
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
372
|
+
createdAt: toText(row.created_at),
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function parsePendingDecisionRow(row) {
|
|
376
|
+
return {
|
|
377
|
+
sessionId: toText(row.session_id),
|
|
378
|
+
threadId: toText(row.thread_id),
|
|
379
|
+
promptText: toText(row.prompt_text),
|
|
380
|
+
recentOutput: toText(row.recent_output),
|
|
381
|
+
llmDecision: parseJsonRecord(row.llm_decision_json),
|
|
382
|
+
taskContext: parseJsonRecord(row.task_context_json),
|
|
383
|
+
createdAt: toNumber(row.created_at, 0),
|
|
384
|
+
updatedAt: toText(row.updated_at),
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
function parseTaskNodeRow(row) {
|
|
388
|
+
return {
|
|
389
|
+
id: toText(row.id),
|
|
390
|
+
threadId: toText(row.thread_id),
|
|
391
|
+
parentNodeId: toNullableText(row.parent_node_id),
|
|
392
|
+
kind: normalizeTaskNodeKind(row.kind),
|
|
393
|
+
status: normalizeTaskNodeStatus(row.status),
|
|
394
|
+
title: toText(row.title),
|
|
395
|
+
instructions: toText(row.instructions),
|
|
396
|
+
acceptanceCriteria: parseJsonArray(row.acceptance_criteria_json),
|
|
397
|
+
requiredCapabilities: parseJsonArray(row.required_capabilities_json),
|
|
398
|
+
expectedArtifacts: parseJsonArray(row.expected_artifacts_json),
|
|
399
|
+
assignedSessionId: toNullableText(row.assigned_session_id),
|
|
400
|
+
assignedLabel: toNullableText(row.assigned_label),
|
|
401
|
+
agentType: toNullableText(row.agent_type),
|
|
402
|
+
workdir: toNullableText(row.workdir),
|
|
403
|
+
repo: toNullableText(row.repo),
|
|
404
|
+
priority: toNumber(row.priority, 0),
|
|
405
|
+
depth: toNumber(row.depth, 0),
|
|
406
|
+
sequence: toNumber(row.sequence, 0),
|
|
407
|
+
createdFrom: toNullableText(row.created_from),
|
|
408
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
409
|
+
createdAt: toText(row.created_at),
|
|
410
|
+
updatedAt: toText(row.updated_at),
|
|
411
|
+
startedAt: toNullableText(row.started_at),
|
|
412
|
+
completedAt: toNullableText(row.completed_at),
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
function parseTaskDependencyRow(row) {
|
|
416
|
+
return {
|
|
417
|
+
id: toText(row.id),
|
|
418
|
+
threadId: toText(row.thread_id),
|
|
419
|
+
fromNodeId: toText(row.from_node_id),
|
|
420
|
+
toNodeId: toText(row.to_node_id),
|
|
421
|
+
dependencyKind: normalizeTaskDependencyKind(row.dependency_kind),
|
|
422
|
+
requiredStatus: normalizeTaskNodeStatus(row.required_status),
|
|
423
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
424
|
+
createdAt: toText(row.created_at),
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
function parseTaskClaimRow(row) {
|
|
428
|
+
return {
|
|
429
|
+
id: toText(row.id),
|
|
430
|
+
threadId: toText(row.thread_id),
|
|
431
|
+
nodeId: toText(row.node_id),
|
|
432
|
+
sessionId: toText(row.session_id),
|
|
433
|
+
claimType: normalizeTaskClaimType(row.claim_type),
|
|
434
|
+
status: normalizeTaskClaimStatus(row.status),
|
|
435
|
+
claimedAt: toText(row.claimed_at),
|
|
436
|
+
releasedAt: toNullableText(row.released_at),
|
|
437
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function parseTaskMailboxMessageRow(row) {
|
|
441
|
+
return {
|
|
442
|
+
id: toText(row.id),
|
|
443
|
+
threadId: toText(row.thread_id),
|
|
444
|
+
nodeId: toNullableText(row.node_id),
|
|
445
|
+
sessionId: toNullableText(row.session_id),
|
|
446
|
+
sender: toText(row.sender),
|
|
447
|
+
recipient: toText(row.recipient),
|
|
448
|
+
subject: toText(row.subject),
|
|
449
|
+
body: toText(row.body),
|
|
450
|
+
deliveryState: normalizeMailboxDeliveryState(row.delivery_state),
|
|
451
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
452
|
+
createdAt: toText(row.created_at),
|
|
453
|
+
deliveredAt: toNullableText(row.delivered_at),
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function parseTaskVerifierJobRow(row) {
|
|
457
|
+
return {
|
|
458
|
+
id: toText(row.id),
|
|
459
|
+
threadId: toText(row.thread_id),
|
|
460
|
+
nodeId: toText(row.node_id),
|
|
461
|
+
status: normalizeVerifierJobStatus(row.status),
|
|
462
|
+
verifierType: toText(row.verifier_type),
|
|
463
|
+
title: toText(row.title),
|
|
464
|
+
instructions: toText(row.instructions),
|
|
465
|
+
config: parseJsonRecord(row.config_json),
|
|
466
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
467
|
+
createdAt: toText(row.created_at),
|
|
468
|
+
startedAt: toNullableText(row.started_at),
|
|
469
|
+
completedAt: toNullableText(row.completed_at),
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function parseTaskEvidenceRow(row) {
|
|
473
|
+
return {
|
|
474
|
+
id: toText(row.id),
|
|
475
|
+
threadId: toText(row.thread_id),
|
|
476
|
+
nodeId: toNullableText(row.node_id),
|
|
477
|
+
sessionId: toNullableText(row.session_id),
|
|
478
|
+
verifierJobId: toNullableText(row.verifier_job_id),
|
|
479
|
+
evidenceType: toText(row.evidence_type),
|
|
480
|
+
title: toText(row.title),
|
|
481
|
+
summary: toText(row.summary),
|
|
482
|
+
path: toNullableText(row.path),
|
|
483
|
+
uri: toNullableText(row.uri),
|
|
484
|
+
content: parseJsonRecord(row.content_json),
|
|
485
|
+
metadata: parseJsonRecord(row.metadata_json),
|
|
486
|
+
createdAt: toText(row.created_at),
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function buildSearchText(parts) {
|
|
490
|
+
return parts
|
|
491
|
+
.map((part) => (part ?? "").trim().toLowerCase())
|
|
492
|
+
.filter(Boolean)
|
|
493
|
+
.join(" ");
|
|
494
|
+
}
|
|
495
|
+
function isTerminalTaskNodeStatus(status) {
|
|
496
|
+
return (status === "completed" ||
|
|
497
|
+
status === "failed" ||
|
|
498
|
+
status === "canceled" ||
|
|
499
|
+
status === "interrupted");
|
|
500
|
+
}
|
|
501
|
+
function dependencyStatusSatisfied(actual, required) {
|
|
502
|
+
if (actual === required)
|
|
503
|
+
return true;
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
function buildThreadListWhereClauses(options) {
|
|
507
|
+
const clauses = [];
|
|
508
|
+
if (options.threadId) {
|
|
509
|
+
clauses.push(`thread.id = ${sqlQuote(options.threadId)}`);
|
|
510
|
+
}
|
|
511
|
+
if (!options.includeArchived) {
|
|
512
|
+
clauses.push("thread.archived_at IS NULL");
|
|
513
|
+
}
|
|
514
|
+
if (options.status) {
|
|
515
|
+
clauses.push(`thread.status = ${sqlQuote(options.status)}`);
|
|
516
|
+
}
|
|
517
|
+
if (Array.isArray(options.statuses) && options.statuses.length > 0) {
|
|
518
|
+
const normalizedStatuses = options.statuses
|
|
519
|
+
.map((status) => normalizeThreadStatus(status))
|
|
520
|
+
.filter(Boolean);
|
|
521
|
+
if (normalizedStatuses.length > 0) {
|
|
522
|
+
clauses.push(`thread.status IN (${sqlStringList(normalizedStatuses)})`);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (options.kind) {
|
|
526
|
+
clauses.push(`thread.kind = ${sqlQuote(options.kind)}`);
|
|
527
|
+
}
|
|
528
|
+
if (options.roomId) {
|
|
529
|
+
clauses.push(`thread.room_id = ${sqlQuote(options.roomId)}`);
|
|
530
|
+
}
|
|
531
|
+
if (options.worldId) {
|
|
532
|
+
clauses.push(`thread.world_id = ${sqlQuote(options.worldId)}`);
|
|
533
|
+
}
|
|
534
|
+
if (options.ownerUserId) {
|
|
535
|
+
clauses.push(`thread.owner_user_id = ${sqlQuote(options.ownerUserId)}`);
|
|
536
|
+
}
|
|
537
|
+
if (options.scenarioId) {
|
|
538
|
+
clauses.push(`thread.scenario_id = ${sqlQuote(options.scenarioId)}`);
|
|
539
|
+
}
|
|
540
|
+
if (options.batchId) {
|
|
541
|
+
clauses.push(`thread.batch_id = ${sqlQuote(options.batchId)}`);
|
|
542
|
+
}
|
|
543
|
+
if (options.createdAfter) {
|
|
544
|
+
clauses.push(`thread.created_at >= ${sqlQuote(options.createdAfter)}`);
|
|
545
|
+
}
|
|
546
|
+
if (options.createdBefore) {
|
|
547
|
+
clauses.push(`thread.created_at <= ${sqlQuote(options.createdBefore)}`);
|
|
548
|
+
}
|
|
549
|
+
if (options.updatedAfter) {
|
|
550
|
+
clauses.push(`thread.updated_at >= ${sqlQuote(options.updatedAfter)}`);
|
|
551
|
+
}
|
|
552
|
+
if (options.updatedBefore) {
|
|
553
|
+
clauses.push(`thread.updated_at <= ${sqlQuote(options.updatedBefore)}`);
|
|
554
|
+
}
|
|
555
|
+
if (typeof options.latestActivityAfter === "number") {
|
|
556
|
+
clauses.push(`COALESCE(latest.last_activity_at, 0) >= ${sqlInteger(options.latestActivityAfter)}`);
|
|
557
|
+
}
|
|
558
|
+
if (typeof options.latestActivityBefore === "number") {
|
|
559
|
+
clauses.push(`COALESCE(latest.last_activity_at, 0) <= ${sqlInteger(options.latestActivityBefore)}`);
|
|
560
|
+
}
|
|
561
|
+
if (typeof options.hasActiveSession === "boolean") {
|
|
562
|
+
clauses.push(options.hasActiveSession
|
|
563
|
+
? "COALESCE(session_counts.active_session_count, 0) > 0"
|
|
564
|
+
: "COALESCE(session_counts.active_session_count, 0) = 0");
|
|
565
|
+
}
|
|
566
|
+
if (options.search?.trim()) {
|
|
567
|
+
const q = options.search.trim().toLowerCase().replace(/[%_]/g, "\\$&");
|
|
568
|
+
clauses.push(`thread.search_text LIKE ${sqlQuote(`%${q}%`)}`);
|
|
569
|
+
}
|
|
570
|
+
return clauses;
|
|
571
|
+
}
|
|
572
|
+
export class TaskRegistry {
|
|
573
|
+
runtime;
|
|
574
|
+
constructor(runtime) {
|
|
575
|
+
this.runtime = runtime;
|
|
576
|
+
}
|
|
577
|
+
schemaKey() {
|
|
578
|
+
const runtimeLike = this.runtime;
|
|
579
|
+
return (runtimeLike.adapter ??
|
|
580
|
+
runtimeLike.databaseAdapter ??
|
|
581
|
+
this.runtime);
|
|
582
|
+
}
|
|
583
|
+
async ensureSchema() {
|
|
584
|
+
const key = this.schemaKey();
|
|
585
|
+
if (schemaReady.has(key))
|
|
586
|
+
return;
|
|
587
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_threads (
|
|
588
|
+
id TEXT PRIMARY KEY,
|
|
589
|
+
agent_id TEXT NOT NULL,
|
|
590
|
+
room_id TEXT,
|
|
591
|
+
world_id TEXT,
|
|
592
|
+
owner_user_id TEXT,
|
|
593
|
+
scenario_id TEXT,
|
|
594
|
+
batch_id TEXT,
|
|
595
|
+
title TEXT NOT NULL,
|
|
596
|
+
kind TEXT NOT NULL DEFAULT 'coding',
|
|
597
|
+
status TEXT NOT NULL DEFAULT 'open',
|
|
598
|
+
original_request TEXT NOT NULL,
|
|
599
|
+
summary TEXT NOT NULL DEFAULT '',
|
|
600
|
+
acceptance_criteria_json TEXT NOT NULL DEFAULT '[]',
|
|
601
|
+
current_plan_json TEXT NOT NULL DEFAULT '{}',
|
|
602
|
+
search_text TEXT NOT NULL DEFAULT '',
|
|
603
|
+
created_at TEXT NOT NULL,
|
|
604
|
+
updated_at TEXT NOT NULL,
|
|
605
|
+
closed_at TEXT,
|
|
606
|
+
archived_at TEXT,
|
|
607
|
+
last_user_turn_at TEXT,
|
|
608
|
+
last_coordinator_turn_at TEXT,
|
|
609
|
+
metadata_json TEXT NOT NULL DEFAULT '{}'
|
|
610
|
+
)`);
|
|
611
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_sessions (
|
|
612
|
+
id TEXT PRIMARY KEY,
|
|
613
|
+
thread_id TEXT NOT NULL,
|
|
614
|
+
agent_id TEXT NOT NULL,
|
|
615
|
+
session_id TEXT NOT NULL UNIQUE,
|
|
616
|
+
framework TEXT NOT NULL,
|
|
617
|
+
provider_source TEXT,
|
|
618
|
+
label TEXT NOT NULL,
|
|
619
|
+
original_task TEXT NOT NULL,
|
|
620
|
+
workdir TEXT NOT NULL,
|
|
621
|
+
repo TEXT,
|
|
622
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
623
|
+
decision_count INTEGER NOT NULL DEFAULT 0,
|
|
624
|
+
auto_resolved_count INTEGER NOT NULL DEFAULT 0,
|
|
625
|
+
registered_at BIGINT NOT NULL,
|
|
626
|
+
last_activity_at BIGINT NOT NULL,
|
|
627
|
+
idle_check_count INTEGER NOT NULL DEFAULT 0,
|
|
628
|
+
task_delivered BOOLEAN NOT NULL DEFAULT FALSE,
|
|
629
|
+
completion_summary TEXT,
|
|
630
|
+
last_seen_decision_index INTEGER NOT NULL DEFAULT 0,
|
|
631
|
+
last_input_sent_at BIGINT,
|
|
632
|
+
stopped_at BIGINT,
|
|
633
|
+
created_at TEXT NOT NULL,
|
|
634
|
+
updated_at TEXT NOT NULL,
|
|
635
|
+
metadata_json TEXT NOT NULL DEFAULT '{}'
|
|
636
|
+
)`);
|
|
637
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_decisions (
|
|
638
|
+
id TEXT PRIMARY KEY,
|
|
639
|
+
thread_id TEXT NOT NULL,
|
|
640
|
+
session_id TEXT NOT NULL,
|
|
641
|
+
timestamp BIGINT NOT NULL,
|
|
642
|
+
event_type TEXT NOT NULL,
|
|
643
|
+
prompt_text TEXT NOT NULL DEFAULT '',
|
|
644
|
+
decision TEXT NOT NULL,
|
|
645
|
+
response TEXT,
|
|
646
|
+
reasoning TEXT NOT NULL,
|
|
647
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
648
|
+
created_at TEXT NOT NULL
|
|
649
|
+
)`);
|
|
650
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_events (
|
|
651
|
+
id TEXT PRIMARY KEY,
|
|
652
|
+
thread_id TEXT NOT NULL,
|
|
653
|
+
session_id TEXT,
|
|
654
|
+
event_type TEXT NOT NULL,
|
|
655
|
+
timestamp BIGINT NOT NULL,
|
|
656
|
+
summary TEXT NOT NULL DEFAULT '',
|
|
657
|
+
data_json TEXT NOT NULL DEFAULT '{}',
|
|
658
|
+
created_at TEXT NOT NULL
|
|
659
|
+
)`);
|
|
660
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_artifacts (
|
|
661
|
+
id TEXT PRIMARY KEY,
|
|
662
|
+
thread_id TEXT NOT NULL,
|
|
663
|
+
session_id TEXT,
|
|
664
|
+
artifact_type TEXT NOT NULL,
|
|
665
|
+
title TEXT NOT NULL,
|
|
666
|
+
path TEXT,
|
|
667
|
+
uri TEXT,
|
|
668
|
+
mime_type TEXT,
|
|
669
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
670
|
+
created_at TEXT NOT NULL
|
|
671
|
+
)`);
|
|
672
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_transcripts (
|
|
673
|
+
id TEXT PRIMARY KEY,
|
|
674
|
+
thread_id TEXT NOT NULL,
|
|
675
|
+
session_id TEXT NOT NULL,
|
|
676
|
+
timestamp BIGINT NOT NULL,
|
|
677
|
+
direction TEXT NOT NULL,
|
|
678
|
+
content TEXT NOT NULL,
|
|
679
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
680
|
+
created_at TEXT NOT NULL
|
|
681
|
+
)`);
|
|
682
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_pending_decisions (
|
|
683
|
+
session_id TEXT PRIMARY KEY,
|
|
684
|
+
thread_id TEXT NOT NULL,
|
|
685
|
+
prompt_text TEXT NOT NULL,
|
|
686
|
+
recent_output TEXT NOT NULL DEFAULT '',
|
|
687
|
+
llm_decision_json TEXT NOT NULL DEFAULT '{}',
|
|
688
|
+
task_context_json TEXT NOT NULL DEFAULT '{}',
|
|
689
|
+
created_at BIGINT NOT NULL,
|
|
690
|
+
updated_at TEXT NOT NULL
|
|
691
|
+
)`);
|
|
692
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_nodes (
|
|
693
|
+
id TEXT PRIMARY KEY,
|
|
694
|
+
thread_id TEXT NOT NULL,
|
|
695
|
+
parent_node_id TEXT,
|
|
696
|
+
kind TEXT NOT NULL DEFAULT 'execution',
|
|
697
|
+
status TEXT NOT NULL DEFAULT 'planned',
|
|
698
|
+
title TEXT NOT NULL,
|
|
699
|
+
instructions TEXT NOT NULL DEFAULT '',
|
|
700
|
+
acceptance_criteria_json TEXT NOT NULL DEFAULT '[]',
|
|
701
|
+
required_capabilities_json TEXT NOT NULL DEFAULT '[]',
|
|
702
|
+
expected_artifacts_json TEXT NOT NULL DEFAULT '[]',
|
|
703
|
+
assigned_session_id TEXT,
|
|
704
|
+
assigned_label TEXT,
|
|
705
|
+
agent_type TEXT,
|
|
706
|
+
workdir TEXT,
|
|
707
|
+
repo TEXT,
|
|
708
|
+
priority INTEGER NOT NULL DEFAULT 0,
|
|
709
|
+
depth INTEGER NOT NULL DEFAULT 0,
|
|
710
|
+
sequence INTEGER NOT NULL DEFAULT 0,
|
|
711
|
+
created_from TEXT,
|
|
712
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
713
|
+
created_at TEXT NOT NULL,
|
|
714
|
+
updated_at TEXT NOT NULL,
|
|
715
|
+
started_at TEXT,
|
|
716
|
+
completed_at TEXT
|
|
717
|
+
)`);
|
|
718
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_dependencies (
|
|
719
|
+
id TEXT PRIMARY KEY,
|
|
720
|
+
thread_id TEXT NOT NULL,
|
|
721
|
+
from_node_id TEXT NOT NULL,
|
|
722
|
+
to_node_id TEXT NOT NULL,
|
|
723
|
+
dependency_kind TEXT NOT NULL DEFAULT 'blocks',
|
|
724
|
+
required_status TEXT NOT NULL DEFAULT 'completed',
|
|
725
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
726
|
+
created_at TEXT NOT NULL
|
|
727
|
+
)`);
|
|
728
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_claims (
|
|
729
|
+
id TEXT PRIMARY KEY,
|
|
730
|
+
thread_id TEXT NOT NULL,
|
|
731
|
+
node_id TEXT NOT NULL,
|
|
732
|
+
session_id TEXT NOT NULL,
|
|
733
|
+
claim_type TEXT NOT NULL DEFAULT 'execution',
|
|
734
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
735
|
+
claimed_at TEXT NOT NULL,
|
|
736
|
+
released_at TEXT,
|
|
737
|
+
metadata_json TEXT NOT NULL DEFAULT '{}'
|
|
738
|
+
)`);
|
|
739
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_mailbox (
|
|
740
|
+
id TEXT PRIMARY KEY,
|
|
741
|
+
thread_id TEXT NOT NULL,
|
|
742
|
+
node_id TEXT,
|
|
743
|
+
session_id TEXT,
|
|
744
|
+
sender TEXT NOT NULL,
|
|
745
|
+
recipient TEXT NOT NULL,
|
|
746
|
+
subject TEXT NOT NULL DEFAULT '',
|
|
747
|
+
body TEXT NOT NULL,
|
|
748
|
+
delivery_state TEXT NOT NULL DEFAULT 'pending',
|
|
749
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
750
|
+
created_at TEXT NOT NULL,
|
|
751
|
+
delivered_at TEXT
|
|
752
|
+
)`);
|
|
753
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_verifier_jobs (
|
|
754
|
+
id TEXT PRIMARY KEY,
|
|
755
|
+
thread_id TEXT NOT NULL,
|
|
756
|
+
node_id TEXT NOT NULL,
|
|
757
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
758
|
+
verifier_type TEXT NOT NULL,
|
|
759
|
+
title TEXT NOT NULL,
|
|
760
|
+
instructions TEXT NOT NULL DEFAULT '',
|
|
761
|
+
config_json TEXT NOT NULL DEFAULT '{}',
|
|
762
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
763
|
+
created_at TEXT NOT NULL,
|
|
764
|
+
started_at TEXT,
|
|
765
|
+
completed_at TEXT
|
|
766
|
+
)`);
|
|
767
|
+
await executeRawSql(this.runtime, `CREATE TABLE IF NOT EXISTS orchestrator_task_evidence (
|
|
768
|
+
id TEXT PRIMARY KEY,
|
|
769
|
+
thread_id TEXT NOT NULL,
|
|
770
|
+
node_id TEXT,
|
|
771
|
+
session_id TEXT,
|
|
772
|
+
verifier_job_id TEXT,
|
|
773
|
+
evidence_type TEXT NOT NULL,
|
|
774
|
+
title TEXT NOT NULL,
|
|
775
|
+
summary TEXT NOT NULL DEFAULT '',
|
|
776
|
+
path TEXT,
|
|
777
|
+
uri TEXT,
|
|
778
|
+
content_json TEXT NOT NULL DEFAULT '{}',
|
|
779
|
+
metadata_json TEXT NOT NULL DEFAULT '{}',
|
|
780
|
+
created_at TEXT NOT NULL
|
|
781
|
+
)`);
|
|
782
|
+
await executeRawSql(this.runtime, `ALTER TABLE orchestrator_task_threads ADD COLUMN scenario_id TEXT`).catch(() => undefined);
|
|
783
|
+
await executeRawSql(this.runtime, `ALTER TABLE orchestrator_task_threads ADD COLUMN batch_id TEXT`).catch(() => undefined);
|
|
784
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_status
|
|
785
|
+
ON orchestrator_task_threads(status)`);
|
|
786
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_scenario_id
|
|
787
|
+
ON orchestrator_task_threads(scenario_id)`);
|
|
788
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_batch_id
|
|
789
|
+
ON orchestrator_task_threads(batch_id)`);
|
|
790
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_updated_at
|
|
791
|
+
ON orchestrator_task_threads(updated_at)`);
|
|
792
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_archived_at
|
|
793
|
+
ON orchestrator_task_threads(archived_at)`);
|
|
794
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_sessions_thread_id
|
|
795
|
+
ON orchestrator_task_sessions(thread_id)`);
|
|
796
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_sessions_status
|
|
797
|
+
ON orchestrator_task_sessions(status)`);
|
|
798
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_decisions_thread_id
|
|
799
|
+
ON orchestrator_task_decisions(thread_id, timestamp DESC)`);
|
|
800
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_events_thread_id
|
|
801
|
+
ON orchestrator_task_events(thread_id, timestamp DESC)`);
|
|
802
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_transcripts_thread_id
|
|
803
|
+
ON orchestrator_task_transcripts(thread_id, timestamp DESC)`);
|
|
804
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_pending_decisions_thread_id
|
|
805
|
+
ON orchestrator_task_pending_decisions(thread_id)`);
|
|
806
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_pending_decisions_created_at
|
|
807
|
+
ON orchestrator_task_pending_decisions(created_at DESC)`);
|
|
808
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_nodes_thread_id
|
|
809
|
+
ON orchestrator_task_nodes(thread_id, sequence ASC, created_at ASC)`);
|
|
810
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_nodes_status
|
|
811
|
+
ON orchestrator_task_nodes(thread_id, status)`);
|
|
812
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_dependencies_thread_id
|
|
813
|
+
ON orchestrator_task_dependencies(thread_id)`);
|
|
814
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_dependencies_to_node_id
|
|
815
|
+
ON orchestrator_task_dependencies(to_node_id)`);
|
|
816
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_claims_thread_id
|
|
817
|
+
ON orchestrator_task_claims(thread_id, status, claimed_at DESC)`);
|
|
818
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_claims_node_id
|
|
819
|
+
ON orchestrator_task_claims(node_id, status)`);
|
|
820
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_mailbox_thread_id
|
|
821
|
+
ON orchestrator_task_mailbox(thread_id, created_at ASC)`);
|
|
822
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_verifier_jobs_thread_id
|
|
823
|
+
ON orchestrator_task_verifier_jobs(thread_id, status, created_at ASC)`);
|
|
824
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_evidence_thread_id
|
|
825
|
+
ON orchestrator_task_evidence(thread_id, created_at ASC)`);
|
|
826
|
+
await executeRawSql(this.runtime, `CREATE INDEX IF NOT EXISTS idx_orchestrator_task_threads_search_text
|
|
827
|
+
ON orchestrator_task_threads(search_text)`);
|
|
828
|
+
schemaReady.add(key);
|
|
829
|
+
}
|
|
830
|
+
async recoverInterruptedTasks() {
|
|
831
|
+
await this.ensureSchema();
|
|
832
|
+
const impactedSessions = await executeRawSql(this.runtime, `SELECT session_id, thread_id
|
|
833
|
+
FROM orchestrator_task_sessions
|
|
834
|
+
WHERE status IN ('active', 'blocked', 'tool_running')`);
|
|
835
|
+
if (impactedSessions.length === 0)
|
|
836
|
+
return;
|
|
837
|
+
const nowIso = isoNow();
|
|
838
|
+
const now = Date.now();
|
|
839
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_sessions
|
|
840
|
+
SET status = 'interrupted',
|
|
841
|
+
updated_at = ${sqlQuote(nowIso)},
|
|
842
|
+
stopped_at = COALESCE(stopped_at, ${sqlInteger(now)})
|
|
843
|
+
WHERE status IN ('active', 'blocked', 'tool_running')`);
|
|
844
|
+
const affectedThreadIds = new Set();
|
|
845
|
+
for (const row of impactedSessions) {
|
|
846
|
+
const sessionId = toText(row.session_id);
|
|
847
|
+
const threadId = toText(row.thread_id);
|
|
848
|
+
if (!threadId)
|
|
849
|
+
continue;
|
|
850
|
+
affectedThreadIds.add(threadId);
|
|
851
|
+
await this.appendEvent({
|
|
852
|
+
threadId,
|
|
853
|
+
sessionId,
|
|
854
|
+
eventType: "session_interrupted",
|
|
855
|
+
timestamp: now,
|
|
856
|
+
summary: "Session interrupted by runtime restart or shutdown",
|
|
857
|
+
data: { reason: "runtime_restart" },
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
for (const threadId of affectedThreadIds) {
|
|
861
|
+
await this.recomputeThreadStatus(threadId);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
async createThread(input) {
|
|
865
|
+
await this.ensureSchema();
|
|
866
|
+
const id = input.id?.trim() || `task-${crypto.randomUUID()}`;
|
|
867
|
+
const createdAt = isoNow();
|
|
868
|
+
const acceptanceCriteria = input.acceptanceCriteria ?? [];
|
|
869
|
+
const currentPlan = input.currentPlan ?? {};
|
|
870
|
+
const summary = input.summary?.trim() ?? "";
|
|
871
|
+
const scenarioId = input.scenarioId ??
|
|
872
|
+
(typeof input.metadata?.scenarioId === "string"
|
|
873
|
+
? input.metadata.scenarioId
|
|
874
|
+
: typeof input.metadata?.scenario_id === "string"
|
|
875
|
+
? input.metadata.scenario_id
|
|
876
|
+
: null);
|
|
877
|
+
const batchId = input.batchId ??
|
|
878
|
+
(typeof input.metadata?.batchId === "string"
|
|
879
|
+
? input.metadata.batchId
|
|
880
|
+
: typeof input.metadata?.batch_id === "string"
|
|
881
|
+
? input.metadata.batch_id
|
|
882
|
+
: null);
|
|
883
|
+
const searchText = buildSearchText([
|
|
884
|
+
input.title,
|
|
885
|
+
input.originalRequest,
|
|
886
|
+
summary,
|
|
887
|
+
scenarioId,
|
|
888
|
+
batchId,
|
|
889
|
+
input.metadata ? JSON.stringify(input.metadata) : "",
|
|
890
|
+
]);
|
|
891
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_threads (
|
|
892
|
+
id, agent_id, room_id, world_id, owner_user_id, scenario_id, batch_id, title, kind, status,
|
|
893
|
+
original_request, summary, acceptance_criteria_json, current_plan_json,
|
|
894
|
+
search_text, created_at, updated_at, closed_at, archived_at,
|
|
895
|
+
last_user_turn_at, last_coordinator_turn_at, metadata_json
|
|
896
|
+
) VALUES (
|
|
897
|
+
${sqlQuote(id)},
|
|
898
|
+
${sqlQuote(this.runtime.agentId)},
|
|
899
|
+
${sqlText(input.roomId ?? null)},
|
|
900
|
+
${sqlText(input.worldId ?? null)},
|
|
901
|
+
${sqlText(input.ownerUserId ?? null)},
|
|
902
|
+
${sqlText(scenarioId ?? null)},
|
|
903
|
+
${sqlText(batchId ?? null)},
|
|
904
|
+
${sqlQuote(input.title.trim())},
|
|
905
|
+
${sqlQuote(input.kind ?? "coding")},
|
|
906
|
+
'open',
|
|
907
|
+
${sqlQuote(input.originalRequest)},
|
|
908
|
+
${sqlQuote(summary)},
|
|
909
|
+
${sqlJson(acceptanceCriteria)},
|
|
910
|
+
${sqlJson(currentPlan)},
|
|
911
|
+
${sqlQuote(searchText)},
|
|
912
|
+
${sqlQuote(createdAt)},
|
|
913
|
+
${sqlQuote(createdAt)},
|
|
914
|
+
NULL,
|
|
915
|
+
NULL,
|
|
916
|
+
${sqlText(input.lastUserTurnAt ?? createdAt)},
|
|
917
|
+
NULL,
|
|
918
|
+
${sqlJson(input.metadata ?? {})}
|
|
919
|
+
)`);
|
|
920
|
+
await this.appendEvent({
|
|
921
|
+
threadId: id,
|
|
922
|
+
eventType: "task_created",
|
|
923
|
+
timestamp: Date.now(),
|
|
924
|
+
summary: `Created task thread "${input.title.trim()}"`,
|
|
925
|
+
data: {
|
|
926
|
+
kind: input.kind ?? "coding",
|
|
927
|
+
roomId: input.roomId ?? null,
|
|
928
|
+
worldId: input.worldId ?? null,
|
|
929
|
+
},
|
|
930
|
+
});
|
|
931
|
+
const created = await this.getThreadRecord(id);
|
|
932
|
+
if (!created) {
|
|
933
|
+
throw new Error(`Failed to create task thread ${id}`);
|
|
934
|
+
}
|
|
935
|
+
return created;
|
|
936
|
+
}
|
|
937
|
+
async getThreadRecord(threadId) {
|
|
938
|
+
await this.ensureSchema();
|
|
939
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
940
|
+
FROM orchestrator_task_threads
|
|
941
|
+
WHERE id = ${sqlQuote(threadId)}
|
|
942
|
+
LIMIT 1`);
|
|
943
|
+
return rows[0] ? parseThreadRow(rows[0]) : null;
|
|
944
|
+
}
|
|
945
|
+
async getThread(threadId) {
|
|
946
|
+
await this.ensureSchema();
|
|
947
|
+
const summary = await this.getThreadSummary(threadId);
|
|
948
|
+
if (!summary)
|
|
949
|
+
return null;
|
|
950
|
+
const [sessions, decisions, events, artifacts, transcripts, pendingDecisions, nodes, dependencies, claims, mailbox, verifierJobs, evidence,] = await Promise.all([
|
|
951
|
+
this.listSessionsForThread(threadId),
|
|
952
|
+
this.listDecisionsForThread(threadId),
|
|
953
|
+
this.listEventsForThread(threadId),
|
|
954
|
+
this.listArtifactsForThread(threadId),
|
|
955
|
+
this.listTranscriptsForThread(threadId),
|
|
956
|
+
this.listPendingDecisionsForThread(threadId),
|
|
957
|
+
this.listTaskNodesForThread(threadId),
|
|
958
|
+
this.listTaskDependenciesForThread(threadId),
|
|
959
|
+
this.listTaskClaimsForThread(threadId),
|
|
960
|
+
this.listTaskMailboxMessagesForThread(threadId),
|
|
961
|
+
this.listTaskVerifierJobsForThread(threadId),
|
|
962
|
+
this.listTaskEvidenceForThread(threadId),
|
|
963
|
+
]);
|
|
964
|
+
return {
|
|
965
|
+
...summary,
|
|
966
|
+
sessions,
|
|
967
|
+
decisions,
|
|
968
|
+
events,
|
|
969
|
+
artifacts,
|
|
970
|
+
transcripts,
|
|
971
|
+
pendingDecisions,
|
|
972
|
+
nodes,
|
|
973
|
+
dependencies,
|
|
974
|
+
claims,
|
|
975
|
+
mailbox,
|
|
976
|
+
verifierJobs,
|
|
977
|
+
evidence,
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
async listThreads(options = {}) {
|
|
981
|
+
await this.ensureSchema();
|
|
982
|
+
const clauses = buildThreadListWhereClauses(options);
|
|
983
|
+
const whereClause = clauses.length > 0 ? `WHERE ${clauses.join(" AND ")}` : "";
|
|
984
|
+
const limitClause = typeof options.limit === "number" && options.limit > 0
|
|
985
|
+
? `LIMIT ${Math.trunc(options.limit)}`
|
|
986
|
+
: "";
|
|
987
|
+
const rows = await executeRawSql(this.runtime, `SELECT
|
|
988
|
+
thread.*,
|
|
989
|
+
COALESCE(session_counts.session_count, 0) AS session_count,
|
|
990
|
+
COALESCE(session_counts.active_session_count, 0) AS active_session_count,
|
|
991
|
+
latest.session_id AS latest_session_id,
|
|
992
|
+
latest.label AS latest_session_label,
|
|
993
|
+
latest.workdir AS latest_workdir,
|
|
994
|
+
latest.repo AS latest_repo,
|
|
995
|
+
latest.last_activity_at AS latest_activity_at,
|
|
996
|
+
COALESCE(decision_counts.decision_count, 0) AS decision_count,
|
|
997
|
+
COALESCE(node_counts.node_count, 0) AS node_count,
|
|
998
|
+
COALESCE(node_counts.ready_node_count, 0) AS ready_node_count,
|
|
999
|
+
COALESCE(node_counts.completed_node_count, 0) AS completed_node_count,
|
|
1000
|
+
COALESCE(verifier_counts.verifier_job_count, 0) AS verifier_job_count,
|
|
1001
|
+
COALESCE(evidence_counts.evidence_count, 0) AS evidence_count
|
|
1002
|
+
FROM orchestrator_task_threads AS thread
|
|
1003
|
+
LEFT JOIN (
|
|
1004
|
+
SELECT
|
|
1005
|
+
thread_id,
|
|
1006
|
+
COUNT(*) AS session_count,
|
|
1007
|
+
SUM(CASE WHEN status IN ('active', 'blocked', 'tool_running') THEN 1 ELSE 0 END) AS active_session_count
|
|
1008
|
+
FROM orchestrator_task_sessions
|
|
1009
|
+
GROUP BY thread_id
|
|
1010
|
+
) AS session_counts
|
|
1011
|
+
ON session_counts.thread_id = thread.id
|
|
1012
|
+
LEFT JOIN (
|
|
1013
|
+
SELECT latest_session.thread_id,
|
|
1014
|
+
latest_session.session_id,
|
|
1015
|
+
latest_session.label,
|
|
1016
|
+
latest_session.workdir,
|
|
1017
|
+
latest_session.repo,
|
|
1018
|
+
latest_session.last_activity_at
|
|
1019
|
+
FROM orchestrator_task_sessions AS latest_session
|
|
1020
|
+
INNER JOIN (
|
|
1021
|
+
SELECT thread_id, MAX(last_activity_at) AS max_last_activity_at
|
|
1022
|
+
FROM orchestrator_task_sessions
|
|
1023
|
+
GROUP BY thread_id
|
|
1024
|
+
) AS grouped
|
|
1025
|
+
ON grouped.thread_id = latest_session.thread_id
|
|
1026
|
+
AND grouped.max_last_activity_at = latest_session.last_activity_at
|
|
1027
|
+
) AS latest
|
|
1028
|
+
ON latest.thread_id = thread.id
|
|
1029
|
+
LEFT JOIN (
|
|
1030
|
+
SELECT thread_id, COUNT(*) AS decision_count
|
|
1031
|
+
FROM orchestrator_task_decisions
|
|
1032
|
+
GROUP BY thread_id
|
|
1033
|
+
) AS decision_counts
|
|
1034
|
+
ON decision_counts.thread_id = thread.id
|
|
1035
|
+
LEFT JOIN (
|
|
1036
|
+
SELECT
|
|
1037
|
+
thread_id,
|
|
1038
|
+
COUNT(*) AS node_count,
|
|
1039
|
+
SUM(CASE WHEN status = 'ready' THEN 1 ELSE 0 END) AS ready_node_count,
|
|
1040
|
+
SUM(CASE WHEN status = 'completed' THEN 1 ELSE 0 END) AS completed_node_count
|
|
1041
|
+
FROM orchestrator_task_nodes
|
|
1042
|
+
GROUP BY thread_id
|
|
1043
|
+
) AS node_counts
|
|
1044
|
+
ON node_counts.thread_id = thread.id
|
|
1045
|
+
LEFT JOIN (
|
|
1046
|
+
SELECT thread_id, COUNT(*) AS verifier_job_count
|
|
1047
|
+
FROM orchestrator_task_verifier_jobs
|
|
1048
|
+
GROUP BY thread_id
|
|
1049
|
+
) AS verifier_counts
|
|
1050
|
+
ON verifier_counts.thread_id = thread.id
|
|
1051
|
+
LEFT JOIN (
|
|
1052
|
+
SELECT thread_id, COUNT(*) AS evidence_count
|
|
1053
|
+
FROM orchestrator_task_evidence
|
|
1054
|
+
GROUP BY thread_id
|
|
1055
|
+
) AS evidence_counts
|
|
1056
|
+
ON evidence_counts.thread_id = thread.id
|
|
1057
|
+
${whereClause}
|
|
1058
|
+
ORDER BY thread.updated_at DESC
|
|
1059
|
+
${limitClause}`);
|
|
1060
|
+
return rows.map(parseThreadSummaryRow);
|
|
1061
|
+
}
|
|
1062
|
+
async countThreads(options = {}) {
|
|
1063
|
+
await this.ensureSchema();
|
|
1064
|
+
const clauses = buildThreadListWhereClauses(options);
|
|
1065
|
+
const whereClause = clauses.length > 0 ? `WHERE ${clauses.join(" AND ")}` : "";
|
|
1066
|
+
const rows = await executeRawSql(this.runtime, `SELECT COUNT(*) AS total
|
|
1067
|
+
FROM orchestrator_task_threads AS thread
|
|
1068
|
+
LEFT JOIN (
|
|
1069
|
+
SELECT
|
|
1070
|
+
thread_id,
|
|
1071
|
+
COUNT(*) AS session_count,
|
|
1072
|
+
SUM(CASE WHEN status IN ('active', 'blocked', 'tool_running') THEN 1 ELSE 0 END) AS active_session_count
|
|
1073
|
+
FROM orchestrator_task_sessions
|
|
1074
|
+
GROUP BY thread_id
|
|
1075
|
+
) AS session_counts
|
|
1076
|
+
ON session_counts.thread_id = thread.id
|
|
1077
|
+
LEFT JOIN (
|
|
1078
|
+
SELECT latest_session.thread_id,
|
|
1079
|
+
latest_session.session_id,
|
|
1080
|
+
latest_session.label,
|
|
1081
|
+
latest_session.workdir,
|
|
1082
|
+
latest_session.repo,
|
|
1083
|
+
latest_session.last_activity_at
|
|
1084
|
+
FROM orchestrator_task_sessions AS latest_session
|
|
1085
|
+
INNER JOIN (
|
|
1086
|
+
SELECT thread_id, MAX(last_activity_at) AS max_last_activity_at
|
|
1087
|
+
FROM orchestrator_task_sessions
|
|
1088
|
+
GROUP BY thread_id
|
|
1089
|
+
) AS grouped
|
|
1090
|
+
ON grouped.thread_id = latest_session.thread_id
|
|
1091
|
+
AND grouped.max_last_activity_at = latest_session.last_activity_at
|
|
1092
|
+
) AS latest
|
|
1093
|
+
ON latest.thread_id = thread.id
|
|
1094
|
+
LEFT JOIN (
|
|
1095
|
+
SELECT
|
|
1096
|
+
thread_id,
|
|
1097
|
+
COUNT(*) AS node_count,
|
|
1098
|
+
SUM(CASE WHEN status = 'ready' THEN 1 ELSE 0 END) AS ready_node_count,
|
|
1099
|
+
SUM(CASE WHEN status = 'completed' THEN 1 ELSE 0 END) AS completed_node_count
|
|
1100
|
+
FROM orchestrator_task_nodes
|
|
1101
|
+
GROUP BY thread_id
|
|
1102
|
+
) AS node_counts
|
|
1103
|
+
ON node_counts.thread_id = thread.id
|
|
1104
|
+
LEFT JOIN (
|
|
1105
|
+
SELECT thread_id, COUNT(*) AS verifier_job_count
|
|
1106
|
+
FROM orchestrator_task_verifier_jobs
|
|
1107
|
+
GROUP BY thread_id
|
|
1108
|
+
) AS verifier_counts
|
|
1109
|
+
ON verifier_counts.thread_id = thread.id
|
|
1110
|
+
LEFT JOIN (
|
|
1111
|
+
SELECT thread_id, COUNT(*) AS evidence_count
|
|
1112
|
+
FROM orchestrator_task_evidence
|
|
1113
|
+
GROUP BY thread_id
|
|
1114
|
+
) AS evidence_counts
|
|
1115
|
+
ON evidence_counts.thread_id = thread.id
|
|
1116
|
+
${whereClause}`);
|
|
1117
|
+
return toNumber(rows[0]?.total, 0);
|
|
1118
|
+
}
|
|
1119
|
+
async getThreadSummary(threadId) {
|
|
1120
|
+
const rows = await this.listThreads({
|
|
1121
|
+
threadId,
|
|
1122
|
+
includeArchived: true,
|
|
1123
|
+
});
|
|
1124
|
+
return rows[0] ?? null;
|
|
1125
|
+
}
|
|
1126
|
+
async findThreadIdBySessionId(sessionId) {
|
|
1127
|
+
await this.ensureSchema();
|
|
1128
|
+
const rows = await executeRawSql(this.runtime, `SELECT thread_id
|
|
1129
|
+
FROM orchestrator_task_sessions
|
|
1130
|
+
WHERE session_id = ${sqlQuote(sessionId)}
|
|
1131
|
+
LIMIT 1`);
|
|
1132
|
+
return rows[0] ? toText(rows[0].thread_id) : null;
|
|
1133
|
+
}
|
|
1134
|
+
async getSession(sessionId) {
|
|
1135
|
+
await this.ensureSchema();
|
|
1136
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1137
|
+
FROM orchestrator_task_sessions
|
|
1138
|
+
WHERE session_id = ${sqlQuote(sessionId)}
|
|
1139
|
+
LIMIT 1`);
|
|
1140
|
+
return rows[0] ? parseSessionRow(rows[0]) : null;
|
|
1141
|
+
}
|
|
1142
|
+
async registerSession(input) {
|
|
1143
|
+
await this.ensureSchema();
|
|
1144
|
+
const nowIso = isoNow();
|
|
1145
|
+
const registeredAt = input.registeredAt ?? Date.now();
|
|
1146
|
+
const lastActivityAt = input.lastActivityAt ?? registeredAt;
|
|
1147
|
+
const existingThread = await this.getThreadRecord(input.threadId);
|
|
1148
|
+
if (!existingThread) {
|
|
1149
|
+
throw new Error(`Task thread ${input.threadId} not found`);
|
|
1150
|
+
}
|
|
1151
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_sessions (
|
|
1152
|
+
id, thread_id, agent_id, session_id, framework, provider_source, label,
|
|
1153
|
+
original_task, workdir, repo, status, decision_count, auto_resolved_count,
|
|
1154
|
+
registered_at, last_activity_at, idle_check_count, task_delivered,
|
|
1155
|
+
completion_summary, last_seen_decision_index, last_input_sent_at, stopped_at,
|
|
1156
|
+
created_at, updated_at, metadata_json
|
|
1157
|
+
) VALUES (
|
|
1158
|
+
${sqlQuote(input.sessionId)},
|
|
1159
|
+
${sqlQuote(input.threadId)},
|
|
1160
|
+
${sqlQuote(this.runtime.agentId)},
|
|
1161
|
+
${sqlQuote(input.sessionId)},
|
|
1162
|
+
${sqlQuote(input.framework)},
|
|
1163
|
+
${sqlText(input.providerSource ?? null)},
|
|
1164
|
+
${sqlQuote(input.label)},
|
|
1165
|
+
${sqlQuote(input.originalTask)},
|
|
1166
|
+
${sqlQuote(input.workdir)},
|
|
1167
|
+
${sqlText(input.repo ?? null)},
|
|
1168
|
+
${sqlQuote(input.status ?? "active")},
|
|
1169
|
+
${sqlInteger(input.decisionCount ?? 0)},
|
|
1170
|
+
${sqlInteger(input.autoResolvedCount ?? 0)},
|
|
1171
|
+
${sqlInteger(registeredAt)},
|
|
1172
|
+
${sqlInteger(lastActivityAt)},
|
|
1173
|
+
${sqlInteger(input.idleCheckCount ?? 0)},
|
|
1174
|
+
${sqlBoolean(input.taskDelivered ?? false)},
|
|
1175
|
+
${sqlText(input.completionSummary ?? null)},
|
|
1176
|
+
${sqlInteger(input.lastSeenDecisionIndex ?? 0)},
|
|
1177
|
+
${sqlInteger(input.lastInputSentAt ?? null)},
|
|
1178
|
+
${sqlInteger(input.stoppedAt ?? null)},
|
|
1179
|
+
${sqlQuote(nowIso)},
|
|
1180
|
+
${sqlQuote(nowIso)},
|
|
1181
|
+
${sqlJson(input.metadata ?? {})}
|
|
1182
|
+
)
|
|
1183
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
1184
|
+
thread_id = EXCLUDED.thread_id,
|
|
1185
|
+
framework = EXCLUDED.framework,
|
|
1186
|
+
provider_source = EXCLUDED.provider_source,
|
|
1187
|
+
label = EXCLUDED.label,
|
|
1188
|
+
original_task = EXCLUDED.original_task,
|
|
1189
|
+
workdir = EXCLUDED.workdir,
|
|
1190
|
+
repo = EXCLUDED.repo,
|
|
1191
|
+
status = EXCLUDED.status,
|
|
1192
|
+
decision_count = EXCLUDED.decision_count,
|
|
1193
|
+
auto_resolved_count = EXCLUDED.auto_resolved_count,
|
|
1194
|
+
registered_at = EXCLUDED.registered_at,
|
|
1195
|
+
last_activity_at = EXCLUDED.last_activity_at,
|
|
1196
|
+
idle_check_count = EXCLUDED.idle_check_count,
|
|
1197
|
+
task_delivered = EXCLUDED.task_delivered,
|
|
1198
|
+
completion_summary = EXCLUDED.completion_summary,
|
|
1199
|
+
last_seen_decision_index = EXCLUDED.last_seen_decision_index,
|
|
1200
|
+
last_input_sent_at = EXCLUDED.last_input_sent_at,
|
|
1201
|
+
stopped_at = EXCLUDED.stopped_at,
|
|
1202
|
+
updated_at = EXCLUDED.updated_at,
|
|
1203
|
+
metadata_json = EXCLUDED.metadata_json`);
|
|
1204
|
+
await this.appendEvent({
|
|
1205
|
+
threadId: input.threadId,
|
|
1206
|
+
sessionId: input.sessionId,
|
|
1207
|
+
eventType: "session_registered",
|
|
1208
|
+
timestamp: registeredAt,
|
|
1209
|
+
summary: `Registered session "${input.label}"`,
|
|
1210
|
+
data: {
|
|
1211
|
+
framework: input.framework,
|
|
1212
|
+
repo: input.repo ?? null,
|
|
1213
|
+
workdir: input.workdir,
|
|
1214
|
+
},
|
|
1215
|
+
});
|
|
1216
|
+
await this.recomputeThreadStatus(input.threadId);
|
|
1217
|
+
}
|
|
1218
|
+
async updateSession(sessionId, patch) {
|
|
1219
|
+
await this.ensureSchema();
|
|
1220
|
+
const threadId = await this.findThreadIdBySessionId(sessionId);
|
|
1221
|
+
if (!threadId)
|
|
1222
|
+
return;
|
|
1223
|
+
const existingRows = await executeRawSql(this.runtime, `SELECT *
|
|
1224
|
+
FROM orchestrator_task_sessions
|
|
1225
|
+
WHERE session_id = ${sqlQuote(sessionId)}
|
|
1226
|
+
LIMIT 1`);
|
|
1227
|
+
if (!existingRows[0])
|
|
1228
|
+
return;
|
|
1229
|
+
const existing = parseSessionRow(existingRows[0]);
|
|
1230
|
+
const nextMeta = patch.metadata
|
|
1231
|
+
? { ...existing.metadata, ...patch.metadata }
|
|
1232
|
+
: existing.metadata;
|
|
1233
|
+
const nowIso = isoNow();
|
|
1234
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_sessions
|
|
1235
|
+
SET status = ${sqlQuote(patch.status ?? existing.status)},
|
|
1236
|
+
decision_count = ${sqlInteger(patch.decisionCount ?? existing.decisionCount)},
|
|
1237
|
+
auto_resolved_count = ${sqlInteger(patch.autoResolvedCount ?? existing.autoResolvedCount)},
|
|
1238
|
+
last_activity_at = ${sqlInteger(patch.lastActivityAt ?? existing.lastActivityAt)},
|
|
1239
|
+
idle_check_count = ${sqlInteger(patch.idleCheckCount ?? existing.idleCheckCount)},
|
|
1240
|
+
task_delivered = ${sqlBoolean(patch.taskDelivered ?? existing.taskDelivered)},
|
|
1241
|
+
completion_summary = ${sqlText(patch.completionSummary ?? existing.completionSummary)},
|
|
1242
|
+
last_seen_decision_index = ${sqlInteger(patch.lastSeenDecisionIndex ?? existing.lastSeenDecisionIndex)},
|
|
1243
|
+
last_input_sent_at = ${sqlInteger(patch.lastInputSentAt ?? existing.lastInputSentAt)},
|
|
1244
|
+
stopped_at = ${sqlInteger(patch.stoppedAt ?? existing.stoppedAt)},
|
|
1245
|
+
updated_at = ${sqlQuote(nowIso)},
|
|
1246
|
+
metadata_json = ${sqlJson(nextMeta)}
|
|
1247
|
+
WHERE session_id = ${sqlQuote(sessionId)}`);
|
|
1248
|
+
await this.appendEvent({
|
|
1249
|
+
threadId,
|
|
1250
|
+
sessionId,
|
|
1251
|
+
eventType: "session_updated",
|
|
1252
|
+
timestamp: patch.lastActivityAt ?? Date.now(),
|
|
1253
|
+
summary: `Updated session "${existing.label}"`,
|
|
1254
|
+
data: {
|
|
1255
|
+
status: patch.status ?? existing.status,
|
|
1256
|
+
decisionCount: patch.decisionCount ?? existing.decisionCount,
|
|
1257
|
+
autoResolvedCount: patch.autoResolvedCount ?? existing.autoResolvedCount,
|
|
1258
|
+
},
|
|
1259
|
+
});
|
|
1260
|
+
await this.recomputeThreadStatus(threadId);
|
|
1261
|
+
}
|
|
1262
|
+
async recordDecision(input) {
|
|
1263
|
+
await this.ensureSchema();
|
|
1264
|
+
const createdAt = isoNow();
|
|
1265
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_decisions (
|
|
1266
|
+
id, thread_id, session_id, timestamp, event_type, prompt_text, decision,
|
|
1267
|
+
response, reasoning, metadata_json, created_at
|
|
1268
|
+
) VALUES (
|
|
1269
|
+
${sqlQuote(`decision-${crypto.randomUUID()}`)},
|
|
1270
|
+
${sqlQuote(input.threadId)},
|
|
1271
|
+
${sqlQuote(input.sessionId)},
|
|
1272
|
+
${sqlInteger(input.timestamp)},
|
|
1273
|
+
${sqlQuote(input.event)},
|
|
1274
|
+
${sqlQuote(input.promptText)},
|
|
1275
|
+
${sqlQuote(input.decision)},
|
|
1276
|
+
${sqlText(input.response ?? null)},
|
|
1277
|
+
${sqlQuote(input.reasoning)},
|
|
1278
|
+
${sqlJson(input.metadata ?? {})},
|
|
1279
|
+
${sqlQuote(createdAt)}
|
|
1280
|
+
)`);
|
|
1281
|
+
await this.appendEvent({
|
|
1282
|
+
threadId: input.threadId,
|
|
1283
|
+
sessionId: input.sessionId,
|
|
1284
|
+
eventType: "decision_recorded",
|
|
1285
|
+
timestamp: input.timestamp,
|
|
1286
|
+
summary: `${input.decision} decision recorded`,
|
|
1287
|
+
data: {
|
|
1288
|
+
event: input.event,
|
|
1289
|
+
promptText: input.promptText,
|
|
1290
|
+
response: input.response ?? null,
|
|
1291
|
+
},
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
async appendEvent(input) {
|
|
1295
|
+
await this.ensureSchema();
|
|
1296
|
+
const createdAt = isoNow();
|
|
1297
|
+
const timestamp = input.timestamp ?? Date.now();
|
|
1298
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_events (
|
|
1299
|
+
id, thread_id, session_id, event_type, timestamp, summary, data_json, created_at
|
|
1300
|
+
) VALUES (
|
|
1301
|
+
${sqlQuote(`event-${crypto.randomUUID()}`)},
|
|
1302
|
+
${sqlQuote(input.threadId)},
|
|
1303
|
+
${sqlText(input.sessionId ?? null)},
|
|
1304
|
+
${sqlQuote(input.eventType)},
|
|
1305
|
+
${sqlInteger(timestamp)},
|
|
1306
|
+
${sqlQuote(input.summary ?? "")},
|
|
1307
|
+
${sqlJson(input.data ?? {})},
|
|
1308
|
+
${sqlQuote(createdAt)}
|
|
1309
|
+
)`);
|
|
1310
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1311
|
+
SET updated_at = ${sqlQuote(createdAt)}
|
|
1312
|
+
WHERE id = ${sqlQuote(input.threadId)}`);
|
|
1313
|
+
}
|
|
1314
|
+
async recordArtifact(input) {
|
|
1315
|
+
await this.ensureSchema();
|
|
1316
|
+
const createdAt = isoNow();
|
|
1317
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_artifacts (
|
|
1318
|
+
id, thread_id, session_id, artifact_type, title, path, uri, mime_type, metadata_json, created_at
|
|
1319
|
+
) VALUES (
|
|
1320
|
+
${sqlQuote(`artifact-${crypto.randomUUID()}`)},
|
|
1321
|
+
${sqlQuote(input.threadId)},
|
|
1322
|
+
${sqlText(input.sessionId ?? null)},
|
|
1323
|
+
${sqlQuote(input.artifactType)},
|
|
1324
|
+
${sqlQuote(input.title)},
|
|
1325
|
+
${sqlText(input.path ?? null)},
|
|
1326
|
+
${sqlText(input.uri ?? null)},
|
|
1327
|
+
${sqlText(input.mimeType ?? null)},
|
|
1328
|
+
${sqlJson(input.metadata ?? {})},
|
|
1329
|
+
${sqlQuote(createdAt)}
|
|
1330
|
+
)`);
|
|
1331
|
+
await this.appendEvent({
|
|
1332
|
+
threadId: input.threadId,
|
|
1333
|
+
sessionId: input.sessionId ?? null,
|
|
1334
|
+
eventType: "artifact_recorded",
|
|
1335
|
+
summary: `Recorded ${input.artifactType} artifact`,
|
|
1336
|
+
data: {
|
|
1337
|
+
artifactType: input.artifactType,
|
|
1338
|
+
title: input.title,
|
|
1339
|
+
path: input.path ?? null,
|
|
1340
|
+
uri: input.uri ?? null,
|
|
1341
|
+
},
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
async recordTranscript(input) {
|
|
1345
|
+
await this.ensureSchema();
|
|
1346
|
+
const createdAt = isoNow();
|
|
1347
|
+
const timestamp = input.timestamp ?? Date.now();
|
|
1348
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_transcripts (
|
|
1349
|
+
id, thread_id, session_id, timestamp, direction, content, metadata_json, created_at
|
|
1350
|
+
) VALUES (
|
|
1351
|
+
${sqlQuote(`transcript-${crypto.randomUUID()}`)},
|
|
1352
|
+
${sqlQuote(input.threadId)},
|
|
1353
|
+
${sqlQuote(input.sessionId)},
|
|
1354
|
+
${sqlInteger(timestamp)},
|
|
1355
|
+
${sqlQuote(input.direction)},
|
|
1356
|
+
${sqlQuote(input.content)},
|
|
1357
|
+
${sqlJson(input.metadata ?? {})},
|
|
1358
|
+
${sqlQuote(createdAt)}
|
|
1359
|
+
)`);
|
|
1360
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1361
|
+
SET updated_at = ${sqlQuote(createdAt)}
|
|
1362
|
+
WHERE id = ${sqlQuote(input.threadId)}`);
|
|
1363
|
+
}
|
|
1364
|
+
async updateThreadSummary(threadId, summary) {
|
|
1365
|
+
await this.ensureSchema();
|
|
1366
|
+
const thread = await this.getThreadRecord(threadId);
|
|
1367
|
+
if (!thread)
|
|
1368
|
+
return;
|
|
1369
|
+
const nextSearchText = buildSearchText([
|
|
1370
|
+
thread.title,
|
|
1371
|
+
thread.originalRequest,
|
|
1372
|
+
summary,
|
|
1373
|
+
thread.searchText,
|
|
1374
|
+
]);
|
|
1375
|
+
const nowIso = isoNow();
|
|
1376
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1377
|
+
SET summary = ${sqlQuote(summary)},
|
|
1378
|
+
search_text = ${sqlQuote(nextSearchText)},
|
|
1379
|
+
updated_at = ${sqlQuote(nowIso)}
|
|
1380
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
1381
|
+
await this.appendEvent({
|
|
1382
|
+
threadId,
|
|
1383
|
+
eventType: "summary_updated",
|
|
1384
|
+
summary: "Updated task summary",
|
|
1385
|
+
data: { summary },
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
async updateThread(threadId, patch) {
|
|
1389
|
+
await this.ensureSchema();
|
|
1390
|
+
const existing = await this.getThreadRecord(threadId);
|
|
1391
|
+
if (!existing)
|
|
1392
|
+
return;
|
|
1393
|
+
const nextMetadata = patch.metadata
|
|
1394
|
+
? { ...existing.metadata, ...patch.metadata }
|
|
1395
|
+
: existing.metadata;
|
|
1396
|
+
const nextSummary = patch.summary ?? existing.summary;
|
|
1397
|
+
const nextSearchText = buildSearchText([
|
|
1398
|
+
existing.title,
|
|
1399
|
+
existing.originalRequest,
|
|
1400
|
+
nextSummary,
|
|
1401
|
+
patch.status ?? existing.status,
|
|
1402
|
+
existing.scenarioId,
|
|
1403
|
+
existing.batchId,
|
|
1404
|
+
JSON.stringify(nextMetadata),
|
|
1405
|
+
]);
|
|
1406
|
+
const nowIso = isoNow();
|
|
1407
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1408
|
+
SET status = ${sqlQuote(patch.status ?? existing.status)},
|
|
1409
|
+
summary = ${sqlQuote(nextSummary)},
|
|
1410
|
+
current_plan_json = ${sqlJson(patch.currentPlan ?? existing.currentPlan)},
|
|
1411
|
+
search_text = ${sqlQuote(nextSearchText)},
|
|
1412
|
+
closed_at = ${sqlText(patch.closedAt !== undefined
|
|
1413
|
+
? patch.closedAt
|
|
1414
|
+
: existing.closedAt)},
|
|
1415
|
+
archived_at = ${sqlText(patch.archivedAt !== undefined
|
|
1416
|
+
? patch.archivedAt
|
|
1417
|
+
: existing.archivedAt)},
|
|
1418
|
+
last_user_turn_at = ${sqlText(patch.lastUserTurnAt !== undefined
|
|
1419
|
+
? patch.lastUserTurnAt
|
|
1420
|
+
: existing.lastUserTurnAt)},
|
|
1421
|
+
last_coordinator_turn_at = ${sqlText(patch.lastCoordinatorTurnAt !== undefined
|
|
1422
|
+
? patch.lastCoordinatorTurnAt
|
|
1423
|
+
: existing.lastCoordinatorTurnAt)},
|
|
1424
|
+
updated_at = ${sqlQuote(nowIso)},
|
|
1425
|
+
metadata_json = ${sqlJson(nextMetadata)}
|
|
1426
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
1427
|
+
}
|
|
1428
|
+
async archiveThread(threadId) {
|
|
1429
|
+
await this.ensureSchema();
|
|
1430
|
+
const nowIso = isoNow();
|
|
1431
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1432
|
+
SET status = 'archived',
|
|
1433
|
+
archived_at = ${sqlQuote(nowIso)},
|
|
1434
|
+
closed_at = COALESCE(closed_at, ${sqlQuote(nowIso)}),
|
|
1435
|
+
updated_at = ${sqlQuote(nowIso)}
|
|
1436
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
1437
|
+
await this.appendEvent({
|
|
1438
|
+
threadId,
|
|
1439
|
+
eventType: "task_archived",
|
|
1440
|
+
summary: "Archived task thread",
|
|
1441
|
+
data: {},
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
async reopenThread(threadId) {
|
|
1445
|
+
await this.ensureSchema();
|
|
1446
|
+
const nowIso = isoNow();
|
|
1447
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1448
|
+
SET status = 'open',
|
|
1449
|
+
archived_at = NULL,
|
|
1450
|
+
closed_at = NULL,
|
|
1451
|
+
updated_at = ${sqlQuote(nowIso)}
|
|
1452
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
1453
|
+
await this.appendEvent({
|
|
1454
|
+
threadId,
|
|
1455
|
+
eventType: "task_reopened",
|
|
1456
|
+
summary: "Reopened task thread",
|
|
1457
|
+
data: {},
|
|
1458
|
+
});
|
|
1459
|
+
await this.recomputeThreadStatus(threadId);
|
|
1460
|
+
}
|
|
1461
|
+
async upsertPendingDecision(input) {
|
|
1462
|
+
await this.ensureSchema();
|
|
1463
|
+
const createdAt = input.createdAt ?? Date.now();
|
|
1464
|
+
const nowIso = isoNow();
|
|
1465
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_pending_decisions (
|
|
1466
|
+
session_id,
|
|
1467
|
+
thread_id,
|
|
1468
|
+
prompt_text,
|
|
1469
|
+
recent_output,
|
|
1470
|
+
llm_decision_json,
|
|
1471
|
+
task_context_json,
|
|
1472
|
+
created_at,
|
|
1473
|
+
updated_at
|
|
1474
|
+
) VALUES (
|
|
1475
|
+
${sqlQuote(input.sessionId)},
|
|
1476
|
+
${sqlQuote(input.threadId)},
|
|
1477
|
+
${sqlQuote(input.promptText)},
|
|
1478
|
+
${sqlQuote(input.recentOutput)},
|
|
1479
|
+
${sqlJson(input.llmDecision)},
|
|
1480
|
+
${sqlJson(input.taskContext)},
|
|
1481
|
+
${sqlInteger(createdAt)},
|
|
1482
|
+
${sqlQuote(nowIso)}
|
|
1483
|
+
)
|
|
1484
|
+
ON CONFLICT(session_id) DO UPDATE SET
|
|
1485
|
+
thread_id = EXCLUDED.thread_id,
|
|
1486
|
+
prompt_text = EXCLUDED.prompt_text,
|
|
1487
|
+
recent_output = EXCLUDED.recent_output,
|
|
1488
|
+
llm_decision_json = EXCLUDED.llm_decision_json,
|
|
1489
|
+
task_context_json = EXCLUDED.task_context_json,
|
|
1490
|
+
created_at = EXCLUDED.created_at,
|
|
1491
|
+
updated_at = EXCLUDED.updated_at`);
|
|
1492
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1493
|
+
SET updated_at = ${sqlQuote(nowIso)}
|
|
1494
|
+
WHERE id = ${sqlQuote(input.threadId)}`);
|
|
1495
|
+
}
|
|
1496
|
+
async deletePendingDecision(sessionId) {
|
|
1497
|
+
await this.ensureSchema();
|
|
1498
|
+
const rows = await executeRawSql(this.runtime, `SELECT thread_id
|
|
1499
|
+
FROM orchestrator_task_pending_decisions
|
|
1500
|
+
WHERE session_id = ${sqlQuote(sessionId)}
|
|
1501
|
+
LIMIT 1`);
|
|
1502
|
+
if (rows.length === 0)
|
|
1503
|
+
return;
|
|
1504
|
+
const threadId = toText(rows[0]?.thread_id);
|
|
1505
|
+
await executeRawSql(this.runtime, `DELETE FROM orchestrator_task_pending_decisions
|
|
1506
|
+
WHERE session_id = ${sqlQuote(sessionId)}`);
|
|
1507
|
+
if (threadId) {
|
|
1508
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
1509
|
+
SET updated_at = ${sqlQuote(isoNow())}
|
|
1510
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
async listPendingDecisions() {
|
|
1514
|
+
await this.ensureSchema();
|
|
1515
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1516
|
+
FROM orchestrator_task_pending_decisions
|
|
1517
|
+
ORDER BY created_at ASC`);
|
|
1518
|
+
return rows.map(parsePendingDecisionRow);
|
|
1519
|
+
}
|
|
1520
|
+
async listPendingDecisionsForThread(threadId) {
|
|
1521
|
+
await this.ensureSchema();
|
|
1522
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1523
|
+
FROM orchestrator_task_pending_decisions
|
|
1524
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1525
|
+
ORDER BY created_at ASC`);
|
|
1526
|
+
return rows.map(parsePendingDecisionRow);
|
|
1527
|
+
}
|
|
1528
|
+
async createTaskNode(input) {
|
|
1529
|
+
await this.ensureSchema();
|
|
1530
|
+
const nowIso = isoNow();
|
|
1531
|
+
const id = input.id?.trim() || `node-${crypto.randomUUID()}`;
|
|
1532
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_nodes (
|
|
1533
|
+
id, thread_id, parent_node_id, kind, status, title, instructions,
|
|
1534
|
+
acceptance_criteria_json, required_capabilities_json, expected_artifacts_json,
|
|
1535
|
+
assigned_session_id, assigned_label, agent_type, workdir, repo, priority,
|
|
1536
|
+
depth, sequence, created_from, metadata_json, created_at, updated_at,
|
|
1537
|
+
started_at, completed_at
|
|
1538
|
+
) VALUES (
|
|
1539
|
+
${sqlQuote(id)},
|
|
1540
|
+
${sqlQuote(input.threadId)},
|
|
1541
|
+
${sqlText(input.parentNodeId ?? null)},
|
|
1542
|
+
${sqlQuote(input.kind ?? "execution")},
|
|
1543
|
+
${sqlQuote(input.status ?? "planned")},
|
|
1544
|
+
${sqlQuote(input.title)},
|
|
1545
|
+
${sqlQuote(input.instructions ?? "")},
|
|
1546
|
+
${sqlJson(input.acceptanceCriteria ?? [])},
|
|
1547
|
+
${sqlJson(input.requiredCapabilities ?? [])},
|
|
1548
|
+
${sqlJson(input.expectedArtifacts ?? [])},
|
|
1549
|
+
${sqlText(input.assignedSessionId ?? null)},
|
|
1550
|
+
${sqlText(input.assignedLabel ?? null)},
|
|
1551
|
+
${sqlText(input.agentType ?? null)},
|
|
1552
|
+
${sqlText(input.workdir ?? null)},
|
|
1553
|
+
${sqlText(input.repo ?? null)},
|
|
1554
|
+
${sqlInteger(input.priority ?? 0)},
|
|
1555
|
+
${sqlInteger(input.depth ?? 0)},
|
|
1556
|
+
${sqlInteger(input.sequence ?? 0)},
|
|
1557
|
+
${sqlText(input.createdFrom ?? null)},
|
|
1558
|
+
${sqlJson(input.metadata ?? {})},
|
|
1559
|
+
${sqlQuote(nowIso)},
|
|
1560
|
+
${sqlQuote(nowIso)},
|
|
1561
|
+
${sqlText(input.startedAt ?? null)},
|
|
1562
|
+
${sqlText(input.completedAt ?? null)}
|
|
1563
|
+
)`);
|
|
1564
|
+
await this.appendEvent({
|
|
1565
|
+
threadId: input.threadId,
|
|
1566
|
+
sessionId: input.assignedSessionId ?? null,
|
|
1567
|
+
eventType: "task_node_created",
|
|
1568
|
+
summary: `Created task node "${input.title}"`,
|
|
1569
|
+
data: {
|
|
1570
|
+
nodeId: id,
|
|
1571
|
+
kind: input.kind ?? "execution",
|
|
1572
|
+
status: input.status ?? "planned",
|
|
1573
|
+
parentNodeId: input.parentNodeId ?? null,
|
|
1574
|
+
},
|
|
1575
|
+
});
|
|
1576
|
+
const node = await this.getTaskNode(id);
|
|
1577
|
+
if (!node) {
|
|
1578
|
+
throw new Error(`Failed to create task node ${id}`);
|
|
1579
|
+
}
|
|
1580
|
+
await this.recomputeTaskGraphState(input.threadId);
|
|
1581
|
+
return node;
|
|
1582
|
+
}
|
|
1583
|
+
async getTaskNode(nodeId) {
|
|
1584
|
+
await this.ensureSchema();
|
|
1585
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1586
|
+
FROM orchestrator_task_nodes
|
|
1587
|
+
WHERE id = ${sqlQuote(nodeId)}
|
|
1588
|
+
LIMIT 1`);
|
|
1589
|
+
return rows[0] ? parseTaskNodeRow(rows[0]) : null;
|
|
1590
|
+
}
|
|
1591
|
+
async updateTaskNode(nodeId, patch) {
|
|
1592
|
+
await this.ensureSchema();
|
|
1593
|
+
const existing = await this.getTaskNode(nodeId);
|
|
1594
|
+
if (!existing)
|
|
1595
|
+
return;
|
|
1596
|
+
const nextMetadata = patch.metadata
|
|
1597
|
+
? { ...existing.metadata, ...patch.metadata }
|
|
1598
|
+
: existing.metadata;
|
|
1599
|
+
const nextStatus = patch.status ?? existing.status;
|
|
1600
|
+
const nextStartedAt = patch.startedAt !== undefined
|
|
1601
|
+
? patch.startedAt
|
|
1602
|
+
: nextStatus === "running" || nextStatus === "verifying"
|
|
1603
|
+
? (existing.startedAt ?? isoNow())
|
|
1604
|
+
: existing.startedAt;
|
|
1605
|
+
const nextCompletedAt = patch.completedAt !== undefined
|
|
1606
|
+
? patch.completedAt
|
|
1607
|
+
: ["completed", "failed", "canceled", "interrupted"].includes(nextStatus)
|
|
1608
|
+
? (existing.completedAt ?? isoNow())
|
|
1609
|
+
: null;
|
|
1610
|
+
const nowIso = isoNow();
|
|
1611
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_nodes
|
|
1612
|
+
SET parent_node_id = ${sqlText(patch.parentNodeId !== undefined
|
|
1613
|
+
? patch.parentNodeId
|
|
1614
|
+
: existing.parentNodeId)},
|
|
1615
|
+
kind = ${sqlQuote(patch.kind ?? existing.kind)},
|
|
1616
|
+
status = ${sqlQuote(nextStatus)},
|
|
1617
|
+
title = ${sqlQuote(patch.title ?? existing.title)},
|
|
1618
|
+
instructions = ${sqlQuote(patch.instructions ?? existing.instructions)},
|
|
1619
|
+
acceptance_criteria_json = ${sqlJson(patch.acceptanceCriteria ?? existing.acceptanceCriteria)},
|
|
1620
|
+
required_capabilities_json = ${sqlJson(patch.requiredCapabilities ?? existing.requiredCapabilities)},
|
|
1621
|
+
expected_artifacts_json = ${sqlJson(patch.expectedArtifacts ?? existing.expectedArtifacts)},
|
|
1622
|
+
assigned_session_id = ${sqlText(patch.assignedSessionId !== undefined
|
|
1623
|
+
? patch.assignedSessionId
|
|
1624
|
+
: existing.assignedSessionId)},
|
|
1625
|
+
assigned_label = ${sqlText(patch.assignedLabel !== undefined
|
|
1626
|
+
? patch.assignedLabel
|
|
1627
|
+
: existing.assignedLabel)},
|
|
1628
|
+
agent_type = ${sqlText(patch.agentType !== undefined
|
|
1629
|
+
? patch.agentType
|
|
1630
|
+
: existing.agentType)},
|
|
1631
|
+
workdir = ${sqlText(patch.workdir !== undefined ? patch.workdir : existing.workdir)},
|
|
1632
|
+
repo = ${sqlText(patch.repo !== undefined ? patch.repo : existing.repo)},
|
|
1633
|
+
priority = ${sqlInteger(patch.priority ?? existing.priority)},
|
|
1634
|
+
depth = ${sqlInteger(patch.depth ?? existing.depth)},
|
|
1635
|
+
sequence = ${sqlInteger(patch.sequence ?? existing.sequence)},
|
|
1636
|
+
created_from = ${sqlText(patch.createdFrom !== undefined
|
|
1637
|
+
? patch.createdFrom
|
|
1638
|
+
: existing.createdFrom)},
|
|
1639
|
+
metadata_json = ${sqlJson(nextMetadata)},
|
|
1640
|
+
updated_at = ${sqlQuote(nowIso)},
|
|
1641
|
+
started_at = ${sqlText(nextStartedAt)},
|
|
1642
|
+
completed_at = ${sqlText(nextCompletedAt)}
|
|
1643
|
+
WHERE id = ${sqlQuote(nodeId)}`);
|
|
1644
|
+
await this.appendEvent({
|
|
1645
|
+
threadId: existing.threadId,
|
|
1646
|
+
sessionId: patch.assignedSessionId !== undefined
|
|
1647
|
+
? patch.assignedSessionId
|
|
1648
|
+
: existing.assignedSessionId,
|
|
1649
|
+
eventType: "task_node_updated",
|
|
1650
|
+
summary: `Updated task node "${patch.title ?? existing.title}"`,
|
|
1651
|
+
data: {
|
|
1652
|
+
nodeId,
|
|
1653
|
+
status: nextStatus,
|
|
1654
|
+
},
|
|
1655
|
+
});
|
|
1656
|
+
await this.recomputeTaskGraphState(existing.threadId);
|
|
1657
|
+
}
|
|
1658
|
+
async listTaskNodesForThread(threadId) {
|
|
1659
|
+
await this.ensureSchema();
|
|
1660
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1661
|
+
FROM orchestrator_task_nodes
|
|
1662
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1663
|
+
ORDER BY depth ASC, sequence ASC, created_at ASC`);
|
|
1664
|
+
return rows.map(parseTaskNodeRow);
|
|
1665
|
+
}
|
|
1666
|
+
async listReadyTaskNodesForThread(threadId) {
|
|
1667
|
+
await this.ensureSchema();
|
|
1668
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1669
|
+
FROM orchestrator_task_nodes
|
|
1670
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1671
|
+
AND status = 'ready'
|
|
1672
|
+
ORDER BY priority DESC, depth ASC, sequence ASC, created_at ASC`);
|
|
1673
|
+
return rows.map(parseTaskNodeRow);
|
|
1674
|
+
}
|
|
1675
|
+
async createTaskDependency(input) {
|
|
1676
|
+
await this.ensureSchema();
|
|
1677
|
+
const createdAt = isoNow();
|
|
1678
|
+
const id = input.id?.trim() || `dep-${crypto.randomUUID()}`;
|
|
1679
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_dependencies (
|
|
1680
|
+
id, thread_id, from_node_id, to_node_id, dependency_kind, required_status,
|
|
1681
|
+
metadata_json, created_at
|
|
1682
|
+
) VALUES (
|
|
1683
|
+
${sqlQuote(id)},
|
|
1684
|
+
${sqlQuote(input.threadId)},
|
|
1685
|
+
${sqlQuote(input.fromNodeId)},
|
|
1686
|
+
${sqlQuote(input.toNodeId)},
|
|
1687
|
+
${sqlQuote(input.dependencyKind ?? "blocks")},
|
|
1688
|
+
${sqlQuote(input.requiredStatus ?? "completed")},
|
|
1689
|
+
${sqlJson(input.metadata ?? {})},
|
|
1690
|
+
${sqlQuote(createdAt)}
|
|
1691
|
+
)`);
|
|
1692
|
+
await this.appendEvent({
|
|
1693
|
+
threadId: input.threadId,
|
|
1694
|
+
eventType: "task_dependency_created",
|
|
1695
|
+
summary: `Created dependency ${input.fromNodeId} -> ${input.toNodeId}`,
|
|
1696
|
+
data: {
|
|
1697
|
+
dependencyId: id,
|
|
1698
|
+
fromNodeId: input.fromNodeId,
|
|
1699
|
+
toNodeId: input.toNodeId,
|
|
1700
|
+
dependencyKind: input.dependencyKind ?? "blocks",
|
|
1701
|
+
requiredStatus: input.requiredStatus ?? "completed",
|
|
1702
|
+
},
|
|
1703
|
+
});
|
|
1704
|
+
const dependency = await this.getTaskDependency(id);
|
|
1705
|
+
if (!dependency) {
|
|
1706
|
+
throw new Error(`Failed to create task dependency ${id}`);
|
|
1707
|
+
}
|
|
1708
|
+
await this.recomputeTaskGraphState(input.threadId);
|
|
1709
|
+
return dependency;
|
|
1710
|
+
}
|
|
1711
|
+
async getTaskDependency(dependencyId) {
|
|
1712
|
+
await this.ensureSchema();
|
|
1713
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1714
|
+
FROM orchestrator_task_dependencies
|
|
1715
|
+
WHERE id = ${sqlQuote(dependencyId)}
|
|
1716
|
+
LIMIT 1`);
|
|
1717
|
+
return rows[0] ? parseTaskDependencyRow(rows[0]) : null;
|
|
1718
|
+
}
|
|
1719
|
+
async listTaskDependenciesForThread(threadId) {
|
|
1720
|
+
await this.ensureSchema();
|
|
1721
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1722
|
+
FROM orchestrator_task_dependencies
|
|
1723
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1724
|
+
ORDER BY created_at ASC`);
|
|
1725
|
+
return rows.map(parseTaskDependencyRow);
|
|
1726
|
+
}
|
|
1727
|
+
async createTaskClaim(input) {
|
|
1728
|
+
await this.ensureSchema();
|
|
1729
|
+
const claimedAt = input.claimedAt ?? isoNow();
|
|
1730
|
+
const id = input.id?.trim() || `claim-${crypto.randomUUID()}`;
|
|
1731
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_claims (
|
|
1732
|
+
id, thread_id, node_id, session_id, claim_type, status, claimed_at,
|
|
1733
|
+
released_at, metadata_json
|
|
1734
|
+
) VALUES (
|
|
1735
|
+
${sqlQuote(id)},
|
|
1736
|
+
${sqlQuote(input.threadId)},
|
|
1737
|
+
${sqlQuote(input.nodeId)},
|
|
1738
|
+
${sqlQuote(input.sessionId)},
|
|
1739
|
+
${sqlQuote(input.claimType ?? "execution")},
|
|
1740
|
+
${sqlQuote(input.status ?? "active")},
|
|
1741
|
+
${sqlQuote(claimedAt)},
|
|
1742
|
+
${sqlText(input.releasedAt ?? null)},
|
|
1743
|
+
${sqlJson(input.metadata ?? {})}
|
|
1744
|
+
)`);
|
|
1745
|
+
await this.appendEvent({
|
|
1746
|
+
threadId: input.threadId,
|
|
1747
|
+
sessionId: input.sessionId,
|
|
1748
|
+
eventType: "task_claim_created",
|
|
1749
|
+
summary: `Claimed task node ${input.nodeId}`,
|
|
1750
|
+
data: {
|
|
1751
|
+
claimId: id,
|
|
1752
|
+
nodeId: input.nodeId,
|
|
1753
|
+
sessionId: input.sessionId,
|
|
1754
|
+
claimType: input.claimType ?? "execution",
|
|
1755
|
+
status: input.status ?? "active",
|
|
1756
|
+
},
|
|
1757
|
+
});
|
|
1758
|
+
const claim = await this.getTaskClaim(id);
|
|
1759
|
+
if (!claim) {
|
|
1760
|
+
throw new Error(`Failed to create task claim ${id}`);
|
|
1761
|
+
}
|
|
1762
|
+
return claim;
|
|
1763
|
+
}
|
|
1764
|
+
async getTaskClaim(claimId) {
|
|
1765
|
+
await this.ensureSchema();
|
|
1766
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1767
|
+
FROM orchestrator_task_claims
|
|
1768
|
+
WHERE id = ${sqlQuote(claimId)}
|
|
1769
|
+
LIMIT 1`);
|
|
1770
|
+
return rows[0] ? parseTaskClaimRow(rows[0]) : null;
|
|
1771
|
+
}
|
|
1772
|
+
async findActiveTaskClaim(nodeId, sessionId) {
|
|
1773
|
+
await this.ensureSchema();
|
|
1774
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1775
|
+
FROM orchestrator_task_claims
|
|
1776
|
+
WHERE node_id = ${sqlQuote(nodeId)}
|
|
1777
|
+
AND session_id = ${sqlQuote(sessionId)}
|
|
1778
|
+
AND status = 'active'
|
|
1779
|
+
ORDER BY claimed_at DESC
|
|
1780
|
+
LIMIT 1`);
|
|
1781
|
+
return rows[0] ? parseTaskClaimRow(rows[0]) : null;
|
|
1782
|
+
}
|
|
1783
|
+
async updateTaskClaim(claimId, patch) {
|
|
1784
|
+
await this.ensureSchema();
|
|
1785
|
+
const existing = await this.getTaskClaim(claimId);
|
|
1786
|
+
if (!existing)
|
|
1787
|
+
return;
|
|
1788
|
+
const nextMetadata = patch.metadata
|
|
1789
|
+
? { ...existing.metadata, ...patch.metadata }
|
|
1790
|
+
: existing.metadata;
|
|
1791
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_claims
|
|
1792
|
+
SET status = ${sqlQuote(patch.status ?? existing.status)},
|
|
1793
|
+
released_at = ${sqlText(patch.releasedAt !== undefined
|
|
1794
|
+
? patch.releasedAt
|
|
1795
|
+
: existing.releasedAt)},
|
|
1796
|
+
metadata_json = ${sqlJson(nextMetadata)}
|
|
1797
|
+
WHERE id = ${sqlQuote(claimId)}`);
|
|
1798
|
+
}
|
|
1799
|
+
async listTaskClaimsForThread(threadId) {
|
|
1800
|
+
await this.ensureSchema();
|
|
1801
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1802
|
+
FROM orchestrator_task_claims
|
|
1803
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1804
|
+
ORDER BY claimed_at ASC`);
|
|
1805
|
+
return rows.map(parseTaskClaimRow);
|
|
1806
|
+
}
|
|
1807
|
+
async appendTaskMailboxMessage(input) {
|
|
1808
|
+
await this.ensureSchema();
|
|
1809
|
+
const id = input.id?.trim() || `mail-${crypto.randomUUID()}`;
|
|
1810
|
+
const createdAt = input.createdAt ?? isoNow();
|
|
1811
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_mailbox (
|
|
1812
|
+
id, thread_id, node_id, session_id, sender, recipient, subject, body,
|
|
1813
|
+
delivery_state, metadata_json, created_at, delivered_at
|
|
1814
|
+
) VALUES (
|
|
1815
|
+
${sqlQuote(id)},
|
|
1816
|
+
${sqlQuote(input.threadId)},
|
|
1817
|
+
${sqlText(input.nodeId ?? null)},
|
|
1818
|
+
${sqlText(input.sessionId ?? null)},
|
|
1819
|
+
${sqlQuote(input.sender)},
|
|
1820
|
+
${sqlQuote(input.recipient)},
|
|
1821
|
+
${sqlQuote(input.subject ?? "")},
|
|
1822
|
+
${sqlQuote(input.body)},
|
|
1823
|
+
${sqlQuote(input.deliveryState ?? "pending")},
|
|
1824
|
+
${sqlJson(input.metadata ?? {})},
|
|
1825
|
+
${sqlQuote(createdAt)},
|
|
1826
|
+
${sqlText(input.deliveredAt ?? null)}
|
|
1827
|
+
)`);
|
|
1828
|
+
await this.appendEvent({
|
|
1829
|
+
threadId: input.threadId,
|
|
1830
|
+
sessionId: input.sessionId ?? null,
|
|
1831
|
+
eventType: "task_mailbox_message",
|
|
1832
|
+
summary: `Mailbox message "${input.subject ?? ""}" queued for ${input.recipient}`,
|
|
1833
|
+
data: {
|
|
1834
|
+
messageId: id,
|
|
1835
|
+
nodeId: input.nodeId ?? null,
|
|
1836
|
+
sender: input.sender,
|
|
1837
|
+
recipient: input.recipient,
|
|
1838
|
+
deliveryState: input.deliveryState ?? "pending",
|
|
1839
|
+
},
|
|
1840
|
+
});
|
|
1841
|
+
const message = await this.getTaskMailboxMessage(id);
|
|
1842
|
+
if (!message) {
|
|
1843
|
+
throw new Error(`Failed to create mailbox message ${id}`);
|
|
1844
|
+
}
|
|
1845
|
+
return message;
|
|
1846
|
+
}
|
|
1847
|
+
async getTaskMailboxMessage(messageId) {
|
|
1848
|
+
await this.ensureSchema();
|
|
1849
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1850
|
+
FROM orchestrator_task_mailbox
|
|
1851
|
+
WHERE id = ${sqlQuote(messageId)}
|
|
1852
|
+
LIMIT 1`);
|
|
1853
|
+
return rows[0] ? parseTaskMailboxMessageRow(rows[0]) : null;
|
|
1854
|
+
}
|
|
1855
|
+
async markTaskMailboxMessageDelivered(messageId) {
|
|
1856
|
+
await this.ensureSchema();
|
|
1857
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_mailbox
|
|
1858
|
+
SET delivery_state = 'delivered',
|
|
1859
|
+
delivered_at = ${sqlQuote(isoNow())}
|
|
1860
|
+
WHERE id = ${sqlQuote(messageId)}`);
|
|
1861
|
+
}
|
|
1862
|
+
async listTaskMailboxMessagesForThread(threadId) {
|
|
1863
|
+
await this.ensureSchema();
|
|
1864
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1865
|
+
FROM orchestrator_task_mailbox
|
|
1866
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1867
|
+
ORDER BY created_at ASC`);
|
|
1868
|
+
return rows.map(parseTaskMailboxMessageRow);
|
|
1869
|
+
}
|
|
1870
|
+
async createTaskVerifierJob(input) {
|
|
1871
|
+
await this.ensureSchema();
|
|
1872
|
+
const id = input.id?.trim() || `verify-${crypto.randomUUID()}`;
|
|
1873
|
+
const createdAt = input.createdAt ?? isoNow();
|
|
1874
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_verifier_jobs (
|
|
1875
|
+
id, thread_id, node_id, status, verifier_type, title, instructions,
|
|
1876
|
+
config_json, metadata_json, created_at, started_at, completed_at
|
|
1877
|
+
) VALUES (
|
|
1878
|
+
${sqlQuote(id)},
|
|
1879
|
+
${sqlQuote(input.threadId)},
|
|
1880
|
+
${sqlQuote(input.nodeId)},
|
|
1881
|
+
${sqlQuote(input.status ?? "pending")},
|
|
1882
|
+
${sqlQuote(input.verifierType)},
|
|
1883
|
+
${sqlQuote(input.title)},
|
|
1884
|
+
${sqlQuote(input.instructions ?? "")},
|
|
1885
|
+
${sqlJson(input.config ?? {})},
|
|
1886
|
+
${sqlJson(input.metadata ?? {})},
|
|
1887
|
+
${sqlQuote(createdAt)},
|
|
1888
|
+
${sqlText(input.startedAt ?? null)},
|
|
1889
|
+
${sqlText(input.completedAt ?? null)}
|
|
1890
|
+
)`);
|
|
1891
|
+
await this.appendEvent({
|
|
1892
|
+
threadId: input.threadId,
|
|
1893
|
+
eventType: "verifier_job_created",
|
|
1894
|
+
summary: `Created verifier job "${input.title}"`,
|
|
1895
|
+
data: {
|
|
1896
|
+
verifierJobId: id,
|
|
1897
|
+
nodeId: input.nodeId,
|
|
1898
|
+
verifierType: input.verifierType,
|
|
1899
|
+
status: input.status ?? "pending",
|
|
1900
|
+
},
|
|
1901
|
+
});
|
|
1902
|
+
const job = await this.getTaskVerifierJob(id);
|
|
1903
|
+
if (!job) {
|
|
1904
|
+
throw new Error(`Failed to create verifier job ${id}`);
|
|
1905
|
+
}
|
|
1906
|
+
return job;
|
|
1907
|
+
}
|
|
1908
|
+
async getTaskVerifierJob(verifierJobId) {
|
|
1909
|
+
await this.ensureSchema();
|
|
1910
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1911
|
+
FROM orchestrator_task_verifier_jobs
|
|
1912
|
+
WHERE id = ${sqlQuote(verifierJobId)}
|
|
1913
|
+
LIMIT 1`);
|
|
1914
|
+
return rows[0] ? parseTaskVerifierJobRow(rows[0]) : null;
|
|
1915
|
+
}
|
|
1916
|
+
async updateTaskVerifierJob(verifierJobId, patch) {
|
|
1917
|
+
await this.ensureSchema();
|
|
1918
|
+
const existing = await this.getTaskVerifierJob(verifierJobId);
|
|
1919
|
+
if (!existing)
|
|
1920
|
+
return;
|
|
1921
|
+
const nextMetadata = patch.metadata
|
|
1922
|
+
? { ...existing.metadata, ...patch.metadata }
|
|
1923
|
+
: existing.metadata;
|
|
1924
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_verifier_jobs
|
|
1925
|
+
SET status = ${sqlQuote(patch.status ?? existing.status)},
|
|
1926
|
+
title = ${sqlQuote(patch.title ?? existing.title)},
|
|
1927
|
+
instructions = ${sqlQuote(patch.instructions ?? existing.instructions)},
|
|
1928
|
+
config_json = ${sqlJson(patch.config ?? existing.config)},
|
|
1929
|
+
metadata_json = ${sqlJson(nextMetadata)},
|
|
1930
|
+
started_at = ${sqlText(patch.startedAt !== undefined
|
|
1931
|
+
? patch.startedAt
|
|
1932
|
+
: existing.startedAt)},
|
|
1933
|
+
completed_at = ${sqlText(patch.completedAt !== undefined
|
|
1934
|
+
? patch.completedAt
|
|
1935
|
+
: existing.completedAt)}
|
|
1936
|
+
WHERE id = ${sqlQuote(verifierJobId)}`);
|
|
1937
|
+
}
|
|
1938
|
+
async listTaskVerifierJobsForThread(threadId) {
|
|
1939
|
+
await this.ensureSchema();
|
|
1940
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1941
|
+
FROM orchestrator_task_verifier_jobs
|
|
1942
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1943
|
+
ORDER BY created_at ASC`);
|
|
1944
|
+
return rows.map(parseTaskVerifierJobRow);
|
|
1945
|
+
}
|
|
1946
|
+
async recordTaskEvidence(input) {
|
|
1947
|
+
await this.ensureSchema();
|
|
1948
|
+
const id = input.id?.trim() || `evidence-${crypto.randomUUID()}`;
|
|
1949
|
+
const createdAt = isoNow();
|
|
1950
|
+
await executeRawSql(this.runtime, `INSERT INTO orchestrator_task_evidence (
|
|
1951
|
+
id, thread_id, node_id, session_id, verifier_job_id, evidence_type, title,
|
|
1952
|
+
summary, path, uri, content_json, metadata_json, created_at
|
|
1953
|
+
) VALUES (
|
|
1954
|
+
${sqlQuote(id)},
|
|
1955
|
+
${sqlQuote(input.threadId)},
|
|
1956
|
+
${sqlText(input.nodeId ?? null)},
|
|
1957
|
+
${sqlText(input.sessionId ?? null)},
|
|
1958
|
+
${sqlText(input.verifierJobId ?? null)},
|
|
1959
|
+
${sqlQuote(input.evidenceType)},
|
|
1960
|
+
${sqlQuote(input.title)},
|
|
1961
|
+
${sqlQuote(input.summary ?? "")},
|
|
1962
|
+
${sqlText(input.path ?? null)},
|
|
1963
|
+
${sqlText(input.uri ?? null)},
|
|
1964
|
+
${sqlJson(input.content ?? {})},
|
|
1965
|
+
${sqlJson(input.metadata ?? {})},
|
|
1966
|
+
${sqlQuote(createdAt)}
|
|
1967
|
+
)`);
|
|
1968
|
+
await this.appendEvent({
|
|
1969
|
+
threadId: input.threadId,
|
|
1970
|
+
sessionId: input.sessionId ?? null,
|
|
1971
|
+
eventType: "task_evidence_recorded",
|
|
1972
|
+
summary: `Recorded ${input.evidenceType} evidence`,
|
|
1973
|
+
data: {
|
|
1974
|
+
evidenceId: id,
|
|
1975
|
+
nodeId: input.nodeId ?? null,
|
|
1976
|
+
verifierJobId: input.verifierJobId ?? null,
|
|
1977
|
+
title: input.title,
|
|
1978
|
+
},
|
|
1979
|
+
});
|
|
1980
|
+
const evidence = await this.getTaskEvidence(id);
|
|
1981
|
+
if (!evidence) {
|
|
1982
|
+
throw new Error(`Failed to create task evidence ${id}`);
|
|
1983
|
+
}
|
|
1984
|
+
return evidence;
|
|
1985
|
+
}
|
|
1986
|
+
async getTaskEvidence(evidenceId) {
|
|
1987
|
+
await this.ensureSchema();
|
|
1988
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1989
|
+
FROM orchestrator_task_evidence
|
|
1990
|
+
WHERE id = ${sqlQuote(evidenceId)}
|
|
1991
|
+
LIMIT 1`);
|
|
1992
|
+
return rows[0] ? parseTaskEvidenceRow(rows[0]) : null;
|
|
1993
|
+
}
|
|
1994
|
+
async listTaskEvidenceForThread(threadId) {
|
|
1995
|
+
await this.ensureSchema();
|
|
1996
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
1997
|
+
FROM orchestrator_task_evidence
|
|
1998
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
1999
|
+
ORDER BY created_at ASC`);
|
|
2000
|
+
return rows.map(parseTaskEvidenceRow);
|
|
2001
|
+
}
|
|
2002
|
+
deriveDependentNodeStatus(node, incomingDependencies, nodesById) {
|
|
2003
|
+
if (isTerminalTaskNodeStatus(node.status)) {
|
|
2004
|
+
return node.status;
|
|
2005
|
+
}
|
|
2006
|
+
if (node.status === "running" ||
|
|
2007
|
+
node.status === "blocked" ||
|
|
2008
|
+
node.status === "waiting_on_user" ||
|
|
2009
|
+
node.status === "verifying" ||
|
|
2010
|
+
node.status === "claimed") {
|
|
2011
|
+
return node.status;
|
|
2012
|
+
}
|
|
2013
|
+
const prerequisiteStatuses = incomingDependencies
|
|
2014
|
+
.map((dependency) => nodesById.get(dependency.fromNodeId))
|
|
2015
|
+
.filter((entry) => Boolean(entry))
|
|
2016
|
+
.map((entry) => entry.status);
|
|
2017
|
+
const allSatisfied = incomingDependencies.length === 0 ||
|
|
2018
|
+
incomingDependencies.every((dependency) => {
|
|
2019
|
+
const source = nodesById.get(dependency.fromNodeId);
|
|
2020
|
+
return (source !== undefined &&
|
|
2021
|
+
dependencyStatusSatisfied(source.status, dependency.requiredStatus));
|
|
2022
|
+
});
|
|
2023
|
+
const hasFailedPrerequisite = prerequisiteStatuses.some((status) => status === "failed" ||
|
|
2024
|
+
status === "canceled" ||
|
|
2025
|
+
status === "interrupted");
|
|
2026
|
+
if (node.kind === "goal" && incomingDependencies.length > 0) {
|
|
2027
|
+
if (allSatisfied) {
|
|
2028
|
+
return "completed";
|
|
2029
|
+
}
|
|
2030
|
+
return hasFailedPrerequisite ? "failed" : "planned";
|
|
2031
|
+
}
|
|
2032
|
+
if (node.assignedSessionId) {
|
|
2033
|
+
return node.status;
|
|
2034
|
+
}
|
|
2035
|
+
if (allSatisfied) {
|
|
2036
|
+
return "ready";
|
|
2037
|
+
}
|
|
2038
|
+
return hasFailedPrerequisite ? "blocked" : "planned";
|
|
2039
|
+
}
|
|
2040
|
+
async recomputeTaskGraphState(threadId) {
|
|
2041
|
+
const [nodes, dependencies] = await Promise.all([
|
|
2042
|
+
this.listTaskNodesForThread(threadId),
|
|
2043
|
+
this.listTaskDependenciesForThread(threadId),
|
|
2044
|
+
]);
|
|
2045
|
+
if (nodes.length === 0) {
|
|
2046
|
+
return;
|
|
2047
|
+
}
|
|
2048
|
+
const nodesById = new Map(nodes.map((node) => [node.id, node]));
|
|
2049
|
+
const incomingDependencies = new Map();
|
|
2050
|
+
for (const dependency of dependencies) {
|
|
2051
|
+
const bucket = incomingDependencies.get(dependency.toNodeId) ?? [];
|
|
2052
|
+
bucket.push(dependency);
|
|
2053
|
+
incomingDependencies.set(dependency.toNodeId, bucket);
|
|
2054
|
+
}
|
|
2055
|
+
const nowIso = isoNow();
|
|
2056
|
+
for (const node of nodes) {
|
|
2057
|
+
const nextStatus = this.deriveDependentNodeStatus(node, incomingDependencies.get(node.id) ?? [], nodesById);
|
|
2058
|
+
if (nextStatus === node.status) {
|
|
2059
|
+
continue;
|
|
2060
|
+
}
|
|
2061
|
+
const nextCompletedAt = nextStatus === "completed" || nextStatus === "failed"
|
|
2062
|
+
? (node.completedAt ?? nowIso)
|
|
2063
|
+
: null;
|
|
2064
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_nodes
|
|
2065
|
+
SET status = ${sqlQuote(nextStatus)},
|
|
2066
|
+
updated_at = ${sqlQuote(nowIso)},
|
|
2067
|
+
completed_at = ${sqlText(nextCompletedAt)}
|
|
2068
|
+
WHERE id = ${sqlQuote(node.id)}`);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
async getLastUsedRepo() {
|
|
2072
|
+
await this.ensureSchema();
|
|
2073
|
+
const rows = await executeRawSql(this.runtime, `SELECT repo
|
|
2074
|
+
FROM orchestrator_task_sessions
|
|
2075
|
+
WHERE repo IS NOT NULL AND repo <> ''
|
|
2076
|
+
ORDER BY last_activity_at DESC
|
|
2077
|
+
LIMIT 1`);
|
|
2078
|
+
return rows[0] ? toText(rows[0].repo) : undefined;
|
|
2079
|
+
}
|
|
2080
|
+
async listSessionsForThread(threadId) {
|
|
2081
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2082
|
+
FROM orchestrator_task_sessions
|
|
2083
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
2084
|
+
ORDER BY registered_at ASC`);
|
|
2085
|
+
return rows.map(parseSessionRow);
|
|
2086
|
+
}
|
|
2087
|
+
async listDecisionsForThread(threadId) {
|
|
2088
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2089
|
+
FROM orchestrator_task_decisions
|
|
2090
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
2091
|
+
ORDER BY timestamp ASC`);
|
|
2092
|
+
return rows.map(parseDecisionRow);
|
|
2093
|
+
}
|
|
2094
|
+
async listDecisionsForSession(sessionId) {
|
|
2095
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2096
|
+
FROM orchestrator_task_decisions
|
|
2097
|
+
WHERE session_id = ${sqlQuote(sessionId)}
|
|
2098
|
+
ORDER BY timestamp ASC`);
|
|
2099
|
+
return rows.map(parseDecisionRow);
|
|
2100
|
+
}
|
|
2101
|
+
async listEventsForThread(threadId) {
|
|
2102
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2103
|
+
FROM orchestrator_task_events
|
|
2104
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
2105
|
+
ORDER BY timestamp ASC`);
|
|
2106
|
+
return rows.map(parseEventRow);
|
|
2107
|
+
}
|
|
2108
|
+
async listArtifactsForThread(threadId) {
|
|
2109
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2110
|
+
FROM orchestrator_task_artifacts
|
|
2111
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
2112
|
+
ORDER BY created_at ASC`);
|
|
2113
|
+
return rows.map(parseArtifactRow);
|
|
2114
|
+
}
|
|
2115
|
+
async listTranscriptsForThread(threadId) {
|
|
2116
|
+
const rows = await executeRawSql(this.runtime, `SELECT *
|
|
2117
|
+
FROM orchestrator_task_transcripts
|
|
2118
|
+
WHERE thread_id = ${sqlQuote(threadId)}
|
|
2119
|
+
ORDER BY timestamp ASC`);
|
|
2120
|
+
return rows.map(parseTranscriptRow);
|
|
2121
|
+
}
|
|
2122
|
+
async recomputeThreadStatus(threadId) {
|
|
2123
|
+
await this.ensureSchema();
|
|
2124
|
+
const thread = await this.getThreadRecord(threadId);
|
|
2125
|
+
if (!thread)
|
|
2126
|
+
return;
|
|
2127
|
+
if (thread.archivedAt)
|
|
2128
|
+
return;
|
|
2129
|
+
const controlState = toText(thread.metadata.controlState)
|
|
2130
|
+
.trim()
|
|
2131
|
+
.toLowerCase();
|
|
2132
|
+
const sessions = await this.listSessionsForThread(threadId);
|
|
2133
|
+
const nowIso = isoNow();
|
|
2134
|
+
let nextStatus = "open";
|
|
2135
|
+
let closedAt = null;
|
|
2136
|
+
const activeCount = sessions.filter((session) => ["active", "tool_running"].includes(session.status)).length;
|
|
2137
|
+
const waitingOnUserCount = sessions.filter((session) => session.status === "waiting_on_user").length;
|
|
2138
|
+
const blockedCount = sessions.filter((session) => session.status === "blocked").length;
|
|
2139
|
+
const interruptedCount = sessions.filter((session) => ["interrupted", "stopped"].includes(session.status)).length;
|
|
2140
|
+
const errorCount = sessions.filter((session) => session.status === "error").length;
|
|
2141
|
+
const completedCount = sessions.filter((session) => session.status === "completed").length;
|
|
2142
|
+
if (controlState === "paused" && activeCount === 0 && blockedCount === 0) {
|
|
2143
|
+
nextStatus = "waiting_on_user";
|
|
2144
|
+
}
|
|
2145
|
+
else if (controlState === "stopped" &&
|
|
2146
|
+
activeCount === 0 &&
|
|
2147
|
+
blockedCount === 0 &&
|
|
2148
|
+
waitingOnUserCount === 0) {
|
|
2149
|
+
nextStatus = "interrupted";
|
|
2150
|
+
closedAt = nowIso;
|
|
2151
|
+
}
|
|
2152
|
+
else if (sessions.length === 0) {
|
|
2153
|
+
nextStatus = "open";
|
|
2154
|
+
}
|
|
2155
|
+
else if (activeCount > 0) {
|
|
2156
|
+
nextStatus = "active";
|
|
2157
|
+
}
|
|
2158
|
+
else if (waitingOnUserCount > 0) {
|
|
2159
|
+
nextStatus = "waiting_on_user";
|
|
2160
|
+
}
|
|
2161
|
+
else if (blockedCount > 0) {
|
|
2162
|
+
nextStatus = "blocked";
|
|
2163
|
+
}
|
|
2164
|
+
else if (interruptedCount > 0) {
|
|
2165
|
+
nextStatus = "interrupted";
|
|
2166
|
+
closedAt = nowIso;
|
|
2167
|
+
}
|
|
2168
|
+
else if (completedCount === sessions.length) {
|
|
2169
|
+
nextStatus = "done";
|
|
2170
|
+
closedAt = nowIso;
|
|
2171
|
+
}
|
|
2172
|
+
else if (errorCount > 0) {
|
|
2173
|
+
nextStatus = "failed";
|
|
2174
|
+
closedAt = nowIso;
|
|
2175
|
+
}
|
|
2176
|
+
await executeRawSql(this.runtime, `UPDATE orchestrator_task_threads
|
|
2177
|
+
SET status = ${sqlQuote(nextStatus)},
|
|
2178
|
+
closed_at = ${sqlText(closedAt)},
|
|
2179
|
+
updated_at = ${sqlQuote(nowIso)}
|
|
2180
|
+
WHERE id = ${sqlQuote(threadId)}`);
|
|
2181
|
+
}
|
|
2182
|
+
}
|