@looopy-ai/core 2.1.11 → 2.1.12

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.
@@ -1,21 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
- import type { MessageStore } from '../stores/messages/interfaces';
3
- import type { AgentState, AgentStore } from '../types/agent';
4
- import type { Plugin } from '../types/core';
2
+ import type { AgentConfig, AgentState } from '../types/agent';
5
3
  import type { ContextAnyEvent } from '../types/event';
6
- import type { LLMProvider } from '../types/llm';
7
4
  import type { LLMMessage } from '../types/message';
8
- export interface AgentConfig<AuthContext> {
9
- agentId: string;
10
- contextId: string;
11
- llmProvider: LLMProvider;
12
- messageStore: MessageStore;
13
- agentStore?: AgentStore;
14
- autoCompact?: boolean;
15
- maxMessages?: number;
16
- plugins?: Plugin<AuthContext>[];
17
- logger?: import('pino').Logger;
18
- }
19
5
  export interface GetMessagesOptions {
20
6
  maxMessages?: number;
21
7
  maxTokens?: number;
@@ -1,3 +1,3 @@
1
- export { Agent, type AgentConfig, type GetMessagesOptions } from './agent';
1
+ export { Agent, type GetMessagesOptions } from './agent';
2
2
  export { StateCleanupService } from './cleanup';
3
3
  export { createLogger, getLogger, type LoggerConfig, type LogLevel, setDefaultLogger, } from './logger';
@@ -1,4 +1,18 @@
1
+ import type { MessageStore } from '../stores/messages';
1
2
  import type { SerializedError } from '../utils/error';
3
+ import type { Plugin } from './core';
4
+ import type { LLMProvider } from './llm';
5
+ export interface AgentConfig<AuthContext> {
6
+ agentId: string;
7
+ contextId: string;
8
+ llmProvider: LLMProvider;
9
+ messageStore: MessageStore;
10
+ agentStore?: AgentStore;
11
+ autoCompact?: boolean;
12
+ maxMessages?: number;
13
+ plugins?: Plugin<AuthContext>[];
14
+ logger?: import('pino').Logger;
15
+ }
2
16
  export interface AgentState {
3
17
  status: 'created' | 'idle' | 'busy' | 'shutdown' | 'error';
4
18
  turnCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@looopy-ai/core",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "RxJS-based AI agent framework",
5
5
  "repository": {
6
6
  "url": "https://github.com/looopy-ai/lib"