model-compose 0.0.3__tar.gz → 0.0.4__tar.gz
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.
- {model_compose-0.0.3/src/model_compose.egg-info → model_compose-0.0.4}/PKG-INFO +1 -1
- {model_compose-0.0.3 → model_compose-0.0.4}/pyproject.toml +1 -1
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/engine/http_server.py +6 -4
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/http_server.py +1 -0
- {model_compose-0.0.3 → model_compose-0.0.4/src/model_compose.egg-info}/PKG-INFO +1 -1
- {model_compose-0.0.3 → model_compose-0.0.4}/LICENSE +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/README.md +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/setup.cfg +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/cli/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/cli/compose.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/component.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/engine/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/engine/base.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/engine/context.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/engine/http_client.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/component/engine/http_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/compose/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/compose/compose.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/compose/manager.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/controller.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/engine/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/engine/base.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/engine/mcp_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/runtime/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/runtime/env.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/utils/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/utils/expiring.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/utils/template.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/utils/workqueue.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/workflow/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/workflow/context.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/workflow/job.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/workflow/workflow.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/loader.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/action.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/common.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/http_client.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/http_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/mcp_client.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/mcp_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/component.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/common.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/http_client.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/http_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/mcp_client.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/mcp_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/types.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/compose.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/controller.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/common.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/mcp_server.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/types.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/impl/__init__.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/impl/common.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/impl/docker.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/impl/types.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/runtime/runtime.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/workflow.py +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/model_compose.egg-info/SOURCES.txt +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/model_compose.egg-info/dependency_links.txt +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/model_compose.egg-info/entry_points.txt +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/model_compose.egg-info/requires.txt +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/src/model_compose.egg-info/top_level.txt +0 -0
- {model_compose-0.0.3 → model_compose-0.0.4}/tests/test_cli.py +0 -0
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/core/controller/engine/http_server.py
RENAMED
|
@@ -7,7 +7,7 @@ from mindor.dsl.schema.component import ComponentConfig
|
|
|
7
7
|
from mindor.dsl.schema.workflow import WorkflowConfig
|
|
8
8
|
from .base import BaseController, ControllerType, ControllerEngineMap, TaskState
|
|
9
9
|
|
|
10
|
-
from fastapi import FastAPI, Body, HTTPException
|
|
10
|
+
from fastapi import FastAPI, APIRouter, Body, HTTPException
|
|
11
11
|
import uvicorn
|
|
12
12
|
|
|
13
13
|
class WorkflowTaskRequestBody(BaseModel):
|
|
@@ -36,11 +36,13 @@ class HttpServerController(BaseController):
|
|
|
36
36
|
|
|
37
37
|
self.server: Optional[uvicorn.Server] = None
|
|
38
38
|
self.app: FastAPI = FastAPI()
|
|
39
|
-
|
|
39
|
+
self.router: APIRouter = APIRouter()
|
|
40
|
+
|
|
40
41
|
self._configure_routes()
|
|
42
|
+
self.app.include_router(self.router, prefix=self.config.base_path)
|
|
41
43
|
|
|
42
44
|
def _configure_routes(self):
|
|
43
|
-
@self.
|
|
45
|
+
@self.router.post("/workflows", response_model=TaskResult, response_model_exclude_none=True)
|
|
44
46
|
async def run_workflow(
|
|
45
47
|
body: WorkflowTaskRequestBody = Body(...)
|
|
46
48
|
):
|
|
@@ -48,7 +50,7 @@ class HttpServerController(BaseController):
|
|
|
48
50
|
|
|
49
51
|
return TaskResult.from_instance(state)
|
|
50
52
|
|
|
51
|
-
@self.
|
|
53
|
+
@self.router.get("/tasks/{task_id}", response_model=TaskResult, response_model_exclude_none=True)
|
|
52
54
|
async def get_task_state(
|
|
53
55
|
task_id: str
|
|
54
56
|
):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/http_client.py
RENAMED
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/action/impl/http_server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/http_client.py
RENAMED
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/http_server.py
RENAMED
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/mcp_client.py
RENAMED
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/component/impl/mcp_server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{model_compose-0.0.3 → model_compose-0.0.4}/src/mindor/dsl/schema/controller/impl/mcp_server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|