Skip to content

Commit c9c0aa9

Browse files
committed
update
configuration files
1 parent 1e8f996 commit c9c0aa9

24 files changed

+379
-32
lines changed
7 Bytes
Binary file not shown.
7 Bytes
Binary file not shown.

advanced_cnc_copilot/backend/cms/vision_cortex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import random
1010
import time
1111
from dataclasses import dataclass
12-
from typing import Dict, List, Optional
12+
from typing import Dict, List, Optional, Any
1313

1414
from backend.cms.message_bus import global_bus, Message
1515
from backend.core.cognitive_repair_agent import repair_agent

advanced_cnc_copilot/backend/core/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import random
99
import os
1010
import math
11-
from typing import Dict, Any, Optional
11+
from typing import Dict, Any, Optional, Tuple
1212

1313
# Logic Sources
1414
from cnc_optimization_engine import OptimizationCopilot, CostFactors, ProjectParameters, ProductionMode

advanced_cnc_copilot/backend/main.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
from fastapi.staticfiles import StaticFiles
1313
import os
14+
import sys
15+
16+
# Ensure 'backend' is importable
17+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
1418

1519
# Import Core Modules
1620
from backend.core.security import Token, User, get_current_active_user, create_access_token, verify_password, get_password_hash
@@ -870,13 +874,13 @@ async def create_synaptic_protocol(payload: dict, current_user: User = Depends(g
870874
@app.get("/api/platform/entities")
871875
async def list_platform_entities(current_user: User = Depends(get_current_active_user)):
872876
"""Lists all registered platform entities."""
873-
from backend.platform import platform_registry
877+
from backend.system_platform import platform_registry
874878
return {"status": "SUCCESS", "entities": [e.to_dict() for e in platform_registry.list_all()]}
875879

876880
@app.post("/api/platform/entity")
877881
async def create_platform_entity(payload: dict, current_user: User = Depends(get_current_active_user)):
878882
"""Creates and registers a new platform entity."""
879-
from backend.platform import PlatformEntity, platform_registry
883+
from backend.system_platform import PlatformEntity, platform_registry
880884
entity = PlatformEntity(
881885
entity_type=payload.get("entity_type", "GENERIC"),
882886
name=payload.get("name", "Untitled Entity"),
@@ -888,7 +892,7 @@ async def create_platform_entity(payload: dict, current_user: User = Depends(get
888892
@app.post("/api/platform/run-pipeline")
889893
async def run_generation_pipeline(payload: dict, current_user: User = Depends(get_current_active_user)):
890894
"""Runs the default generation pipeline on an entity."""
891-
from backend.platform import platform_registry, default_pipeline, EntityStatus
895+
from backend.system_platform import platform_registry, default_pipeline, EntityStatus
892896
entity_id = payload.get("entity_id")
893897
initial_data = payload.get("data", "")
894898

advanced_cnc_copilot/backend/platform/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
Platform Module Initializer
3+
"""
4+
from backend.system_platform.entity import PlatformEntity, EntityStatus
5+
from backend.system_platform.pipeline import GenerationPipeline, PipelineStage, default_pipeline
6+
from backend.system_platform.registry import platform_registry
File renamed without changes.

advanced_cnc_copilot/backend/platform/pipeline.py renamed to advanced_cnc_copilot/backend/system_platform/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
2. Chain transformations: Input -> Transform -> Emit -> Seal.
66
"""
77
from typing import List, Dict, Any, Callable
8-
from backend.platform.entity import PlatformEntity, EntityStatus
8+
from backend.system_platform.entity import PlatformEntity, EntityStatus
99
import uuid
1010

1111
class PipelineStage:

advanced_cnc_copilot/backend/platform/registry.py renamed to advanced_cnc_copilot/backend/system_platform/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
2. Provides CRUD operations for platform management.
66
"""
77
from typing import Dict, List, Optional
8-
from backend.platform.entity import PlatformEntity
8+
from backend.system_platform.entity import PlatformEntity
99

1010
class PlatformRegistry:
1111
def __init__(self):

0 commit comments

Comments
 (0)