2.5 KiB
kind, description
| kind | description |
|---|---|
| upgrade-guide | Python PTC runtime packages, external providers, SDK renderers and Python-specific binding APIs are removed; migrate to TypeScript PTC. |
Python PTC removal
English | 中文
Change
@deepseek-ai/dsh-experimental-ptc-runtime-python is no longer published or included in this repository. Custom compositions that select it must migrate to @deepseek-ai/dsh-ptc-runtime-node. Shipped profiles already select the Node provider. dsh-tool-executor-ptc also removes support for external PtcRuntime providers reporting language: 'python': prompt assembly or execution through the selected executor, or creation of a /run-code tool with a non-TypeScript provider, fails with ToolContextUnavailableError / TOOL_CONTEXT_UNAVAILABLE. The package no longer exports jsonSchemaToPy or renderToolsSdkPy.
Migration
- In the
cordis.ymlor profile patch that selects the Python provider, replace that row'snamewith@deepseek-ai/dsh-ptc-runtime-node. Remove its Python runtimeconfig; configure Node limits separately when needed. Node also requiresfsandsubprocessalongsidesandboxandsandboxPolicy. Reuse the existing providers; for a local composition missing them, mount@deepseek-ai/dsh-fs-localand@deepseek-ai/dsh-subprocess-localin the same execution world. - Replace any external Python PTC provider and remove imports of
jsonSchemaToPyandrenderToolsSdkPy. Use the TypeScriptrenderToolsSdkAPI where SDK rendering is needed.dsh-ptc-runtimereplacesPORTABLE_RESERVED_WORDSwithRESERVED_BINDING_WORDSand removesDUNDER_MEMBER; remove Python-specific binding-name checks. - Rewrite Python
run_codeprograms as TypeScript. For fresh execution per call, setconfig.executionMode: per-call; see the Node runtime configuration. - Re-enable
workflow-ptc,tool-workflow, and any previously enabledtool-ralphrows that were disabled solely for the Python provider, if those workflows are still wanted. - Run the affected profile with
--dump-configand confirm its PTC runtime row selects@deepseek-ai/dsh-ptc-runtime-nodewith no Python provider row remaining. Run a PTC task and confirm that its TypeScript program completes.
The Harness Python client in python/sdk, its packaged runtime wheel, and Python environments used by other tools are unaffected. Existing Session logs retain their recorded output.