aec-agent 1.0.0
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/README.md +1 -0
- package/dist/agent-core.d.ts +81 -0
- package/dist/agent-core.d.ts.map +1 -0
- package/dist/agent-core.js +168 -0
- package/dist/agent-core.js.map +1 -0
- package/dist/components/artifact-hub/agent-artifact-view.d.ts +31 -0
- package/dist/components/artifact-hub/agent-artifact-view.d.ts.map +1 -0
- package/dist/components/artifact-hub/agent-artifact-view.js +264 -0
- package/dist/components/artifact-hub/agent-artifact-view.js.map +1 -0
- package/dist/components/artifact-hub/artifact-hub.d.ts +25 -0
- package/dist/components/artifact-hub/artifact-hub.d.ts.map +1 -0
- package/dist/components/artifact-hub/artifact-hub.js +39 -0
- package/dist/components/artifact-hub/artifact-hub.js.map +1 -0
- package/dist/components/artifact-hub/types/artifact.d.ts +158 -0
- package/dist/components/artifact-hub/types/artifact.d.ts.map +1 -0
- package/dist/components/artifact-hub/types/artifact.js +14 -0
- package/dist/components/artifact-hub/types/artifact.js.map +1 -0
- package/dist/components/event-handler/event-dispatcher.d.ts +17 -0
- package/dist/components/event-handler/event-dispatcher.d.ts.map +1 -0
- package/dist/components/event-handler/event-dispatcher.js +47 -0
- package/dist/components/event-handler/event-dispatcher.js.map +1 -0
- package/dist/components/event-handler/events.d.ts +154 -0
- package/dist/components/event-handler/events.d.ts.map +1 -0
- package/dist/components/event-handler/events.js +28 -0
- package/dist/components/event-handler/events.js.map +1 -0
- package/dist/components/event-handler/types.d.ts +10 -0
- package/dist/components/event-handler/types.d.ts.map +1 -0
- package/dist/components/event-handler/types.js +2 -0
- package/dist/components/event-handler/types.js.map +1 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.d.ts +14 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.js +34 -0
- package/dist/components/llm-provider-hub/llm-provider-hub.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts +22 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js +249 -0
- package/dist/components/llm-provider-hub/providers/anthropic-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts +28 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js +345 -0
- package/dist/components/llm-provider-hub/providers/bedrock-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts +6 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js +267 -0
- package/dist/components/llm-provider-hub/providers/model-info-mappers.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts +24 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js +243 -0
- package/dist/components/llm-provider-hub/providers/openai-compatible-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts +29 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js +299 -0
- package/dist/components/llm-provider-hub/providers/openai-subscription-provider.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/registry.d.ts +6 -0
- package/dist/components/llm-provider-hub/providers/registry.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/registry.js +33 -0
- package/dist/components/llm-provider-hub/providers/registry.js.map +1 -0
- package/dist/components/llm-provider-hub/providers/types.d.ts +29 -0
- package/dist/components/llm-provider-hub/providers/types.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/providers/types.js +2 -0
- package/dist/components/llm-provider-hub/providers/types.js.map +1 -0
- package/dist/components/llm-provider-hub/types.d.ts +84 -0
- package/dist/components/llm-provider-hub/types.d.ts.map +1 -0
- package/dist/components/llm-provider-hub/types.js +6 -0
- package/dist/components/llm-provider-hub/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts +85 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js +500 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/agent-loop.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts +29 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js +98 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/abort.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts +16 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js +116 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts +41 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/compactor.types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts +69 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js +147 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/counter.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts +55 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js +406 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/harness-executor.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts +19 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js +28 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/run-trace.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js +55 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts +3 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/summarizer.types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts +20 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js +56 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/components/tool-pairing.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts +23 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js +127 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/llm-input.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts +9 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js +40 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/functions/memory-recall.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts +135 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js +31 -0
- package/dist/components/multi-agent-orchestration/agent/agent-loop/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts +93 -0
- package/dist/components/multi-agent-orchestration/agent/agent.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/agent.js +223 -0
- package/dist/components/multi-agent-orchestration/agent/agent.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts +18 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js +20 -0
- package/dist/components/multi-agent-orchestration/agent/artifact-manager/artifact-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts +6 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js +6 -0
- package/dist/components/multi-agent-orchestration/agent/channel-manager/channel-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts +22 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js +52 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/context-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts +13 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/context-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts +25 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js +74 -0
- package/dist/components/multi-agent-orchestration/agent/conversation-manager/conversation-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts +57 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js +185 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/consolidation-scheduler.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts +38 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js +89 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/dreaming.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts +30 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js +91 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/indexing.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts +3 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js +3 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/learning.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts +22 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js +196 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts +17 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js +114 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts +89 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js +178 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/memory-system.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts +29 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/config.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts +33 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/pipeline.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts +27 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js +5 -0
- package/dist/components/multi-agent-orchestration/agent/memory-system/types/record.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts +39 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js +70 -0
- package/dist/components/multi-agent-orchestration/agent/model-manager/model-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts +43 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js +126 -0
- package/dist/components/multi-agent-orchestration/agent/sandbox-manager/sandbox-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts +38 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js +155 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/scheduled-job-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts +27 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/scheduled-job-manager/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts +6 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js +43 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-index.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts +56 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js +107 -0
- package/dist/components/multi-agent-orchestration/agent/skill-manager/skill-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts +20 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js +28 -0
- package/dist/components/multi-agent-orchestration/agent/tool-manager/tool-manager.js.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/types.d.ts +44 -0
- package/dist/components/multi-agent-orchestration/agent/types.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/agent/types.js +2 -0
- package/dist/components/multi-agent-orchestration/agent/types.js.map +1 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts +23 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.d.ts.map +1 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js +42 -0
- package/dist/components/multi-agent-orchestration/multi-agent-orchestration.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts +10 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.js +16 -0
- package/dist/components/persistence-hub/default-stores/memory-agent-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts +16 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.js +70 -0
- package/dist/components/persistence-hub/default-stores/memory-artifact-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.js +51 -0
- package/dist/components/persistence-hub/default-stores/memory-memory-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.js +33 -0
- package/dist/components/persistence-hub/default-stores/memory-message-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts +9 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.js +16 -0
- package/dist/components/persistence-hub/default-stores/memory-provider-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts +12 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.js +42 -0
- package/dist/components/persistence-hub/default-stores/memory-session-store.js.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts +9 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.js +20 -0
- package/dist/components/persistence-hub/default-stores/memory-skill-store.js.map +1 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts +34 -0
- package/dist/components/persistence-hub/persistence-hub.d.ts.map +1 -0
- package/dist/components/persistence-hub/persistence-hub.js +37 -0
- package/dist/components/persistence-hub/persistence-hub.js.map +1 -0
- package/dist/components/persistence-hub/types/agent-store.d.ts +8 -0
- package/dist/components/persistence-hub/types/agent-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/agent-store.js +2 -0
- package/dist/components/persistence-hub/types/agent-store.js.map +1 -0
- package/dist/components/persistence-hub/types/artifact-store.d.ts +33 -0
- package/dist/components/persistence-hub/types/artifact-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/artifact-store.js +2 -0
- package/dist/components/persistence-hub/types/artifact-store.js.map +1 -0
- package/dist/components/persistence-hub/types/memory-store.d.ts +23 -0
- package/dist/components/persistence-hub/types/memory-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/memory-store.js +2 -0
- package/dist/components/persistence-hub/types/memory-store.js.map +1 -0
- package/dist/components/persistence-hub/types/message-store.d.ts +27 -0
- package/dist/components/persistence-hub/types/message-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/message-store.js +2 -0
- package/dist/components/persistence-hub/types/message-store.js.map +1 -0
- package/dist/components/persistence-hub/types/provider-store.d.ts +28 -0
- package/dist/components/persistence-hub/types/provider-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/provider-store.js +5 -0
- package/dist/components/persistence-hub/types/provider-store.js.map +1 -0
- package/dist/components/persistence-hub/types/session-store.d.ts +15 -0
- package/dist/components/persistence-hub/types/session-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/session-store.js +2 -0
- package/dist/components/persistence-hub/types/session-store.js.map +1 -0
- package/dist/components/persistence-hub/types/skill-store.d.ts +22 -0
- package/dist/components/persistence-hub/types/skill-store.d.ts.map +1 -0
- package/dist/components/persistence-hub/types/skill-store.js +2 -0
- package/dist/components/persistence-hub/types/skill-store.js.map +1 -0
- package/dist/components/sandbox-hub/approval-policy.d.ts +12 -0
- package/dist/components/sandbox-hub/approval-policy.d.ts.map +1 -0
- package/dist/components/sandbox-hub/approval-policy.js +11 -0
- package/dist/components/sandbox-hub/approval-policy.js.map +1 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts +3 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.js +31 -0
- package/dist/components/sandbox-hub/docker/aec-sandbox-image.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-cli.d.ts +32 -0
- package/dist/components/sandbox-hub/docker/docker-cli.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-cli.js +83 -0
- package/dist/components/sandbox-hub/docker/docker-cli.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts +70 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js +166 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox-provider.js.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts +51 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.js +584 -0
- package/dist/components/sandbox-hub/docker/docker-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts +4 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.js +442 -0
- package/dist/components/sandbox-hub/docker/sandbox-helper.js.map +1 -0
- package/dist/components/sandbox-hub/docker/types.d.ts +26 -0
- package/dist/components/sandbox-hub/docker/types.d.ts.map +1 -0
- package/dist/components/sandbox-hub/docker/types.js +2 -0
- package/dist/components/sandbox-hub/docker/types.js.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts +34 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.js +81 -0
- package/dist/components/sandbox-hub/host/host-sandbox-provider.js.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts +22 -0
- package/dist/components/sandbox-hub/host/host-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/host/host-sandbox.js +508 -0
- package/dist/components/sandbox-hub/host/host-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/logical-path.d.ts +28 -0
- package/dist/components/sandbox-hub/logical-path.d.ts.map +1 -0
- package/dist/components/sandbox-hub/logical-path.js +73 -0
- package/dist/components/sandbox-hub/logical-path.js.map +1 -0
- package/dist/components/sandbox-hub/sandbox-hub.d.ts +69 -0
- package/dist/components/sandbox-hub/sandbox-hub.d.ts.map +1 -0
- package/dist/components/sandbox-hub/sandbox-hub.js +216 -0
- package/dist/components/sandbox-hub/sandbox-hub.js.map +1 -0
- package/dist/components/sandbox-hub/traced-sandbox.d.ts +15 -0
- package/dist/components/sandbox-hub/traced-sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/traced-sandbox.js +69 -0
- package/dist/components/sandbox-hub/traced-sandbox.js.map +1 -0
- package/dist/components/sandbox-hub/types/policy.d.ts +40 -0
- package/dist/components/sandbox-hub/types/policy.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/policy.js +2 -0
- package/dist/components/sandbox-hub/types/policy.js.map +1 -0
- package/dist/components/sandbox-hub/types/provider.d.ts +40 -0
- package/dist/components/sandbox-hub/types/provider.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/provider.js +2 -0
- package/dist/components/sandbox-hub/types/provider.js.map +1 -0
- package/dist/components/sandbox-hub/types/sandbox.d.ts +185 -0
- package/dist/components/sandbox-hub/types/sandbox.d.ts.map +1 -0
- package/dist/components/sandbox-hub/types/sandbox.js +15 -0
- package/dist/components/sandbox-hub/types/sandbox.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts +5 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.js +10 -0
- package/dist/components/skill-hub/built-in-skills/essential-skills.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/plan.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/plan.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/plan.js +33 -0
- package/dist/components/skill-hub/built-in-skills/plan.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.js +186 -0
- package/dist/components/skill-hub/built-in-skills/skill-creator.js.map +1 -0
- package/dist/components/skill-hub/built-in-skills/web-research.d.ts +3 -0
- package/dist/components/skill-hub/built-in-skills/web-research.d.ts.map +1 -0
- package/dist/components/skill-hub/built-in-skills/web-research.js +35 -0
- package/dist/components/skill-hub/built-in-skills/web-research.js.map +1 -0
- package/dist/components/skill-hub/skill-format.d.ts +40 -0
- package/dist/components/skill-hub/skill-format.d.ts.map +1 -0
- package/dist/components/skill-hub/skill-format.js +378 -0
- package/dist/components/skill-hub/skill-format.js.map +1 -0
- package/dist/components/skill-hub/skill-hub.d.ts +45 -0
- package/dist/components/skill-hub/skill-hub.d.ts.map +1 -0
- package/dist/components/skill-hub/skill-hub.js +173 -0
- package/dist/components/skill-hub/skill-hub.js.map +1 -0
- package/dist/components/skill-hub/types/agent-skills.d.ts +20 -0
- package/dist/components/skill-hub/types/agent-skills.d.ts.map +1 -0
- package/dist/components/skill-hub/types/agent-skills.js +2 -0
- package/dist/components/skill-hub/types/agent-skills.js.map +1 -0
- package/dist/components/skill-hub/types/skill.d.ts +55 -0
- package/dist/components/skill-hub/types/skill.d.ts.map +1 -0
- package/dist/components/skill-hub/types/skill.js +11 -0
- package/dist/components/skill-hub/types/skill.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts +52 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js +143 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/artifact-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts +7 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js +18 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/create-artifact-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js +69 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/list-artifacts-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js +79 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/read-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js +105 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/save-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts +11 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.js +8 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts +17 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js +100 -0
- package/dist/components/tool-hub/built-in-tools/artifacts/update-artifact-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js +94 -0
- package/dist/components/tool-hub/built-in-tools/interaction/clarify-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts +22 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js +226 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-manage-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts +18 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js +86 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-view-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts +26 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js +93 -0
- package/dist/components/tool-hub/built-in-tools/skills/skill-workspace.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts +28 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js +116 -0
- package/dist/components/tool-hub/built-in-tools/web/duckduckgo-search-provider.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts +14 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.js +158 -0
- package/dist/components/tool-hub/built-in-tools/web/html-to-text.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts +21 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.js +106 -0
- package/dist/components/tool-hub/built-in-tools/web/network-guard.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/types.d.ts +23 -0
- package/dist/components/tool-hub/built-in-tools/web/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/types.js +5 -0
- package/dist/components/tool-hub/built-in-tools/web/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts +37 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js +206 -0
- package/dist/components/tool-hub/built-in-tools/web/web-extract-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts +25 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js +82 -0
- package/dist/components/tool-hub/built-in-tools/web/web-search-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts +7 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js +24 -0
- package/dist/components/tool-hub/built-in-tools/workspace/create-workspace-tools.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts +15 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js +103 -0
- package/dist/components/tool-hub/built-in-tools/workspace/edit-file-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js +53 -0
- package/dist/components/tool-hub/built-in-tools/workspace/list-files-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts +15 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js +71 -0
- package/dist/components/tool-hub/built-in-tools/workspace/read-file-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js +72 -0
- package/dist/components/tool-hub/built-in-tools/workspace/run-code-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts +12 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js +64 -0
- package/dist/components/tool-hub/built-in-tools/workspace/search-files-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts +19 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js +111 -0
- package/dist/components/tool-hub/built-in-tools/workspace/terminal-tool.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts +16 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.js +8 -0
- package/dist/components/tool-hub/built-in-tools/workspace/types.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts +29 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js +128 -0
- package/dist/components/tool-hub/built-in-tools/workspace/workspace-helpers.js.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts +17 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.d.ts.map +1 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js +61 -0
- package/dist/components/tool-hub/built-in-tools/workspace/write-file-tool.js.map +1 -0
- package/dist/components/tool-hub/policies/default-tool-policy.d.ts +17 -0
- package/dist/components/tool-hub/policies/default-tool-policy.d.ts.map +1 -0
- package/dist/components/tool-hub/policies/default-tool-policy.js +99 -0
- package/dist/components/tool-hub/policies/default-tool-policy.js.map +1 -0
- package/dist/components/tool-hub/tool-hub.d.ts +28 -0
- package/dist/components/tool-hub/tool-hub.d.ts.map +1 -0
- package/dist/components/tool-hub/tool-hub.js +49 -0
- package/dist/components/tool-hub/tool-hub.js.map +1 -0
- package/dist/components/tool-hub/types.d.ts +138 -0
- package/dist/components/tool-hub/types.d.ts.map +1 -0
- package/dist/components/tool-hub/types.js +2 -0
- package/dist/components/tool-hub/types.js.map +1 -0
- package/dist/components/trace-service/console-trace-sink.d.ts +9 -0
- package/dist/components/trace-service/console-trace-sink.d.ts.map +1 -0
- package/dist/components/trace-service/console-trace-sink.js +35 -0
- package/dist/components/trace-service/console-trace-sink.js.map +1 -0
- package/dist/components/trace-service/trace-service.d.ts +25 -0
- package/dist/components/trace-service/trace-service.d.ts.map +1 -0
- package/dist/components/trace-service/trace-service.js +288 -0
- package/dist/components/trace-service/trace-service.js.map +1 -0
- package/dist/components/trace-service/types/sink.d.ts +7 -0
- package/dist/components/trace-service/types/sink.d.ts.map +1 -0
- package/dist/components/trace-service/types/sink.js +5 -0
- package/dist/components/trace-service/types/sink.js.map +1 -0
- package/dist/components/trace-service/types/span.d.ts +31 -0
- package/dist/components/trace-service/types/span.d.ts.map +1 -0
- package/dist/components/trace-service/types/span.js +5 -0
- package/dist/components/trace-service/types/span.js.map +1 -0
- package/dist/create-agent.d.ts +5 -0
- package/dist/create-agent.d.ts.map +1 -0
- package/dist/create-agent.js +57 -0
- package/dist/create-agent.js.map +1 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/kernel/errors/artifact-error.d.ts +23 -0
- package/dist/kernel/errors/artifact-error.d.ts.map +1 -0
- package/dist/kernel/errors/artifact-error.js +22 -0
- package/dist/kernel/errors/artifact-error.js.map +1 -0
- package/dist/kernel/errors/model-error.d.ts +7 -0
- package/dist/kernel/errors/model-error.d.ts.map +1 -0
- package/dist/kernel/errors/model-error.js +10 -0
- package/dist/kernel/errors/model-error.js.map +1 -0
- package/dist/kernel/errors/policy-error.d.ts +8 -0
- package/dist/kernel/errors/policy-error.d.ts.map +1 -0
- package/dist/kernel/errors/policy-error.js +12 -0
- package/dist/kernel/errors/policy-error.js.map +1 -0
- package/dist/kernel/errors/sandbox-error.d.ts +35 -0
- package/dist/kernel/errors/sandbox-error.d.ts.map +1 -0
- package/dist/kernel/errors/sandbox-error.js +26 -0
- package/dist/kernel/errors/sandbox-error.js.map +1 -0
- package/dist/kernel/errors/sdk-error.d.ts +9 -0
- package/dist/kernel/errors/sdk-error.d.ts.map +1 -0
- package/dist/kernel/errors/sdk-error.js +13 -0
- package/dist/kernel/errors/sdk-error.js.map +1 -0
- package/dist/kernel/errors/session-error.d.ts +7 -0
- package/dist/kernel/errors/session-error.d.ts.map +1 -0
- package/dist/kernel/errors/session-error.js +10 -0
- package/dist/kernel/errors/session-error.js.map +1 -0
- package/dist/kernel/errors/skill-error.d.ts +14 -0
- package/dist/kernel/errors/skill-error.d.ts.map +1 -0
- package/dist/kernel/errors/skill-error.js +12 -0
- package/dist/kernel/errors/skill-error.js.map +1 -0
- package/dist/kernel/errors/tool-error.d.ts +8 -0
- package/dist/kernel/errors/tool-error.d.ts.map +1 -0
- package/dist/kernel/errors/tool-error.js +12 -0
- package/dist/kernel/errors/tool-error.js.map +1 -0
- package/dist/kernel/interfaces/kernel.d.ts +23 -0
- package/dist/kernel/interfaces/kernel.d.ts.map +1 -0
- package/dist/kernel/interfaces/kernel.js +2 -0
- package/dist/kernel/interfaces/kernel.js.map +1 -0
- package/dist/kernel/interfaces/plugin.d.ts +7 -0
- package/dist/kernel/interfaces/plugin.d.ts.map +1 -0
- package/dist/kernel/interfaces/plugin.js +5 -0
- package/dist/kernel/interfaces/plugin.js.map +1 -0
- package/dist/kernel/types.d.ts +103 -0
- package/dist/kernel/types.d.ts.map +1 -0
- package/dist/kernel/types.js +2 -0
- package/dist/kernel/types.js.map +1 -0
- package/dist/testing/in-memory-sandbox.d.ts +66 -0
- package/dist/testing/in-memory-sandbox.d.ts.map +1 -0
- package/dist/testing/in-memory-sandbox.js +507 -0
- package/dist/testing/in-memory-sandbox.js.map +1 -0
- package/dist/testing/mock-llm-model-provider.d.ts +14 -0
- package/dist/testing/mock-llm-model-provider.d.ts.map +1 -0
- package/dist/testing/mock-llm-model-provider.js +30 -0
- package/dist/testing/mock-llm-model-provider.js.map +1 -0
- package/dist/testing/mock-session-store.d.ts +17 -0
- package/dist/testing/mock-session-store.d.ts.map +1 -0
- package/dist/testing/mock-session-store.js +49 -0
- package/dist/testing/mock-session-store.js.map +1 -0
- package/dist/testing/mock-tools.d.ts +38 -0
- package/dist/testing/mock-tools.d.ts.map +1 -0
- package/dist/testing/mock-tools.js +130 -0
- package/dist/testing/mock-tools.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Memory — LLM quality gate before durable storage
|
|
3
|
+
//
|
|
4
|
+
// Given recent conversation messages, the LLM decides what facts, preferences,
|
|
5
|
+
// or decisions are worth remembering and extracts clean typed records.
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
const SYSTEM_PROMPT = `You are a memory extraction engine for an AI agent.
|
|
8
|
+
You receive a batch of recent conversation messages between a user and an assistant.
|
|
9
|
+
|
|
10
|
+
Your job:
|
|
11
|
+
1. Identify facts, preferences, decisions, or procedures worth storing as long-term memories.
|
|
12
|
+
2. Extract each as a clean, structured memory record.
|
|
13
|
+
|
|
14
|
+
Rules:
|
|
15
|
+
- Tool telemetry ("Tool X completed", "Tool X called") is NOT worth remembering unless it reveals a reusable fact about the environment.
|
|
16
|
+
- User preferences, corrections, decisions, and recurring facts ARE worth remembering.
|
|
17
|
+
- Write each memory value as a clean, concise statement — not the raw message text.
|
|
18
|
+
- Detect the language of the input. Write memory values in the SAME language as the user's input.
|
|
19
|
+
- For technical terms, keep them in English regardless of the surrounding language.
|
|
20
|
+
- If no messages are worth remembering, return an empty array.
|
|
21
|
+
|
|
22
|
+
Keys:
|
|
23
|
+
- You may receive a list of EXISTING KEYS grouped by scope. If a memory is about the same topic as an existing key, reuse that exact key — even if the value changed.
|
|
24
|
+
- Only create a new key when no existing key covers the topic.
|
|
25
|
+
- A key names the topic, not the value: lowercase snake_case, 1–4 words (e.g. unit_system, not uses_metric).
|
|
26
|
+
|
|
27
|
+
Respond with ONLY a JSON array (no markdown fences):
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"kind": "user_preference" | "fact" | "decision" | "procedure" | "task_state" | "source_reference",
|
|
31
|
+
"scope": "user" | "project" | "profile" | "organization" | "task",
|
|
32
|
+
"subject": "who or what this is about",
|
|
33
|
+
"key": "short unique identifier for dedup (e.g. response_language, deploy_process)",
|
|
34
|
+
"value": "clean memory statement",
|
|
35
|
+
"confidence": "explicit" | "verified" | "inferred" | "unverified"
|
|
36
|
+
}
|
|
37
|
+
]`;
|
|
38
|
+
// Cap on existing keys sent to the extraction LLM — keeps the prompt small
|
|
39
|
+
// as memories accumulate (keys only, no values).
|
|
40
|
+
const MAX_EXISTING_KEYS = 200;
|
|
41
|
+
let _nextId = 0;
|
|
42
|
+
function memoryId() {
|
|
43
|
+
return `mem_${Date.now()}_${++_nextId}`;
|
|
44
|
+
}
|
|
45
|
+
export class Memory {
|
|
46
|
+
model;
|
|
47
|
+
store;
|
|
48
|
+
agentId;
|
|
49
|
+
constructor(deps) {
|
|
50
|
+
this.model = deps.modelManager;
|
|
51
|
+
this.store = deps.memoryStore;
|
|
52
|
+
this.agentId = deps.agentId;
|
|
53
|
+
}
|
|
54
|
+
// ---------------------------------------------------------------------------
|
|
55
|
+
// Evaluate messages — LLM extracts memories, then persists worthy ones
|
|
56
|
+
// ---------------------------------------------------------------------------
|
|
57
|
+
async evaluateMessages(messages) {
|
|
58
|
+
if (messages.length === 0)
|
|
59
|
+
return [];
|
|
60
|
+
const extractions = await this._extractFromMessages(messages);
|
|
61
|
+
if (!extractions || extractions.length === 0)
|
|
62
|
+
return [];
|
|
63
|
+
const results = [];
|
|
64
|
+
const now = new Date().toISOString();
|
|
65
|
+
for (const extraction of extractions) {
|
|
66
|
+
extraction.key = normalizeKey(extraction.key);
|
|
67
|
+
// Check for existing memory with same key+scope
|
|
68
|
+
// (scoped to this agent — never reinforce/supersede another agent's memory)
|
|
69
|
+
const existing = await this.store.findByKey(this.agentId, extraction.scope, extraction.key);
|
|
70
|
+
if (existing) {
|
|
71
|
+
const updated = await this._handleDuplicate(existing, extraction, now);
|
|
72
|
+
results.push(updated);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const record = await this._createRecord(extraction, now);
|
|
76
|
+
results.push(record);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return results;
|
|
80
|
+
}
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// LLM extraction — batch conversation into a single LLM call
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
async _extractFromMessages(messages) {
|
|
85
|
+
// Format messages for the LLM — only user and assistant messages carry useful context
|
|
86
|
+
const conversationLines = messages
|
|
87
|
+
.filter((m) => m.role === "user" || m.role === "assistant")
|
|
88
|
+
.map((m) => `[${m.role}]: ${m.content}`)
|
|
89
|
+
.join("\n");
|
|
90
|
+
if (!conversationLines.trim())
|
|
91
|
+
return [];
|
|
92
|
+
// Existing keys let the LLM reuse a key instead of inventing a near-duplicate
|
|
93
|
+
const existingKeys = await this._existingKeyCatalog();
|
|
94
|
+
const userContent = existingKeys
|
|
95
|
+
? `EXISTING KEYS:\n${existingKeys}\n\nCONVERSATION:\n${conversationLines}`
|
|
96
|
+
: conversationLines;
|
|
97
|
+
// Errors propagate on purpose: returning [] would look like "nothing worth
|
|
98
|
+
// remembering" and Dreaming would advance the session checkpoint past these
|
|
99
|
+
// messages for good. Throwing keeps the checkpoint, so the next tick retries.
|
|
100
|
+
const response = await this.model.chat([
|
|
101
|
+
{ role: "system", content: SYSTEM_PROMPT },
|
|
102
|
+
{ role: "user", content: userContent },
|
|
103
|
+
]);
|
|
104
|
+
if (response.stopReason === "max_tokens") {
|
|
105
|
+
throw new Error(`memory extraction truncated (output tokens: ${response.usage.outputTokens})`);
|
|
106
|
+
}
|
|
107
|
+
return parseExtractions(response.message.content);
|
|
108
|
+
}
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
// Existing key catalog — distinct active keys grouped by scope, one line each
|
|
111
|
+
// e.g. "user: response_language, unit_system"
|
|
112
|
+
// ---------------------------------------------------------------------------
|
|
113
|
+
async _existingKeyCatalog() {
|
|
114
|
+
const active = await this.store.query({
|
|
115
|
+
agentId: this.agentId,
|
|
116
|
+
statuses: ["active"],
|
|
117
|
+
limit: MAX_EXISTING_KEYS,
|
|
118
|
+
});
|
|
119
|
+
const byScope = new Map();
|
|
120
|
+
for (const record of active) {
|
|
121
|
+
let keys = byScope.get(record.scope);
|
|
122
|
+
if (!keys)
|
|
123
|
+
byScope.set(record.scope, (keys = new Set()));
|
|
124
|
+
keys.add(record.key);
|
|
125
|
+
}
|
|
126
|
+
return [...byScope]
|
|
127
|
+
.map(([scope, keys]) => `${scope}: ${[...keys].sort().join(", ")}`)
|
|
128
|
+
.join("\n");
|
|
129
|
+
}
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// Duplicate handling — merge or supersede
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
async _handleDuplicate(existing, extraction, timestamp) {
|
|
134
|
+
// Same value — reinforce
|
|
135
|
+
if (existing.value === extraction.value) {
|
|
136
|
+
existing.updatedAt = timestamp;
|
|
137
|
+
await this.store.update(existing);
|
|
138
|
+
return existing;
|
|
139
|
+
}
|
|
140
|
+
// Different value for same key — supersede
|
|
141
|
+
existing.status = "superseded";
|
|
142
|
+
await this.store.update(existing);
|
|
143
|
+
return this._createRecord(extraction, timestamp);
|
|
144
|
+
}
|
|
145
|
+
// ---------------------------------------------------------------------------
|
|
146
|
+
// Create a new durable MemoryRecord
|
|
147
|
+
// ---------------------------------------------------------------------------
|
|
148
|
+
async _createRecord(extraction, timestamp) {
|
|
149
|
+
const record = {
|
|
150
|
+
id: memoryId(),
|
|
151
|
+
agentId: this.agentId,
|
|
152
|
+
kind: extraction.kind,
|
|
153
|
+
scope: extraction.scope,
|
|
154
|
+
subject: extraction.subject,
|
|
155
|
+
key: extraction.key,
|
|
156
|
+
value: extraction.value,
|
|
157
|
+
status: "active",
|
|
158
|
+
confidence: extraction.confidence,
|
|
159
|
+
source: "conversation",
|
|
160
|
+
sourceTrust: "user_approved",
|
|
161
|
+
observedAt: timestamp,
|
|
162
|
+
updatedAt: timestamp,
|
|
163
|
+
};
|
|
164
|
+
await this.store.save(record);
|
|
165
|
+
return record;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
// ---------------------------------------------------------------------------
|
|
169
|
+
// Key normalization — "Response Language" / "response-language" → "response_language"
|
|
170
|
+
// ---------------------------------------------------------------------------
|
|
171
|
+
function normalizeKey(key) {
|
|
172
|
+
// Tolerate a missing key from a malformed LLM response
|
|
173
|
+
return String(key ?? "")
|
|
174
|
+
.trim()
|
|
175
|
+
.toLowerCase()
|
|
176
|
+
.replace(/[\s-]+/g, "_")
|
|
177
|
+
.replace(/_+/g, "_")
|
|
178
|
+
.replace(/^_|_$/g, "");
|
|
179
|
+
}
|
|
180
|
+
// ---------------------------------------------------------------------------
|
|
181
|
+
// Parse the LLM's JSON array — tolerant of markdown fences, strict otherwise
|
|
182
|
+
// ---------------------------------------------------------------------------
|
|
183
|
+
function parseExtractions(content) {
|
|
184
|
+
const text = content
|
|
185
|
+
.trim()
|
|
186
|
+
.replace(/^```(?:json)?\s*/i, "")
|
|
187
|
+
.replace(/\s*```$/, "")
|
|
188
|
+
.trim();
|
|
189
|
+
if (!text)
|
|
190
|
+
throw new Error("memory extraction returned empty content");
|
|
191
|
+
const parsed = JSON.parse(text);
|
|
192
|
+
if (!Array.isArray(parsed))
|
|
193
|
+
throw new Error("memory extraction did not return a JSON array");
|
|
194
|
+
return parsed;
|
|
195
|
+
}
|
|
196
|
+
//# sourceMappingURL=memory.js.map
|
package/dist/components/multi-agent-orchestration/agent/memory-system/components/memory.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../../src/components/multi-agent-orchestration/agent/memory-system/components/memory.ts"],"names":[],"mappings":"AAUA,8EAA8E;AAC9E,mDAAmD;AACnD,EAAE;AACF,+EAA+E;AAC/E,uEAAuE;AACvE,8EAA8E;AAE9E,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BpB,CAAC;AAWH,2EAA2E;AAC3E,iDAAiD;AACjD,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,SAAS,QAAQ;IACf,OAAO,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC1C,CAAC;AASD,MAAM,OAAO,MAAM;IACT,KAAK,CAAe;IACpB,KAAK,CAAc;IACnB,OAAO,CAAS;IAExB,YAAY,IAAgB;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAC9B,CAAC;IAED,8EAA8E;IAC9E,uEAAuE;IACvE,8EAA8E;IAE9E,KAAK,CAAC,gBAAgB,CAAC,QAAmB;QACxC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAErC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QAC9D,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CA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i-agent-orchestration/agent/memory-system/components/retrieval.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MemoryStore } from "../../../../persistence-hub/types/memory-store.js";
|
|
2
|
+
import type { RetrievalQuery, RetrievalResult } from "../types/pipeline.js";
|
|
3
|
+
import type { Indexing } from "./indexing.js";
|
|
4
|
+
export interface RetrievalDeps {
|
|
5
|
+
memoryStore: MemoryStore;
|
|
6
|
+
indexing: Indexing;
|
|
7
|
+
}
|
|
8
|
+
export declare class Retrieval {
|
|
9
|
+
private store;
|
|
10
|
+
private indexing;
|
|
11
|
+
constructor(deps: RetrievalDeps);
|
|
12
|
+
recall(query: RetrievalQuery): Promise<RetrievalResult[]>;
|
|
13
|
+
private _markRecalled;
|
|
14
|
+
private _recencyScore;
|
|
15
|
+
private _importanceScore;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=retrieval.d.ts.map
|
package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieval.d.ts","sourceRoot":"","sources":["../../../../../../src/components/multi-agent-orchestration/agent/memory-system/components/retrieval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAS9C,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,QAAQ,CAAW;IAE3B,YAAY,IAAI,EAAE,aAAa,EAG9B;IAMK,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAqE9D;YAOa,aAAa;IAmB3B,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,gBAAgB;CAazB"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export class Retrieval {
|
|
2
|
+
store;
|
|
3
|
+
indexing;
|
|
4
|
+
constructor(deps) {
|
|
5
|
+
this.store = deps.memoryStore;
|
|
6
|
+
this.indexing = deps.indexing;
|
|
7
|
+
}
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// Public API
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
async recall(query) {
|
|
12
|
+
const limit = query.maxResults ?? 10;
|
|
13
|
+
// Step 1: keyword/index search for relevance
|
|
14
|
+
const indexMatches = await this.indexing.search(query.currentContext, limit * 2);
|
|
15
|
+
// Step 2: load full records and score
|
|
16
|
+
const results = [];
|
|
17
|
+
for (const match of indexMatches) {
|
|
18
|
+
const record = await this.store.get(match.recordId);
|
|
19
|
+
if (!record || record.status !== "active")
|
|
20
|
+
continue;
|
|
21
|
+
// Agent filter — only recall the querying agent's own memories
|
|
22
|
+
if (record.agentId !== query.agentId)
|
|
23
|
+
continue;
|
|
24
|
+
// Scope filter
|
|
25
|
+
if (query.scope && record.scope !== query.scope)
|
|
26
|
+
continue;
|
|
27
|
+
if (query.kinds?.length && !query.kinds.includes(record.kind))
|
|
28
|
+
continue;
|
|
29
|
+
const relevanceScore = match.score;
|
|
30
|
+
const recencyScore = this._recencyScore(record);
|
|
31
|
+
const importanceScore = this._importanceScore(record);
|
|
32
|
+
const combinedScore = relevanceScore * 0.50 +
|
|
33
|
+
recencyScore * 0.25 +
|
|
34
|
+
importanceScore * 0.25;
|
|
35
|
+
results.push({
|
|
36
|
+
record,
|
|
37
|
+
relevanceScore,
|
|
38
|
+
recencyScore,
|
|
39
|
+
importanceScore,
|
|
40
|
+
combinedScore,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
// Step 3: also pull scope-matched records not found by keyword search
|
|
44
|
+
if (query.scope || query.kinds?.length) {
|
|
45
|
+
const metadataResults = await this.indexing.queryByMetadata({
|
|
46
|
+
agentId: query.agentId,
|
|
47
|
+
scopes: query.scope ? [query.scope] : undefined,
|
|
48
|
+
kinds: query.kinds,
|
|
49
|
+
statuses: ["active"],
|
|
50
|
+
limit: limit * 2,
|
|
51
|
+
});
|
|
52
|
+
const seen = new Set(results.map((r) => r.record.id));
|
|
53
|
+
for (const record of metadataResults) {
|
|
54
|
+
if (seen.has(record.id))
|
|
55
|
+
continue;
|
|
56
|
+
const recencyScore = this._recencyScore(record);
|
|
57
|
+
const importanceScore = this._importanceScore(record);
|
|
58
|
+
const combinedScore = recencyScore * 0.50 + importanceScore * 0.50;
|
|
59
|
+
results.push({
|
|
60
|
+
record,
|
|
61
|
+
relevanceScore: 0,
|
|
62
|
+
recencyScore,
|
|
63
|
+
importanceScore,
|
|
64
|
+
combinedScore,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Sort by combined score and return top N
|
|
69
|
+
results.sort((a, b) => b.combinedScore - a.combinedScore);
|
|
70
|
+
const recalled = results.slice(0, limit);
|
|
71
|
+
await this._markRecalled(recalled);
|
|
72
|
+
return recalled;
|
|
73
|
+
}
|
|
74
|
+
// ---------------------------------------------------------------------------
|
|
75
|
+
// Recall bookkeeping — memories in active use should not expire
|
|
76
|
+
// ---------------------------------------------------------------------------
|
|
77
|
+
// Best-effort: a failed write must never break recall itself.
|
|
78
|
+
async _markRecalled(results) {
|
|
79
|
+
const now = new Date().toISOString();
|
|
80
|
+
await Promise.all(results.map(async ({ record }) => {
|
|
81
|
+
record.lastRecalledAt = now;
|
|
82
|
+
try {
|
|
83
|
+
await this.store.update(record);
|
|
84
|
+
}
|
|
85
|
+
catch (err) {
|
|
86
|
+
console.warn(`[memory] failed to mark record ${record.id} as recalled:`, err);
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
91
|
+
// Scoring helpers
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// Recency — linear decay over 30 days
|
|
94
|
+
_recencyScore(record) {
|
|
95
|
+
const lastTouch = record.updatedAt ?? record.observedAt;
|
|
96
|
+
const ageMs = Date.now() - new Date(lastTouch).getTime();
|
|
97
|
+
const ageDays = ageMs / (1000 * 60 * 60 * 24);
|
|
98
|
+
return Math.max(0, 1 - ageDays / 30);
|
|
99
|
+
}
|
|
100
|
+
// Importance — derived from confidence and trust
|
|
101
|
+
_importanceScore(record) {
|
|
102
|
+
const confidenceWeights = {
|
|
103
|
+
explicit: 1.0, verified: 0.8, inferred: 0.5, unverified: 0.2,
|
|
104
|
+
};
|
|
105
|
+
const trustWeights = {
|
|
106
|
+
user_approved: 1.0, verified_internal: 0.8, team_authored: 0.6,
|
|
107
|
+
external_document: 0.3, untrusted: 0.1, model_speculation: 0.1,
|
|
108
|
+
};
|
|
109
|
+
const c = confidenceWeights[record.confidence] ?? 0;
|
|
110
|
+
const t = trustWeights[record.sourceTrust] ?? 0;
|
|
111
|
+
return (c + t) / 2;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=retrieval.js.map
|
package/dist/components/multi-agent-orchestration/agent/memory-system/components/retrieval.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieval.js","sourceRoot":"","sources":["../../../../../../src/components/multi-agent-orchestration/agent/memory-system/components/retrieval.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,SAAS;IACZ,KAAK,CAAc;IACnB,QAAQ,CAAW;IAE3B,YAAY,IAAmB;QAC7B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChC,CAAC;IAED,8EAA8E;IAC9E,aAAa;IACb,8EAA8E;IAE9E,KAAK,CAAC,MAAM,CAAC,KAAqB;QAChC,MAAM,KAAK,GAAG,K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,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG;SAC7D,CAAC;QACF,MAAM,YAAY,GAA2B;YAC3C,aAAa,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG;YAC9D,iBAAiB,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG;SAC/D,CAAC;QAEF,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACpD,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAChD,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { PersistenceHub } from "../../../persistence-hub/persistence-hub.js";
|
|
2
|
+
import type { EventBus } from "../../../event-handler/types.js";
|
|
3
|
+
import type { ModelManager } from "../model-manager/model-manager.js";
|
|
4
|
+
import type { ConsolidationResult, RetrievalQuery, RetrievalResult } from "./types/pipeline.js";
|
|
5
|
+
import type { MemoryConfig } from "./types/config.js";
|
|
6
|
+
import type { AgentProfile } from "../types.js";
|
|
7
|
+
export interface MemorySystemDeps {
|
|
8
|
+
persistence: PersistenceHub;
|
|
9
|
+
eventBus: EventBus;
|
|
10
|
+
modelManager: ModelManager;
|
|
11
|
+
profile: AgentProfile;
|
|
12
|
+
}
|
|
13
|
+
/** Per-memory trace detail — ids, labels and scores only, never the memory value. */
|
|
14
|
+
export interface RecalledMemoryTrace {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: string;
|
|
17
|
+
key: string;
|
|
18
|
+
combinedScore: number;
|
|
19
|
+
relevanceScore: number;
|
|
20
|
+
recencyScore: number;
|
|
21
|
+
importanceScore: number;
|
|
22
|
+
}
|
|
23
|
+
/** Outcome of one turn's recall — what to inject plus stats for tracing. */
|
|
24
|
+
export interface RecalledMemories {
|
|
25
|
+
/** System-prompt section to append; null when there is nothing to inject. */
|
|
26
|
+
content: string | null;
|
|
27
|
+
recordIds: string[];
|
|
28
|
+
memories: RecalledMemoryTrace[];
|
|
29
|
+
maxResults: number;
|
|
30
|
+
/** Why recall did not run, if it was skipped. */
|
|
31
|
+
skipped?: "memory-disabled" | "recall-disabled";
|
|
32
|
+
/** True when this call had to build the in-memory index first (cold start). */
|
|
33
|
+
indexRebuilt: boolean;
|
|
34
|
+
indexRebuildMs?: number;
|
|
35
|
+
/** Active memories loaded into the index — only known when indexRebuilt. */
|
|
36
|
+
indexedCount?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare class MemorySystem {
|
|
39
|
+
/**
|
|
40
|
+
* Step 1: LLM quality gate — clean extraction before durable storage
|
|
41
|
+
*/
|
|
42
|
+
private memory;
|
|
43
|
+
/**
|
|
44
|
+
* Step 2: consolidate — read session messages, delegate to Memory, expire stale
|
|
45
|
+
*/
|
|
46
|
+
private dreaming;
|
|
47
|
+
/**
|
|
48
|
+
* Step 3: index memories for retrieval
|
|
49
|
+
*/
|
|
50
|
+
private indexing;
|
|
51
|
+
/**
|
|
52
|
+
* Step 4: relevance-ranked recall for current context
|
|
53
|
+
*/
|
|
54
|
+
private retrieval;
|
|
55
|
+
/**
|
|
56
|
+
* Step 5: feedback from usage outcomes
|
|
57
|
+
*/
|
|
58
|
+
private learning;
|
|
59
|
+
/**
|
|
60
|
+
* When to consolidate — listens on the EventBus, driven by MemoryConfig.consolidation
|
|
61
|
+
*/
|
|
62
|
+
private scheduler;
|
|
63
|
+
private config;
|
|
64
|
+
/**
|
|
65
|
+
* The keyword index is in-memory — empty after a restart until the first
|
|
66
|
+
* rebuild. recall() builds it lazily so memories persisted before the
|
|
67
|
+
* restart are recallable without waiting for a consolidation pass.
|
|
68
|
+
*/
|
|
69
|
+
private indexBuilt;
|
|
70
|
+
private agentId;
|
|
71
|
+
constructor(deps: MemorySystemDeps);
|
|
72
|
+
/** Start trigger-driven consolidation (EventBus subscriptions + interval timer). */
|
|
73
|
+
start(): void;
|
|
74
|
+
/** Stop triggers and wait for an in-flight pass. Never starts a new pass. */
|
|
75
|
+
dispose(): Promise<void>;
|
|
76
|
+
consolidate(sessionId: string): Promise<ConsolidationResult[]>;
|
|
77
|
+
recall(query: RetrievalQuery): Promise<RetrievalResult[]>;
|
|
78
|
+
/** Build the index if it is still cold. Returns rebuild stats, or null if it was already built. */
|
|
79
|
+
private ensureIndex;
|
|
80
|
+
/**
|
|
81
|
+
* Recall for one agent-loop turn: memories relevant to the user's message,
|
|
82
|
+
* formatted as a system-prompt section. `content` is null when memory or
|
|
83
|
+
* recall is disabled, or nothing relevant was found; the remaining fields
|
|
84
|
+
* are stats for the agent loop's memory-recall trace span.
|
|
85
|
+
*/
|
|
86
|
+
recallForTurn(userMessage: string, sessionId: string): Promise<RecalledMemories>;
|
|
87
|
+
updateConfig(config: MemoryConfig): void;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=memory-system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-system.d.ts","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/memory-system/memory-system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGtE,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,cAAc,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CA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E,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAE7B;IASK,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAOnE;IAMK,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAI9D;IAED,mGAAmG;YACrF,WAAW;IAQzB;;;;;OAKG;IACG,aAAa,CACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,gBAAgB,CAAC,CA8B3B;IAMD,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAMvC;CACF"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { Dreaming } from "./components/dreaming.js";
|
|
2
|
+
import { Indexing } from "./components/indexing.js";
|
|
3
|
+
import { Learning } from "./components/learning.js";
|
|
4
|
+
import { Memory } from "./components/memory.js";
|
|
5
|
+
import { Retrieval } from "./components/retrieval.js";
|
|
6
|
+
import { ConsolidationScheduler } from "./components/consolidation-scheduler.js";
|
|
7
|
+
const DEFAULTRECALLMAXRESULTS = 8;
|
|
8
|
+
function formatRecalledMemories(results) {
|
|
9
|
+
const lines = results.map(({ record }) => {
|
|
10
|
+
const label = record.subject ? `${record.subject} — ${record.key}` : record.key;
|
|
11
|
+
return `- [${record.kind}] ${label}: ${record.value}`;
|
|
12
|
+
});
|
|
13
|
+
return [
|
|
14
|
+
"## Recalled memories",
|
|
15
|
+
"Long-term memories from earlier conversations that may be relevant to this message. They can be outdated — if the user says otherwise now, trust the user.",
|
|
16
|
+
...lines,
|
|
17
|
+
].join("\n");
|
|
18
|
+
}
|
|
19
|
+
export class MemorySystem {
|
|
20
|
+
/**
|
|
21
|
+
* Step 1: LLM quality gate — clean extraction before durable storage
|
|
22
|
+
*/
|
|
23
|
+
memory;
|
|
24
|
+
/**
|
|
25
|
+
* Step 2: consolidate — read session messages, delegate to Memory, expire stale
|
|
26
|
+
*/
|
|
27
|
+
dreaming;
|
|
28
|
+
/**
|
|
29
|
+
* Step 3: index memories for retrieval
|
|
30
|
+
*/
|
|
31
|
+
indexing;
|
|
32
|
+
/**
|
|
33
|
+
* Step 4: relevance-ranked recall for current context
|
|
34
|
+
*/
|
|
35
|
+
retrieval;
|
|
36
|
+
/**
|
|
37
|
+
* Step 5: feedback from usage outcomes
|
|
38
|
+
*/
|
|
39
|
+
learning;
|
|
40
|
+
/**
|
|
41
|
+
* When to consolidate — listens on the EventBus, driven by MemoryConfig.consolidation
|
|
42
|
+
*/
|
|
43
|
+
scheduler;
|
|
44
|
+
config;
|
|
45
|
+
/**
|
|
46
|
+
* The keyword index is in-memory — empty after a restart until the first
|
|
47
|
+
* rebuild. recall() builds it lazily so memories persisted before the
|
|
48
|
+
* restart are recallable without waiting for a consolidation pass.
|
|
49
|
+
*/
|
|
50
|
+
indexBuilt = false;
|
|
51
|
+
agentId;
|
|
52
|
+
constructor(deps) {
|
|
53
|
+
this.agentId = deps.profile.id;
|
|
54
|
+
this.memory = new Memory({
|
|
55
|
+
modelManager: deps.modelManager,
|
|
56
|
+
memoryStore: deps.persistence.memory,
|
|
57
|
+
agentId: deps.profile.id,
|
|
58
|
+
});
|
|
59
|
+
this.dreaming = new Dreaming({
|
|
60
|
+
agentId: deps.profile.id,
|
|
61
|
+
messageStore: deps.persistence.messages,
|
|
62
|
+
sessionStore: deps.persistence.sessions,
|
|
63
|
+
memoryStore: deps.persistence.memory,
|
|
64
|
+
memory: this.memory,
|
|
65
|
+
config: deps.profile.memory.dreaming,
|
|
66
|
+
});
|
|
67
|
+
this.indexing = new Indexing({
|
|
68
|
+
agentId: deps.profile.id,
|
|
69
|
+
memoryStore: deps.persistence.memory,
|
|
70
|
+
});
|
|
71
|
+
this.retrieval = new Retrieval({
|
|
72
|
+
memoryStore: deps.persistence.memory,
|
|
73
|
+
indexing: this.indexing,
|
|
74
|
+
});
|
|
75
|
+
this.learning = new Learning();
|
|
76
|
+
this.config = deps.profile.memory;
|
|
77
|
+
this.scheduler = new ConsolidationScheduler({
|
|
78
|
+
agentId: deps.profile.id,
|
|
79
|
+
eventBus: deps.eventBus,
|
|
80
|
+
messageStore: deps.persistence.messages,
|
|
81
|
+
getConfig: () => this.config,
|
|
82
|
+
consolidatedCount: (sessionId) => this.dreaming.consolidatedMessageCount(sessionId),
|
|
83
|
+
consolidate: (sessionId) => this.consolidate(sessionId),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// ---------------------------------------------------------------------------
|
|
87
|
+
// Lifecycle — subscribe to agent events / release them
|
|
88
|
+
// ---------------------------------------------------------------------------
|
|
89
|
+
/** Start trigger-driven consolidation (EventBus subscriptions + interval timer). */
|
|
90
|
+
start() {
|
|
91
|
+
this.scheduler.start();
|
|
92
|
+
}
|
|
93
|
+
/** Stop triggers and wait for an in-flight pass. Never starts a new pass. */
|
|
94
|
+
async dispose() {
|
|
95
|
+
await this.scheduler.stop();
|
|
96
|
+
}
|
|
97
|
+
// ---------------------------------------------------------------------------
|
|
98
|
+
// Consolidation — run Dreaming pass (call on schedule or at session end)
|
|
99
|
+
// Update (260923-e1q): triggered by ConsolidationScheduler on the
|
|
100
|
+
// MemoryConfig.consolidation.intervalMinutes timer, for every session with
|
|
101
|
+
// new messages — see components/consolidation-scheduler.ts
|
|
102
|
+
// ---------------------------------------------------------------------------
|
|
103
|
+
async consolidate(sessionId) {
|
|
104
|
+
if (!this.config.enabled)
|
|
105
|
+
return [];
|
|
106
|
+
const results = await this.dreaming.consolidate(sessionId);
|
|
107
|
+
// Rebuild index after consolidation (promotions, expirations, merges)
|
|
108
|
+
await this.indexing.rebuild();
|
|
109
|
+
this.indexBuilt = true;
|
|
110
|
+
return results;
|
|
111
|
+
}
|
|
112
|
+
// ---------------------------------------------------------------------------
|
|
113
|
+
// Retrieval — recall relevant memories for current context
|
|
114
|
+
// ---------------------------------------------------------------------------
|
|
115
|
+
async recall(query) {
|
|
116
|
+
if (!this.config.enabled)
|
|
117
|
+
return [];
|
|
118
|
+
await this.ensureIndex();
|
|
119
|
+
return this.retrieval.recall(query);
|
|
120
|
+
}
|
|
121
|
+
/** Build the index if it is still cold. Returns rebuild stats, or null if it was already built. */
|
|
122
|
+
async ensureIndex() {
|
|
123
|
+
if (this.indexBuilt)
|
|
124
|
+
return null;
|
|
125
|
+
const started = performance.now();
|
|
126
|
+
const indexedCount = await this.indexing.rebuild();
|
|
127
|
+
this.indexBuilt = true;
|
|
128
|
+
return { durationMs: Math.round(performance.now() - started), indexedCount };
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Recall for one agent-loop turn: memories relevant to the user's message,
|
|
132
|
+
* formatted as a system-prompt section. `content` is null when memory or
|
|
133
|
+
* recall is disabled, or nothing relevant was found; the remaining fields
|
|
134
|
+
* are stats for the agent loop's memory-recall trace span.
|
|
135
|
+
*/
|
|
136
|
+
async recallForTurn(userMessage, sessionId) {
|
|
137
|
+
const maxResults = this.config.recall?.maxResults ?? DEFAULTRECALLMAXRESULTS;
|
|
138
|
+
const empty = { content: null, recordIds: [], memories: [], maxResults, indexRebuilt: false };
|
|
139
|
+
if (!this.config.enabled)
|
|
140
|
+
return { ...empty, skipped: "memory-disabled" };
|
|
141
|
+
if (maxResults <= 0)
|
|
142
|
+
return { ...empty, skipped: "recall-disabled" };
|
|
143
|
+
const rebuild = await this.ensureIndex();
|
|
144
|
+
const results = await this.retrieval.recall({
|
|
145
|
+
agentId: this.agentId,
|
|
146
|
+
sessionId,
|
|
147
|
+
currentContext: userMessage,
|
|
148
|
+
maxResults,
|
|
149
|
+
});
|
|
150
|
+
return {
|
|
151
|
+
content: results.length > 0 ? formatRecalledMemories(results) : null,
|
|
152
|
+
recordIds: results.map((r) => r.record.id),
|
|
153
|
+
memories: results.map((r) => ({
|
|
154
|
+
id: r.record.id,
|
|
155
|
+
kind: r.record.kind,
|
|
156
|
+
key: r.record.key,
|
|
157
|
+
combinedScore: r.combinedScore,
|
|
158
|
+
relevanceScore: r.relevanceScore,
|
|
159
|
+
recencyScore: r.recencyScore,
|
|
160
|
+
importanceScore: r.importanceScore,
|
|
161
|
+
})),
|
|
162
|
+
maxResults,
|
|
163
|
+
indexRebuilt: rebuild !== null,
|
|
164
|
+
...(rebuild && { indexRebuildMs: rebuild.durationMs, indexedCount: rebuild.indexedCount }),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
// ---------------------------------------------------------------------------
|
|
168
|
+
// Runtime config updates
|
|
169
|
+
// ---------------------------------------------------------------------------
|
|
170
|
+
updateConfig(config) {
|
|
171
|
+
this.config = config;
|
|
172
|
+
if (config.dreaming) {
|
|
173
|
+
this.dreaming.updateConfig(config.dreaming);
|
|
174
|
+
}
|
|
175
|
+
this.scheduler.rearm();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=memory-system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-system.js","sourceRoot":"","sources":["../../../../../src/components/multi-agent-orchestration/agent/memory-system/memory-system.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOpD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAsCjF,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC,SAAS,sBAAsB,CAAC,OAA0B;IACxD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;QACvC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,MAAM,MAAM,CAAC,GAAG,EAAE,CA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