m8flow 1.0.1 → 1.1.0
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.
- package/bundled/backend/Dockerfile +41 -0
- package/bundled/backend/add_nodes.py +416 -0
- package/bundled/backend/api/routes/appstate.py +102 -0
- package/bundled/backend/api/routes/flows.py +64 -5
- package/bundled/backend/api/routes/nodes.py +25 -1
- package/bundled/backend/core/code_validator.py +2 -0
- package/bundled/backend/core/executor.py +19 -3
- package/bundled/backend/main.py +16 -4
- package/bundled/backend/requirements.txt +27 -6
- package/bundled/backend/services/llm_service.py +957 -98
- package/bundled/backend/services/self_healer.py +1 -1
- package/bundled/backend/storage/__init__.py +0 -0
- package/bundled/backend/storage/memory.py +16 -0
- package/bundled/backend/temp.json +0 -0
- package/bundled/backend/templates.json +0 -0
- package/bundled/backend/templates.py +2907 -745
- package/bundled/backend/warmup.py +65 -0
- package/bundled/frontend-dist/assets/index-CKUZ27n8.css +1 -0
- package/bundled/frontend-dist/assets/index-DNaB6zf0.js +46 -0
- package/bundled/frontend-dist/index.html +2 -2
- package/lib/backend.js +155 -35
- package/lib/run.js +18 -7
- package/lib/setup.js +119 -59
- package/package.json +3 -2
- package/scripts/build.js +1 -2
- package/scripts/check-docker.js +35 -0
- package/bundled/frontend-dist/assets/index-Dm2J6DQp.js +0 -41
- package/bundled/frontend-dist/assets/index-xKOV3MGm.css +0 -1
|
@@ -19,7 +19,7 @@ from services.pipeline_executor import _serialize
|
|
|
19
19
|
|
|
20
20
|
logger = logging.getLogger(__name__)
|
|
21
21
|
|
|
22
|
-
MAX_HEAL_ATTEMPTS =
|
|
22
|
+
MAX_HEAL_ATTEMPTS = 1 # One attempt keeps healing fast; user can click again if needed
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
# ── Public entry point ─────────────────────────────────────────────────────────
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from typing import Dict, Optional
|
|
2
|
+
from domain.models import FlowSchema
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class InMemoryFlowStore:
|
|
6
|
+
def __init__(self) -> None:
|
|
7
|
+
self._store: Dict[str, FlowSchema] = {}
|
|
8
|
+
|
|
9
|
+
def save(self, flow_id: str, flow: FlowSchema) -> None:
|
|
10
|
+
self._store[flow_id] = flow
|
|
11
|
+
|
|
12
|
+
def get(self, flow_id: str) -> Optional[FlowSchema]:
|
|
13
|
+
return self._store.get(flow_id)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
flow_store = InMemoryFlowStore()
|
|
File without changes
|
|
File without changes
|