@framers/agentos 0.1.71 → 0.1.73

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.
Files changed (64) hide show
  1. package/README.md +135 -18
  2. package/dist/api/AgentOS.d.ts +65 -4
  3. package/dist/api/AgentOS.d.ts.map +1 -1
  4. package/dist/api/AgentOS.js +103 -0
  5. package/dist/api/AgentOS.js.map +1 -1
  6. package/dist/api/generateImage.d.ts +1 -29
  7. package/dist/api/generateImage.d.ts.map +1 -1
  8. package/dist/api/generateImage.js +32 -5
  9. package/dist/api/generateImage.js.map +1 -1
  10. package/dist/api/interfaces/IAgentOS.d.ts +18 -1
  11. package/dist/api/interfaces/IAgentOS.d.ts.map +1 -1
  12. package/dist/cognitive_substrate/GMI.d.ts +12 -0
  13. package/dist/cognitive_substrate/GMI.d.ts.map +1 -1
  14. package/dist/cognitive_substrate/GMI.js +134 -4
  15. package/dist/cognitive_substrate/GMI.js.map +1 -1
  16. package/dist/cognitive_substrate/GMIManager.d.ts +16 -0
  17. package/dist/cognitive_substrate/GMIManager.d.ts.map +1 -1
  18. package/dist/cognitive_substrate/GMIManager.js +25 -2
  19. package/dist/cognitive_substrate/GMIManager.js.map +1 -1
  20. package/dist/cognitive_substrate/IGMI.d.ts +2 -0
  21. package/dist/cognitive_substrate/IGMI.d.ts.map +1 -1
  22. package/dist/core/images/IImageProvider.d.ts +120 -0
  23. package/dist/core/images/IImageProvider.d.ts.map +1 -0
  24. package/dist/core/images/IImageProvider.js +71 -0
  25. package/dist/core/images/IImageProvider.js.map +1 -0
  26. package/dist/core/images/index.d.ts +13 -0
  27. package/dist/core/images/index.d.ts.map +1 -0
  28. package/dist/core/images/index.js +35 -0
  29. package/dist/core/images/index.js.map +1 -0
  30. package/dist/core/images/providers/OpenAIImageProvider.d.ts +17 -0
  31. package/dist/core/images/providers/OpenAIImageProvider.d.ts.map +1 -0
  32. package/dist/core/images/providers/OpenAIImageProvider.js +110 -0
  33. package/dist/core/images/providers/OpenAIImageProvider.js.map +1 -0
  34. package/dist/core/images/providers/OpenRouterImageProvider.d.ts +18 -0
  35. package/dist/core/images/providers/OpenRouterImageProvider.d.ts.map +1 -0
  36. package/dist/core/images/providers/OpenRouterImageProvider.js +111 -0
  37. package/dist/core/images/providers/OpenRouterImageProvider.js.map +1 -0
  38. package/dist/core/images/providers/ReplicateImageProvider.d.ts +18 -0
  39. package/dist/core/images/providers/ReplicateImageProvider.d.ts.map +1 -0
  40. package/dist/core/images/providers/ReplicateImageProvider.js +177 -0
  41. package/dist/core/images/providers/ReplicateImageProvider.js.map +1 -0
  42. package/dist/core/images/providers/StabilityImageProvider.d.ts +16 -0
  43. package/dist/core/images/providers/StabilityImageProvider.d.ts.map +1 -0
  44. package/dist/core/images/providers/StabilityImageProvider.js +195 -0
  45. package/dist/core/images/providers/StabilityImageProvider.js.map +1 -0
  46. package/dist/core/llm/providers/implementations/OllamaProvider.d.ts.map +1 -1
  47. package/dist/core/llm/providers/implementations/OllamaProvider.js +26 -2
  48. package/dist/core/llm/providers/implementations/OllamaProvider.js.map +1 -1
  49. package/dist/extensions/types.d.ts +5 -0
  50. package/dist/extensions/types.d.ts.map +1 -1
  51. package/dist/extensions/types.js +6 -0
  52. package/dist/extensions/types.js.map +1 -1
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +2 -1
  56. package/dist/index.js.map +1 -1
  57. package/dist/memory/CognitiveMemoryManager.d.ts +16 -0
  58. package/dist/memory/CognitiveMemoryManager.d.ts.map +1 -1
  59. package/dist/memory/CognitiveMemoryManager.js.map +1 -1
  60. package/dist/memory/store/MemoryStore.d.ts +9 -0
  61. package/dist/memory/store/MemoryStore.d.ts.map +1 -1
  62. package/dist/memory/store/MemoryStore.js +33 -0
  63. package/dist/memory/store/MemoryStore.js.map +1 -1
  64. package/package.json +6 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  # AgentOS
8
8
 
9
- **Open-source TypeScript runtime for production AI agents — multimodal RAG, multi-agent orchestration, 37 channel adapters, 5-tier guardrails, 21 LLM providers.**
9
+ **Open-source TypeScript runtime for production AI agents — unified graph orchestration (AgentGraph / workflow / mission), multimodal RAG, 37 channel adapters, 5-tier guardrails, 21 LLM providers.**
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/@framers/agentos?style=flat-square&logo=npm&color=cb3837)](https://www.npmjs.com/package/@framers/agentos)
12
12
  [![CI](https://img.shields.io/github/actions/workflow/status/framersai/agentos/ci.yml?style=flat-square&logo=github&label=CI)](https://github.com/framersai/agentos/actions)
@@ -24,6 +24,8 @@
24
24
 
25
25
  - [Overview](#overview)
26
26
  - [Quick Start](#quick-start)
27
+ - [High-Level API](#high-level-api)
28
+ - [Low-Level Runtime API](#low-level-runtime-api)
27
29
  - [System Architecture](#system-architecture)
28
30
  - [Architecture Diagram](#architecture-diagram)
29
31
  - [Request Lifecycle](#request-lifecycle)
@@ -41,7 +43,7 @@
41
43
  - [Human-in-the-Loop (HITL)](#human-in-the-loop-hitl)
42
44
  - [Channels System](#channels-system)
43
45
  - [Voice and Telephony](#voice-and-telephony)
44
- - [Workflows](#workflows)
46
+ - [Unified Orchestration Layer](#unified-orchestration-layer)
45
47
  - [Multi-Agent Coordination](#multi-agent-coordination)
46
48
  - [Observability](#observability)
47
49
  - [Skills](#skills)
@@ -144,7 +146,78 @@ npm install @framers/agentos
144
146
 
145
147
  **Requirements:** Node.js 18+ and TypeScript 5.0+
146
148
 
147
- ### Minimal Example
149
+ **Start here:**
150
+
151
+ - Use [`generateText()` / `streamText()` / `generateImage()` / `agent()`](./docs/HIGH_LEVEL_API.md) when you want the fastest path from prompt to working code.
152
+ - Use [`AgentOS`](#low-level-runtime-api) when you need extensions, workflows, personas, HITL, or full runtime control.
153
+ - Browse the live docs entrypoints at [docs.agentos.sh/getting-started/high-level-api](https://docs.agentos.sh/getting-started/high-level-api) and [docs.agentos.sh/api](https://docs.agentos.sh/api).
154
+
155
+ ### High-Level API
156
+
157
+ Use the streamlined APIs when you want AI SDK-style text generation, image generation, or stateful sessions without wiring the full AgentOS runtime.
158
+
159
+ ```typescript
160
+ import { agent, generateImage, generateText, streamText } from '@framers/agentos';
161
+
162
+ const quick = await generateText({
163
+ model: 'openai:gpt-4.1-mini',
164
+ prompt: 'Explain how TCP handshakes work in 3 bullets.',
165
+ });
166
+
167
+ console.log(quick.text);
168
+
169
+ const live = streamText({
170
+ model: 'openai:gpt-4.1-mini',
171
+ prompt: 'Stream a short explanation of SYN, SYN-ACK, ACK.',
172
+ });
173
+
174
+ for await (const delta of live.textStream) {
175
+ process.stdout.write(delta);
176
+ }
177
+
178
+ const image = await generateImage({
179
+ model: 'openai:gpt-image-1.5',
180
+ prompt: 'A cinematic neon city skyline reflected in rain at night.',
181
+ });
182
+
183
+ console.log(image.images[0]?.mimeType);
184
+
185
+ const assistant = agent({
186
+ model: 'openai:gpt-4.1-mini',
187
+ instructions: 'You are a concise networking tutor.',
188
+ maxSteps: 3,
189
+ });
190
+
191
+ const session = assistant.session('tcp-demo');
192
+ const reply = await session.send('Now compare TCP and UDP.');
193
+ console.log(reply.text);
194
+ ```
195
+
196
+ Built-in image providers: `openai`, `openrouter`, `stability`, and `replicate`.
197
+
198
+ Use `providerOptions` when you need provider-native controls without leaving the
199
+ high-level API:
200
+
201
+ ```typescript
202
+ const poster = await generateImage({
203
+ model: 'stability:stable-image-core',
204
+ prompt: 'An art deco travel poster for a moon colony',
205
+ negativePrompt: 'text, watermark',
206
+ providerOptions: {
207
+ stability: {
208
+ stylePreset: 'illustration',
209
+ seed: 42,
210
+ cfgScale: 8,
211
+ },
212
+ },
213
+ });
214
+ ```
215
+
216
+ Runnable examples: [`examples/high-level-api.mjs`](./examples/high-level-api.mjs), [`examples/generate-image.mjs`](./examples/generate-image.mjs)
217
+
218
+ Use `AgentOS` directly when you need personas, chunk-level streaming events, extensions, workflows, multi-agent orchestration, or full runtime lifecycle control.
219
+
220
+ ### Low-Level Runtime API
148
221
 
149
222
  ```typescript
150
223
  import { AgentOS, AgentOSResponseChunkType } from '@framers/agentos';
@@ -835,29 +908,73 @@ Voice providers are registered via `EXTENSION_KIND_TOOL` with the `voice-call-pr
835
908
 
836
909
  ---
837
910
 
838
- ### Workflows
911
+ ### Unified Orchestration Layer
839
912
 
840
- **Location:** `src/core/workflows/`
913
+ **Location:** `src/orchestration/`
841
914
 
842
- Declarative multi-step workflows with persistence and monitoring.
915
+ Three authoring APIs compile to one `CompiledExecutionGraph` IR executed by a single `GraphRuntime`. Persistent checkpointing enables time-travel debugging and fault recovery.
843
916
 
844
- - **WorkflowEngine** -- Instantiates and executes workflow definitions
845
- - **IWorkflowStore** -- Persistence interface for workflow state (supports SQL and in-memory backends)
846
- - **WorkflowTypes** -- Type definitions for workflow definitions, instances, tasks, and progress updates
917
+ | API | Level | Use case |
918
+ |-----|-------|----------|
919
+ | **`AgentGraph`** | Low-level | Explicit nodes, edges, cycles, subgraphs full graph control |
920
+ | **`workflow()`** | Mid-level | Deterministic DAG chains with step/branch/parallel — Zod-typed I/O |
921
+ | **`mission()`** | High-level | Intent-driven — declare goal + constraints, PlanningEngine decides steps |
847
922
 
848
- Workflows integrate with the IAgentOS interface:
923
+ **Differentiators vs LangGraph / Mastra:** memory-aware state, capability discovery routing, personality-driven edges, inter-step guardrails, streaming at every node transition.
849
924
 
850
925
  ```typescript
851
- // List available workflow definitions
852
- const definitions = agent.listWorkflowDefinitions();
926
+ import { AgentGraph, toolNode, gmiNode, START, END } from '@framers/agentos/orchestration';
927
+ import { z } from 'zod';
928
+
929
+ // Low-level: explicit graph with conditional routing
930
+ const graph = new AgentGraph({
931
+ input: z.object({ topic: z.string() }),
932
+ scratch: z.object({ confidence: z.number().default(0) }),
933
+ artifacts: z.object({ summary: z.string() }),
934
+ })
935
+ .addNode('search', toolNode('web_search'))
936
+ .addNode('evaluate', gmiNode({ instructions: 'Evaluate quality', executionMode: 'single_turn' }))
937
+ .addNode('summarize', gmiNode({ instructions: 'Write summary', executionMode: 'single_turn' }))
938
+ .addEdge(START, 'search')
939
+ .addEdge('search', 'evaluate')
940
+ .addConditionalEdge('evaluate', (s) => s.scratch.confidence > 0.8 ? 'summarize' : 'search')
941
+ .addEdge('summarize', END)
942
+ .compile();
943
+
944
+ const result = await graph.invoke({ topic: 'quantum computing' });
945
+
946
+ // Mid-level: deterministic workflow
947
+ import { workflow } from '@framers/agentos/orchestration';
948
+
949
+ const flow = workflow('onboarding')
950
+ .input(z.object({ email: z.string() }))
951
+ .returns(z.object({ userId: z.string() }))
952
+ .step('validate', { tool: 'email_validator' })
953
+ .then('create', { tool: 'user_service' })
954
+ .compile();
955
+
956
+ // High-level: intent-driven
957
+ import { mission } from '@framers/agentos/orchestration';
958
+
959
+ const researcher = mission('research')
960
+ .input(z.object({ topic: z.string() }))
961
+ .goal('Research {topic} and produce a cited summary')
962
+ .returns(z.object({ summary: z.string() }))
963
+ .planner({ strategy: 'plan_and_execute', maxSteps: 8 })
964
+ .compile();
965
+
966
+ const plan = await researcher.explain({ topic: 'AI safety' }); // preview plan without executing
967
+ ```
853
968
 
854
- // Start a workflow instance
855
- const instance = await agent.startWorkflow('data-pipeline-v1', input, {
856
- context: { source: 'scheduled' },
857
- roleAssignments: { analyst: 'gmi-123', reviewer: 'gmi-456' },
858
- });
969
+ See [`docs/UNIFIED_ORCHESTRATION.md`](docs/UNIFIED_ORCHESTRATION.md), [`docs/AGENT_GRAPH.md`](docs/AGENT_GRAPH.md), [`docs/WORKFLOW_DSL.md`](docs/WORKFLOW_DSL.md), [`docs/MISSION_API.md`](docs/MISSION_API.md), [`docs/CHECKPOINTING.md`](docs/CHECKPOINTING.md).
859
970
 
860
- // Monitor progress
971
+ #### Legacy WorkflowEngine
972
+
973
+ The original `WorkflowEngine` (`src/core/workflows/`) continues to work for existing consumers. The new orchestration layer is opt-in and runs alongside it.
974
+
975
+ ```typescript
976
+ const definitions = agent.listWorkflowDefinitions();
977
+ const instance = await agent.startWorkflow('data-pipeline-v1', input);
861
978
  const status = await agent.getWorkflow(instance.workflowId);
862
979
  ```
863
980
 
@@ -41,15 +41,16 @@ import { IAgentOS } from './interfaces/IAgentOS';
41
41
  import { AgentOSInput, UserFeedbackPayload } from './types/AgentOSInput';
42
42
  import { AgentOSResponse } from './types/AgentOSResponse';
43
43
  import { type AgentOSOrchestratorConfig, type ITaskOutcomeTelemetryStore } from './AgentOSOrchestrator';
44
- import { GMIManagerConfig } from '../cognitive_substrate/GMIManager';
45
- import { AIModelProviderManagerConfig } from '../core/llm/providers/AIModelProviderManager';
44
+ import { GMIManager, GMIManagerConfig } from '../cognitive_substrate/GMIManager';
45
+ import { AIModelProviderManager, AIModelProviderManagerConfig } from '../core/llm/providers/AIModelProviderManager';
46
46
  import { PromptEngineConfig, IPromptEngineUtilityAI } from '../core/llm/IPromptEngine';
47
+ import { IToolOrchestrator } from '../core/tools/IToolOrchestrator';
47
48
  import { ToolOrchestratorConfig } from '../config/ToolOrchestratorConfig';
48
49
  import { ToolPermissionManagerConfig } from '../core/tools/permissions/IToolPermissionManager';
49
50
  import type { IAuthService, ISubscriptionService } from '../services/user_auth/types';
50
51
  import type { IHumanInteractionManager } from '../core/hitl/IHumanInteractionManager';
51
52
  import { IUtilityAI } from '../core/ai_utilities/IUtilityAI';
52
- import { ConversationManagerConfig } from '../core/conversation/ConversationManager';
53
+ import { ConversationManager, ConversationManagerConfig } from '../core/conversation/ConversationManager';
53
54
  import { ConversationContext } from '../core/conversation/ConversationContext';
54
55
  import type { IRollingSummaryMemorySink } from '../core/conversation/IRollingSummaryMemorySink';
55
56
  import type { ILongTermMemoryRetriever } from '../core/conversation/ILongTermMemoryRetriever';
@@ -65,7 +66,7 @@ import { ILogger } from '../logging/ILogger';
65
66
  import { type AgentOSObservabilityConfig } from '../core/observability/otel';
66
67
  import type { IGuardrailService } from '../core/guardrails/IGuardrailService';
67
68
  import type { IPersonaLoader } from '../cognitive_substrate/personas/IPersonaLoader';
68
- import { type ExtensionManifest, type ExtensionOverrides } from '../extensions';
69
+ import { ExtensionManager, type ExtensionManifest, type ExtensionOverrides } from '../extensions';
69
70
  import { type TurnPlannerConfig } from '../core/orchestration/TurnPlanner';
70
71
  import type { CapabilityDescriptor, CapabilityDiscoveryConfig, CapabilityIndexSources, ICapabilityDiscoveryEngine, PresetCoOccurrence } from '../discovery/types';
71
72
  import type { WorkflowEngineConfig } from '../core/workflows/IWorkflowEngine';
@@ -350,6 +351,60 @@ export interface AgentOSConfig {
350
351
  */
351
352
  observability?: AgentOSObservabilityConfig;
352
353
  }
354
+ export interface AgentOSActiveConversationSnapshot {
355
+ sessionId: string;
356
+ userId?: string;
357
+ gmiInstanceId?: string;
358
+ activePersonaId?: string;
359
+ createdAt: number;
360
+ lastActiveAt?: number;
361
+ messageCount: number;
362
+ }
363
+ export interface AgentOSActiveGMISnapshot {
364
+ gmiId: string;
365
+ personaId: string;
366
+ state: string;
367
+ createdAt: string;
368
+ hasCognitiveMemory: boolean;
369
+ reasoningTraceEntries: number;
370
+ workingMemoryKeys: number;
371
+ cognitiveMemory?: {
372
+ totalTraces: number;
373
+ activeTraces: number;
374
+ workingMemorySlots: number;
375
+ workingMemoryCapacity: number;
376
+ prospectiveCount: number;
377
+ };
378
+ }
379
+ export interface AgentOSRuntimeSnapshot {
380
+ initialized: boolean;
381
+ services: {
382
+ conversationManager: boolean;
383
+ extensionManager: boolean;
384
+ toolOrchestrator: boolean;
385
+ modelProviderManager: boolean;
386
+ retrievalAugmentor: boolean;
387
+ workflowEngine: boolean;
388
+ };
389
+ providers: {
390
+ configured: string[];
391
+ defaultProvider?: string | null;
392
+ };
393
+ extensions: {
394
+ loadedPacks: string[];
395
+ toolCount: number;
396
+ workflowCount: number;
397
+ guardrailCount: number;
398
+ };
399
+ conversations: {
400
+ activeCount: number;
401
+ items: AgentOSActiveConversationSnapshot[];
402
+ };
403
+ gmis: {
404
+ activeCount: number;
405
+ items: AgentOSActiveGMISnapshot[];
406
+ };
407
+ }
353
408
  /**
354
409
  * @class AgentOS
355
410
  * @implements {IAgentOS}
@@ -444,6 +499,12 @@ export declare class AgentOS implements IAgentOS {
444
499
  * set to `GMIErrorCode.NOT_INITIALIZED`.
445
500
  */
446
501
  private ensureInitialized;
502
+ getRuntimeSnapshot(): Promise<AgentOSRuntimeSnapshot>;
503
+ getConversationManager(): ConversationManager;
504
+ getGMIManager(): GMIManager;
505
+ getExtensionManager(): ExtensionManager;
506
+ getToolOrchestrator(): IToolOrchestrator;
507
+ getModelProviderManager(): AIModelProviderManager;
447
508
  /**
448
509
  * Processes a single interaction turn with an AI agent. This is an asynchronous generator
449
510
  * that yields {@link AgentOSResponse} chunks as they become available.
@@ -1 +1 @@
1
- {"version":3,"file":"AgentOS.d.ts","sourceRoot":"","sources":["../../src/api/AgentOS.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,eAAe,EAA+C,MAAM,yBAAyB,CAAC;AACvG,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAc,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAA0B,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEpH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAGvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,OAAO,EAA0B,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAEvH,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,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,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAK1E,mBAAmB,CAC9B,UAAU,EAAE,MAAM,EAClB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAK5B,oBAAoB,CAC/B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKtB,wBAAwB,CACnC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,EAAE,GAC5B,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKnC;;;;;;;;;;;OAWG;IACU,qBAAqB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAU3F;;;;;;;;;;;;OAYG;IACU,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IA+BhH;;;;;;;;;;;;;;OAcG;IACU,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBvI;;;;;;;;OAQG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YA4FxB,sBAAsB;CA4DrC"}
@@ -723,6 +723,109 @@ export class AgentOS {
723
723
  throw new AgentOSServiceError('AgentOS Service is not initialized. Please call and await the initialize() method before attempting operations.', GMIErrorCode.NOT_INITIALIZED, { serviceName: 'AgentOS', operationAttemptedWhileUninitialized: true });
724
724
  }
725
725
  }
726
+ async getRuntimeSnapshot() {
727
+ this.ensureInitialized();
728
+ const activeConversations = this.conversationManager?.activeConversations instanceof Map
729
+ ? Array.from(this.conversationManager.activeConversations.values())
730
+ : [];
731
+ const conversationItems = activeConversations.map((context) => {
732
+ const history = context.getHistory();
733
+ const lastActiveAt = history.reduce((latest, message) => {
734
+ const timestamp = typeof message.timestamp === 'number' ? message.timestamp : 0;
735
+ return Math.max(latest, timestamp);
736
+ }, 0);
737
+ return {
738
+ sessionId: context.sessionId,
739
+ userId: context.getMetadata('userId'),
740
+ gmiInstanceId: context.getMetadata('gmiInstanceId'),
741
+ activePersonaId: context.getMetadata('activePersonaId'),
742
+ createdAt: context.createdAt,
743
+ lastActiveAt: lastActiveAt || context.getMetadata('_lastAccessed'),
744
+ messageCount: history.length,
745
+ };
746
+ });
747
+ const gmiItems = [];
748
+ for (const gmi of this.gmiManager.activeGMIs.values()) {
749
+ const cognitiveMemory = gmi.getCognitiveMemoryManager?.();
750
+ const workingMemorySnapshot = await gmi.getWorkingMemorySnapshot().catch(() => ({}));
751
+ const prospectiveCount = cognitiveMemory?.listProspective
752
+ ? (await cognitiveMemory.listProspective().catch(() => [])).length
753
+ : 0;
754
+ gmiItems.push({
755
+ gmiId: gmi.gmiId,
756
+ personaId: gmi.getPersona().id,
757
+ state: gmi.getCurrentState(),
758
+ createdAt: gmi.creationTimestamp.toISOString(),
759
+ hasCognitiveMemory: Boolean(cognitiveMemory),
760
+ reasoningTraceEntries: gmi.getReasoningTrace().entries.length,
761
+ workingMemoryKeys: Object.keys(workingMemorySnapshot).length,
762
+ cognitiveMemory: cognitiveMemory
763
+ ? {
764
+ totalTraces: cognitiveMemory.getStore().getTraceCount(),
765
+ activeTraces: cognitiveMemory.getStore().getActiveTraceCount(),
766
+ workingMemorySlots: cognitiveMemory.getWorkingMemory().getSlotCount(),
767
+ workingMemoryCapacity: cognitiveMemory.getWorkingMemory().getCapacity(),
768
+ prospectiveCount,
769
+ }
770
+ : undefined,
771
+ });
772
+ }
773
+ const providerIds = this.config.modelProviderManagerConfig.providers
774
+ .filter((provider) => provider.enabled !== false)
775
+ .map((provider) => provider.providerId);
776
+ const toolRegistry = this.extensionManager.getRegistry(EXTENSION_KIND_TOOL);
777
+ const workflowRegistry = this.extensionManager.getRegistry(EXTENSION_KIND_WORKFLOW);
778
+ const guardrailRegistry = this.extensionManager.getRegistry(EXTENSION_KIND_GUARDRAIL);
779
+ return {
780
+ initialized: this.initialized,
781
+ services: {
782
+ conversationManager: Boolean(this.conversationManager),
783
+ extensionManager: Boolean(this.extensionManager),
784
+ toolOrchestrator: Boolean(this.toolOrchestrator),
785
+ modelProviderManager: Boolean(this.modelProviderManager),
786
+ retrievalAugmentor: Boolean(this.retrievalAugmentor),
787
+ workflowEngine: Boolean(this.workflowEngine),
788
+ },
789
+ providers: {
790
+ configured: providerIds,
791
+ defaultProvider: this.modelProviderManager.getDefaultProvider()?.providerId ?? null,
792
+ },
793
+ extensions: {
794
+ loadedPacks: this.extensionManager.listLoadedPacks().map((pack) => pack.key),
795
+ toolCount: toolRegistry.listActive().length,
796
+ workflowCount: workflowRegistry.listActive().length,
797
+ guardrailCount: guardrailRegistry.listActive().length,
798
+ },
799
+ conversations: {
800
+ activeCount: conversationItems.length,
801
+ items: conversationItems,
802
+ },
803
+ gmis: {
804
+ activeCount: gmiItems.length,
805
+ items: gmiItems,
806
+ },
807
+ };
808
+ }
809
+ getConversationManager() {
810
+ this.ensureInitialized();
811
+ return this.conversationManager;
812
+ }
813
+ getGMIManager() {
814
+ this.ensureInitialized();
815
+ return this.gmiManager;
816
+ }
817
+ getExtensionManager() {
818
+ this.ensureInitialized();
819
+ return this.extensionManager;
820
+ }
821
+ getToolOrchestrator() {
822
+ this.ensureInitialized();
823
+ return this.toolOrchestrator;
824
+ }
825
+ getModelProviderManager() {
826
+ this.ensureInitialized();
827
+ return this.modelProviderManager;
828
+ }
726
829
  /**
727
830
  * Processes a single interaction turn with an AI agent. This is an asynchronous generator
728
831
  * that yields {@link AgentOSResponse} chunks as they become available.