dc-python-sdk 1.5.18__tar.gz → 1.5.19__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.
- {dc_python_sdk-1.5.18/src/dc_python_sdk.egg-info → dc_python_sdk-1.5.19}/PKG-INFO +1 -1
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/pyproject.toml +1 -1
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/setup.cfg +1 -1
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19/src/dc_python_sdk.egg-info}/PKG-INFO +1 -1
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/ai_http.py +27 -7
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/LICENSE +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/README.md +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/SOURCES.txt +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/dependency_links.txt +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/entry_points.txt +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/requires.txt +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/top_level.txt +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/__init__.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/app.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/cli.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/errors.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/handler.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/__init__.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/ai.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/mapping.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/models/__init__.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/models/enums.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/models/errors.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/models/log_templates.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/models/pipeline_details.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/pipeline.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/server.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/__init__.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/api.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/aws.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/environment.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/loader.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/logger.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/src/services/session.py +0 -0
- {dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_sdk/types.py +0 -0
|
@@ -716,14 +716,36 @@ def start_ai_http():
|
|
|
716
716
|
|
|
717
717
|
logger.info("code-server path: %s", shutil.which("code-server"))
|
|
718
718
|
|
|
719
|
+
# ✅ Ensure config dir exists
|
|
720
|
+
os.makedirs("/root/.config/code-server", exist_ok=True)
|
|
721
|
+
|
|
722
|
+
# ✅ Write code-server config
|
|
723
|
+
with open("/root/.config/code-server/config.yaml", "w") as f:
|
|
724
|
+
f.write(f"""bind-addr: 0.0.0.0:{code_port}
|
|
725
|
+
auth: none
|
|
726
|
+
""")
|
|
727
|
+
|
|
728
|
+
# ✅ Ensure workspace + vscode dir exists
|
|
729
|
+
os.makedirs(workspace, exist_ok=True)
|
|
730
|
+
os.makedirs(f"{workspace}/.vscode", exist_ok=True)
|
|
731
|
+
|
|
732
|
+
# ✅ Write VS Code settings
|
|
733
|
+
with open(f"{workspace}/.vscode/settings.json", "w") as f:
|
|
734
|
+
f.write("""{
|
|
735
|
+
"chat.disableAIFeatures": true,
|
|
736
|
+
"workbench.colorTheme": "Default Dark+",
|
|
737
|
+
"outline.showFiles": false,
|
|
738
|
+
"timeline.enabled": false,
|
|
739
|
+
"python.defaultInterpreterPath": "/usr/local/bin/python"
|
|
740
|
+
}""")
|
|
741
|
+
|
|
742
|
+
# ✅ Start code-server (NO extension install here)
|
|
719
743
|
code_server_proc = subprocess.Popen([
|
|
720
744
|
"code-server",
|
|
721
745
|
workspace,
|
|
722
|
-
"--
|
|
723
|
-
"--auth", "none"
|
|
746
|
+
"--config", "/root/.config/code-server/config.yaml"
|
|
724
747
|
])
|
|
725
748
|
|
|
726
|
-
# Optional: wait briefly to confirm startup
|
|
727
749
|
time.sleep(3)
|
|
728
750
|
|
|
729
751
|
if code_server_proc.poll() is not None:
|
|
@@ -748,12 +770,10 @@ def start_ai_http():
|
|
|
748
770
|
|
|
749
771
|
client = OpenAI(api_key=api_key)
|
|
750
772
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
logger.info("Starting AI HTTP controller on 0.0.0.0:%s", port)
|
|
773
|
+
logger.info("Starting AI HTTP controller on 0.0.0.0:%s", ai_port)
|
|
754
774
|
|
|
755
775
|
import uvicorn
|
|
756
|
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
776
|
+
uvicorn.run(app, host="0.0.0.0", port=ai_port)
|
|
757
777
|
|
|
758
778
|
@app.get("/session-info")
|
|
759
779
|
def session_info():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dc_python_sdk-1.5.18 → dc_python_sdk-1.5.19}/src/dc_python_sdk.egg-info/dependency_links.txt
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
|
|
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
|