@lota-sdk/core 0.1.24 → 0.1.26
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/package.json +2 -2
- package/src/ai/definitions.ts +5 -59
- package/src/ai-gateway/ai-gateway.ts +36 -28
- package/src/ai-gateway/cache-headers.ts +9 -0
- package/src/config/model-constants.ts +6 -2
- package/src/create-runtime.ts +1 -17
- package/src/db/memory-types.ts +13 -8
- package/src/db/memory.ts +74 -53
- package/src/queues/autonomous-job.queue.ts +1 -8
- package/src/queues/context-compaction.queue.ts +2 -2
- package/src/queues/index.ts +2 -6
- package/src/queues/organization-learning.queue.ts +78 -0
- package/src/queues/plan-agent-heartbeat.queue.ts +10 -16
- package/src/queues/title-generation.queue.ts +62 -0
- package/src/runtime/agent-prompt-context.ts +0 -18
- package/src/runtime/agent-runtime-policy.ts +9 -2
- package/src/runtime/context-compaction-constants.ts +4 -2
- package/src/runtime/context-compaction.ts +135 -118
- package/src/runtime/memory-pipeline.ts +70 -1
- package/src/runtime/memory-prompts-fact.ts +16 -0
- package/src/runtime/plugin-resolution.ts +3 -2
- package/src/runtime/plugin-types.ts +1 -42
- package/src/runtime/post-turn-side-effects.ts +212 -0
- package/src/runtime/runtime-config.ts +0 -13
- package/src/runtime/runtime-extensions.ts +10 -16
- package/src/runtime/runtime-worker-registry.ts +8 -19
- package/src/runtime/social-chat-agent-runner.ts +119 -0
- package/src/runtime/social-chat-history.ts +110 -0
- package/src/runtime/social-chat-prompts.ts +58 -0
- package/src/runtime/social-chat.ts +104 -340
- package/src/runtime/specialist-runner.ts +18 -0
- package/src/runtime/workstream-chat-helpers.ts +19 -0
- package/src/runtime/workstream-plan-turn.ts +195 -0
- package/src/runtime/workstream-state.ts +11 -8
- package/src/runtime/workstream-turn-context.ts +183 -0
- package/src/services/autonomous-job.service.ts +1 -8
- package/src/services/execution-plan.service.ts +205 -334
- package/src/services/index.ts +1 -4
- package/src/services/memory.service.ts +54 -44
- package/src/services/ownership-dispatcher.service.ts +2 -19
- package/src/services/plan-completion-side-effects.ts +80 -0
- package/src/services/plan-event-delivery.service.ts +1 -1
- package/src/services/plan-executor.service.ts +42 -190
- package/src/services/plan-node-spec.ts +60 -0
- package/src/services/plan-run-data.ts +88 -0
- package/src/services/plan-validator.service.ts +10 -8
- package/src/services/workstream-constants.ts +2 -0
- package/src/services/workstream-title.service.ts +1 -1
- package/src/services/workstream-turn-preparation.service.ts +208 -715
- package/src/services/workstream.service.ts +162 -192
- package/src/services/workstream.types.ts +12 -44
- package/src/system-agents/regular-chat-memory-digest.agent.ts +3 -0
- package/src/tools/execution-plan.tool.ts +7 -6
- package/src/tools/remember-memory.tool.ts +7 -10
- package/src/tools/research-topic.tool.ts +1 -1
- package/src/tools/team-think.tool.ts +1 -1
- package/src/tools/user-questions.tool.ts +1 -1
- package/src/utils/autonomous-job-ids.ts +7 -0
- package/src/workers/organization-learning.worker.ts +31 -0
- package/src/workers/regular-chat-memory-digest.runner.ts +9 -3
- package/src/workers/skill-extraction.runner.ts +2 -2
- package/src/queues/recent-activity-title-refinement.queue.ts +0 -30
- package/src/queues/regular-chat-memory-digest.config.ts +0 -12
- package/src/queues/regular-chat-memory-digest.queue.ts +0 -34
- package/src/queues/skill-extraction.config.ts +0 -9
- package/src/queues/skill-extraction.queue.ts +0 -27
- package/src/queues/workstream-title-generation.queue.ts +0 -33
- package/src/services/context-enrichment.service.ts +0 -33
- package/src/services/coordination-registry.service.ts +0 -117
- package/src/services/domain-agent-executor.service.ts +0 -71
- package/src/services/memory-assessment.service.ts +0 -44
- package/src/services/playbook-registry.service.ts +0 -67
- package/src/workers/regular-chat-memory-digest.worker.ts +0 -22
- package/src/workers/skill-extraction.worker.ts +0 -22
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SandboxedJob } from 'bullmq'
|
|
2
|
-
|
|
3
|
-
import { serverLogger } from '../config/logger'
|
|
4
|
-
import type { RegularChatMemoryDigestJob } from '../queues/regular-chat-memory-digest.queue'
|
|
5
|
-
import { initializeSandboxedWorkerRuntime } from './bootstrap'
|
|
6
|
-
import { runRegularChatMemoryDigest } from './regular-chat-memory-digest.runner'
|
|
7
|
-
import { toSandboxedWorkerError } from './utils/sandbox-error'
|
|
8
|
-
import { createTracedWorkerProcessor } from './worker-utils'
|
|
9
|
-
|
|
10
|
-
await initializeSandboxedWorkerRuntime()
|
|
11
|
-
|
|
12
|
-
const handler = async (job: SandboxedJob<RegularChatMemoryDigestJob>) => {
|
|
13
|
-
try {
|
|
14
|
-
await runRegularChatMemoryDigest(job.data)
|
|
15
|
-
} catch (error) {
|
|
16
|
-
const serialized = toSandboxedWorkerError(error, 'Regular chat memory digest failed')
|
|
17
|
-
serverLogger.error`${serialized.message}`
|
|
18
|
-
throw serialized
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default createTracedWorkerProcessor('regular-chat-memory-digest', handler)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SandboxedJob } from 'bullmq'
|
|
2
|
-
|
|
3
|
-
import { serverLogger } from '../config/logger'
|
|
4
|
-
import type { SkillExtractionJob } from '../queues/skill-extraction.queue'
|
|
5
|
-
import { initializeSandboxedWorkerRuntime } from './bootstrap'
|
|
6
|
-
import { runSkillExtraction } from './skill-extraction.runner'
|
|
7
|
-
import { toSandboxedWorkerError } from './utils/sandbox-error'
|
|
8
|
-
import { createTracedWorkerProcessor } from './worker-utils'
|
|
9
|
-
|
|
10
|
-
await initializeSandboxedWorkerRuntime()
|
|
11
|
-
|
|
12
|
-
const handler = async (job: SandboxedJob<SkillExtractionJob>) => {
|
|
13
|
-
try {
|
|
14
|
-
await runSkillExtraction(job.data)
|
|
15
|
-
} catch (error) {
|
|
16
|
-
const serialized = toSandboxedWorkerError(error, 'Skill extraction failed')
|
|
17
|
-
serverLogger.error`${serialized.message}`
|
|
18
|
-
throw serialized
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default createTracedWorkerProcessor('skill-extraction', handler)
|