@@ -17,6 +17,80 @@ Current runtime memory note:
1717
1818## System Architecture Overview
1919
20+ ### Source Directory Layout
21+
22+ After the ` core/ ` flattening refactor, the ` src/ ` tree is organized into domain-specific
23+ top-level directories. Only the foundational infrastructure modules remain under ` core/ ` .
24+
25+ ```
26+ src/
27+ ├── core/ # Core infrastructure (7 dirs)
28+ │ ├── llm/ # LLM providers, routing, streaming
29+ │ ├── tools/ # ITool, ToolOrchestrator, permissions
30+ │ ├── conversation/ # ConversationManager
31+ │ ├── orchestration/ # IAgentOrchestrator, telemetry
32+ │ ├── streaming/ # StreamingManager
33+ │ ├── storage/ # IStorageAdapter, SqlStorageAdapter
34+ │ └── utils/ # Shared helpers, usage tracking
35+ │
36+ ├── media/ # Media generation & processing
37+ │ ├── audio/ # TTS, music, SFX generation
38+ │ ├── images/ # Image generation (DALL-E, Stability, etc.)
39+ │ ├── video/ # Video generation & analysis
40+ │ └── vision/ # OCR, document AI, CLIP
41+ │
42+ ├── provenance/ # Content provenance & blockchain anchoring
43+ │
44+ ├── nlp/ # NLP: tokenizers, stemmers, sentiment, i18n
45+ │ ├── language/ # Language detection & translation
46+ │ └── ai_utilities/ # AI utility helpers
47+ │
48+ ├── safety/ # Guardrails & runtime safety
49+ │ ├── guardrails/ # IGuardrailService, ParallelGuardrailDispatcher
50+ │ └── runtime/ # Runtime safety checks
51+ │
52+ ├── agents/ # Agent definitions & multi-agent collectives
53+ │ ├── definitions/ # Agent type definitions
54+ │ └── agency/ # Multi-agent coordination
55+ │
56+ ├── evaluation/ # Eval framework & observability
57+ │ └── observability/ # OpenTelemetry tracing & metrics
58+ │
59+ ├── knowledge/ # Knowledge graph (interface + implementations)
60+ │
61+ ├── planning/ # Planning engine, HITL, workflows
62+ │ ├── planner/ # PlanningEngine, ReAct loops
63+ │ ├── hitl/ # Human-in-the-loop approval
64+ │ └── workflows/ # Workflow definitions & execution
65+ │
66+ ├── sandbox/ # Sandboxed execution & subprocess
67+ │ ├── executor/ # Sandboxed code execution
68+ │ └── subprocess/ # CLISubprocessBridge, CLIRegistry
69+ │
70+ ├── structured/ # Structured output & prompt routing
71+ │ ├── output/ # StructuredOutputManager, JSON schema
72+ │ └── prompting/ # Prompt routing & construction
73+ │
74+ ├── marketplace/ # Agent marketplace & workspace
75+ │ ├── store/ # Marketplace listings & search
76+ │ └── workspace/ # Workspace management
77+ │
78+ ├── rag/ # Retrieval-augmented generation
79+ │ └── vector-search/ # HNSW, Pinecone, Qdrant, Postgres
80+ │
81+ ├── api/ # Public API surface
82+ ├── memory/ # Cognitive memory system
83+ ├── channels/ # Messaging channel adapters (37 platforms)
84+ ├── cognitive_substrate/ # GMI (Generalized Mind Instance)
85+ ├── discovery/ # Capability discovery engine
86+ ├── emergent/ # Emergent capabilities
87+ ├── extensions/ # Extension system
88+ ├── orchestration/ # Graph-based workflow DAG engine
89+ ├── query-router/ # Query classification & routing
90+ ├── social-posting/ # Social media post management
91+ └── ...
92+ ```
93+
2094### The Complete AgentOS Ecosystem
2195
2296``` mermaid
@@ -3988,7 +4062,7 @@ interface PlanStep {
39884062### Usage Example
39894063
39904064``` typescript
3991- import { PlanningEngine } from ' @framers/agentos/core/ planning' ;
4065+ import { PlanningEngine } from ' @framers/agentos/planning/planner ' ;
39924066
39934067const planningEngine = new PlanningEngine (
39944068 promptEngine ,
@@ -4137,7 +4211,7 @@ interface EscalationContext {
41374211### Usage Example
41384212
41394213``` typescript
4140- import { HumanInteractionManager } from ' @framers/agentos/core /hitl' ;
4214+ import { HumanInteractionManager } from ' @framers/agentos/planning /hitl' ;
41414215
41424216const hitlManager = new HumanInteractionManager ({
41434217 defaultTimeoutMs: 300000 , // 5 minutes
0 commit comments