@tedbrain/vlink 0.0.0-dpv2.pdkadapt.executor-linux-x64.0.1.149-dpv2.1.r2 → 0.0.0-dpv2.pdkadapt.plugin.0.1.2.r2

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.
Files changed (1108) hide show
  1. package/README.md +32 -0
  2. package/entry.py +16 -0
  3. package/package.json +1 -1
  4. package/plugin_cli.py +14 -0
  5. package/runtime/cli.ps1 +4 -0
  6. package/runtime/cli.sh +5 -0
  7. package/tedbrain_plugin_runtime/__init__.py +2 -0
  8. package/tedbrain_plugin_runtime/admission.py +39 -0
  9. package/tedbrain_plugin_runtime/bootstrap.py +108 -0
  10. package/tedbrain_plugin_runtime/cli.py +211 -0
  11. package/tedbrain_plugin_runtime/engine.py +102 -0
  12. package/tedbrain_plugin_runtime/executor.py +108 -0
  13. package/tedbrain_plugin_runtime/installer.py +400 -0
  14. package/tedbrain_plugin_runtime/jobs.py +216 -0
  15. package/tedbrain_plugin_runtime/launcher.py +120 -0
  16. package/tedbrain_plugin_runtime/publication.py +53 -0
  17. package/tedbrain_plugin_runtime/request_contract.py +226 -0
  18. package/tedbrain_plugin_runtime/service.py +284 -0
  19. package/tedbrain_plugin_runtime/ssh_workstation.py +40 -0
  20. package/tedbrain_plugin_runtime/worker.py +104 -0
  21. package/tedbrain_plugin_runtime/workstations.py +170 -0
  22. package/bin/vlink-executor +0 -0
  23. package/runtime/PyYAML-6.0.dist-info/LICENSE +0 -20
  24. package/runtime/PyYAML-6.0.dist-info/METADATA +0 -46
  25. package/runtime/PyYAML-6.0.dist-info/RECORD +0 -24
  26. package/runtime/PyYAML-6.0.dist-info/WHEEL +0 -8
  27. package/runtime/PyYAML-6.0.dist-info/top_level.txt +0 -2
  28. package/runtime/_yaml/__init__.py +0 -33
  29. package/runtime/annotated_types/__init__.py +0 -432
  30. package/runtime/annotated_types/py.typed +0 -0
  31. package/runtime/annotated_types-0.7.0.dist-info/METADATA +0 -295
  32. package/runtime/annotated_types-0.7.0.dist-info/RECORD +0 -7
  33. package/runtime/annotated_types-0.7.0.dist-info/WHEEL +0 -4
  34. package/runtime/annotated_types-0.7.0.dist-info/licenses/LICENSE +0 -21
  35. package/runtime/env/bashrc +0 -11
  36. package/runtime/gdstk/__init__.py +0 -2
  37. package/runtime/gdstk/_gdstk.cpython-39-x86_64-linux-gnu.so +0 -0
  38. package/runtime/gdstk/_gdstk.pyi +0 -988
  39. package/runtime/gdstk/py.typed +0 -0
  40. package/runtime/gdstk-0.9.53.dist-info/METADATA +0 -178
  41. package/runtime/gdstk-0.9.53.dist-info/RECORD +0 -9
  42. package/runtime/gdstk-0.9.53.dist-info/WHEEL +0 -6
  43. package/runtime/gdstk-0.9.53.dist-info/licenses/LICENSE +0 -23
  44. package/runtime/gdstk.libs/libqhull_r-e028a698.so.8.0.2 +0 -0
  45. package/runtime/numpy/__config__.py +0 -162
  46. package/runtime/numpy/__init__.cython-30.pxd +0 -1050
  47. package/runtime/numpy/__init__.pxd +0 -1015
  48. package/runtime/numpy/__init__.py +0 -461
  49. package/runtime/numpy/__init__.pyi +0 -4422
  50. package/runtime/numpy/_core/__init__.py +0 -4
  51. package/runtime/numpy/_core/__init__.pyi +0 -0
  52. package/runtime/numpy/_core/_dtype.py +0 -6
  53. package/runtime/numpy/_core/_dtype_ctypes.py +0 -6
  54. package/runtime/numpy/_core/_internal.py +0 -6
  55. package/runtime/numpy/_core/_multiarray_umath.py +0 -6
  56. package/runtime/numpy/_core/multiarray.py +0 -6
  57. package/runtime/numpy/_core/umath.py +0 -6
  58. package/runtime/numpy/_distributor_init.py +0 -15
  59. package/runtime/numpy/_globals.py +0 -95
  60. package/runtime/numpy/_pyinstaller/__init__.py +0 -0
  61. package/runtime/numpy/_pyinstaller/hook-numpy.py +0 -37
  62. package/runtime/numpy/_pyinstaller/pyinstaller-smoke.py +0 -32
  63. package/runtime/numpy/_pytesttester.py +0 -207
  64. package/runtime/numpy/_pytesttester.pyi +0 -18
  65. package/runtime/numpy/_typing/__init__.py +0 -221
  66. package/runtime/numpy/_typing/_add_docstring.py +0 -152
  67. package/runtime/numpy/_typing/_array_like.py +0 -167
  68. package/runtime/numpy/_typing/_callable.pyi +0 -338
  69. package/runtime/numpy/_typing/_char_codes.py +0 -111
  70. package/runtime/numpy/_typing/_dtype_like.py +0 -246
  71. package/runtime/numpy/_typing/_extended_precision.py +0 -27
  72. package/runtime/numpy/_typing/_nbit.py +0 -16
  73. package/runtime/numpy/_typing/_nested_sequence.py +0 -86
  74. package/runtime/numpy/_typing/_scalars.py +0 -30
  75. package/runtime/numpy/_typing/_shape.py +0 -7
  76. package/runtime/numpy/_typing/_ufunc.pyi +0 -445
  77. package/runtime/numpy/_typing/setup.py +0 -10
  78. package/runtime/numpy/_utils/__init__.py +0 -29
  79. package/runtime/numpy/_utils/_convertions.py +0 -18
  80. package/runtime/numpy/_utils/_inspect.py +0 -191
  81. package/runtime/numpy/_utils/_pep440.py +0 -487
  82. package/runtime/numpy/array_api/__init__.py +0 -387
  83. package/runtime/numpy/array_api/_array_object.py +0 -1133
  84. package/runtime/numpy/array_api/_constants.py +0 -7
  85. package/runtime/numpy/array_api/_creation_functions.py +0 -351
  86. package/runtime/numpy/array_api/_data_type_functions.py +0 -197
  87. package/runtime/numpy/array_api/_dtypes.py +0 -180
  88. package/runtime/numpy/array_api/_elementwise_functions.py +0 -765
  89. package/runtime/numpy/array_api/_indexing_functions.py +0 -20
  90. package/runtime/numpy/array_api/_manipulation_functions.py +0 -112
  91. package/runtime/numpy/array_api/_searching_functions.py +0 -51
  92. package/runtime/numpy/array_api/_set_functions.py +0 -106
  93. package/runtime/numpy/array_api/_sorting_functions.py +0 -54
  94. package/runtime/numpy/array_api/_statistical_functions.py +0 -122
  95. package/runtime/numpy/array_api/_typing.py +0 -76
  96. package/runtime/numpy/array_api/_utility_functions.py +0 -37
  97. package/runtime/numpy/array_api/linalg.py +0 -466
  98. package/runtime/numpy/array_api/setup.py +0 -12
  99. package/runtime/numpy/compat/__init__.py +0 -19
  100. package/runtime/numpy/compat/py3k.py +0 -145
  101. package/runtime/numpy/compat/setup.py +0 -10
  102. package/runtime/numpy/conftest.py +0 -138
  103. package/runtime/numpy/core/__init__.py +0 -180
  104. package/runtime/numpy/core/__init__.pyi +0 -2
  105. package/runtime/numpy/core/_add_newdocs.py +0 -7080
  106. package/runtime/numpy/core/_add_newdocs_scalars.py +0 -372
  107. package/runtime/numpy/core/_asarray.py +0 -134
  108. package/runtime/numpy/core/_asarray.pyi +0 -42
  109. package/runtime/numpy/core/_dtype.py +0 -369
  110. package/runtime/numpy/core/_dtype_ctypes.py +0 -117
  111. package/runtime/numpy/core/_exceptions.py +0 -172
  112. package/runtime/numpy/core/_internal.py +0 -935
  113. package/runtime/numpy/core/_internal.pyi +0 -30
  114. package/runtime/numpy/core/_machar.py +0 -356
  115. package/runtime/numpy/core/_methods.py +0 -234
  116. package/runtime/numpy/core/_multiarray_tests.cpython-39-x86_64-linux-gnu.so +0 -0
  117. package/runtime/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so +0 -0
  118. package/runtime/numpy/core/_operand_flag_tests.cpython-39-x86_64-linux-gnu.so +0 -0
  119. package/runtime/numpy/core/_rational_tests.cpython-39-x86_64-linux-gnu.so +0 -0
  120. package/runtime/numpy/core/_simd.cpython-39-x86_64-linux-gnu.so +0 -0
  121. package/runtime/numpy/core/_string_helpers.py +0 -100
  122. package/runtime/numpy/core/_struct_ufunc_tests.cpython-39-x86_64-linux-gnu.so +0 -0
  123. package/runtime/numpy/core/_type_aliases.py +0 -245
  124. package/runtime/numpy/core/_type_aliases.pyi +0 -13
  125. package/runtime/numpy/core/_ufunc_config.py +0 -466
  126. package/runtime/numpy/core/_ufunc_config.pyi +0 -37
  127. package/runtime/numpy/core/_umath_tests.cpython-39-x86_64-linux-gnu.so +0 -0
  128. package/runtime/numpy/core/arrayprint.py +0 -1725
  129. package/runtime/numpy/core/arrayprint.pyi +0 -142
  130. package/runtime/numpy/core/cversions.py +0 -13
  131. package/runtime/numpy/core/defchararray.py +0 -2914
  132. package/runtime/numpy/core/defchararray.pyi +0 -421
  133. package/runtime/numpy/core/einsumfunc.py +0 -1443
  134. package/runtime/numpy/core/einsumfunc.pyi +0 -187
  135. package/runtime/numpy/core/fromnumeric.py +0 -3920
  136. package/runtime/numpy/core/fromnumeric.pyi +0 -1060
  137. package/runtime/numpy/core/function_base.py +0 -551
  138. package/runtime/numpy/core/function_base.pyi +0 -187
  139. package/runtime/numpy/core/getlimits.py +0 -735
  140. package/runtime/numpy/core/getlimits.pyi +0 -6
  141. package/runtime/numpy/core/include/numpy/__multiarray_api.c +0 -314
  142. package/runtime/numpy/core/include/numpy/__multiarray_api.h +0 -1566
  143. package/runtime/numpy/core/include/numpy/__ufunc_api.c +0 -50
  144. package/runtime/numpy/core/include/numpy/__ufunc_api.h +0 -314
  145. package/runtime/numpy/core/include/numpy/_dtype_api.h +0 -408
  146. package/runtime/numpy/core/include/numpy/_neighborhood_iterator_imp.h +0 -90
  147. package/runtime/numpy/core/include/numpy/_numpyconfig.h +0 -32
  148. package/runtime/numpy/core/include/numpy/arrayobject.h +0 -12
  149. package/runtime/numpy/core/include/numpy/arrayscalars.h +0 -186
  150. package/runtime/numpy/core/include/numpy/experimental_dtype_api.h +0 -365
  151. package/runtime/numpy/core/include/numpy/halffloat.h +0 -70
  152. package/runtime/numpy/core/include/numpy/ndarrayobject.h +0 -251
  153. package/runtime/numpy/core/include/numpy/ndarraytypes.h +0 -1945
  154. package/runtime/numpy/core/include/numpy/noprefix.h +0 -211
  155. package/runtime/numpy/core/include/numpy/npy_1_7_deprecated_api.h +0 -124
  156. package/runtime/numpy/core/include/numpy/npy_3kcompat.h +0 -595
  157. package/runtime/numpy/core/include/numpy/npy_common.h +0 -1086
  158. package/runtime/numpy/core/include/numpy/npy_cpu.h +0 -129
  159. package/runtime/numpy/core/include/numpy/npy_endian.h +0 -77
  160. package/runtime/numpy/core/include/numpy/npy_interrupt.h +0 -56
  161. package/runtime/numpy/core/include/numpy/npy_math.h +0 -563
  162. package/runtime/numpy/core/include/numpy/npy_no_deprecated_api.h +0 -20
  163. package/runtime/numpy/core/include/numpy/npy_os.h +0 -42
  164. package/runtime/numpy/core/include/numpy/numpyconfig.h +0 -138
  165. package/runtime/numpy/core/include/numpy/old_defines.h +0 -187
  166. package/runtime/numpy/core/include/numpy/random/LICENSE.txt +0 -21
  167. package/runtime/numpy/core/include/numpy/random/bitgen.h +0 -20
  168. package/runtime/numpy/core/include/numpy/random/distributions.h +0 -209
  169. package/runtime/numpy/core/include/numpy/random/libdivide.h +0 -2079
  170. package/runtime/numpy/core/include/numpy/ufuncobject.h +0 -359
  171. package/runtime/numpy/core/include/numpy/utils.h +0 -37
  172. package/runtime/numpy/core/lib/libnpymath.a +0 -0
  173. package/runtime/numpy/core/lib/npy-pkg-config/mlib.ini +0 -12
  174. package/runtime/numpy/core/lib/npy-pkg-config/npymath.ini +0 -20
  175. package/runtime/numpy/core/memmap.py +0 -338
  176. package/runtime/numpy/core/memmap.pyi +0 -3
  177. package/runtime/numpy/core/multiarray.py +0 -1715
  178. package/runtime/numpy/core/multiarray.pyi +0 -1022
  179. package/runtime/numpy/core/numeric.py +0 -2530
  180. package/runtime/numpy/core/numeric.pyi +0 -660
  181. package/runtime/numpy/core/numerictypes.py +0 -689
  182. package/runtime/numpy/core/numerictypes.pyi +0 -156
  183. package/runtime/numpy/core/overrides.py +0 -181
  184. package/runtime/numpy/core/records.py +0 -1099
  185. package/runtime/numpy/core/records.pyi +0 -234
  186. package/runtime/numpy/core/shape_base.py +0 -923
  187. package/runtime/numpy/core/shape_base.pyi +0 -123
  188. package/runtime/numpy/core/umath.py +0 -36
  189. package/runtime/numpy/core/umath_tests.py +0 -13
  190. package/runtime/numpy/ctypeslib.py +0 -545
  191. package/runtime/numpy/ctypeslib.pyi +0 -251
  192. package/runtime/numpy/distutils/__init__.py +0 -64
  193. package/runtime/numpy/distutils/__init__.pyi +0 -4
  194. package/runtime/numpy/distutils/_shell_utils.py +0 -91
  195. package/runtime/numpy/distutils/armccompiler.py +0 -26
  196. package/runtime/numpy/distutils/ccompiler.py +0 -826
  197. package/runtime/numpy/distutils/ccompiler_opt.py +0 -2668
  198. package/runtime/numpy/distutils/checks/cpu_asimd.c +0 -27
  199. package/runtime/numpy/distutils/checks/cpu_asimddp.c +0 -16
  200. package/runtime/numpy/distutils/checks/cpu_asimdfhm.c +0 -19
  201. package/runtime/numpy/distutils/checks/cpu_asimdhp.c +0 -15
  202. package/runtime/numpy/distutils/checks/cpu_avx.c +0 -20
  203. package/runtime/numpy/distutils/checks/cpu_avx2.c +0 -20
  204. package/runtime/numpy/distutils/checks/cpu_avx512_clx.c +0 -22
  205. package/runtime/numpy/distutils/checks/cpu_avx512_cnl.c +0 -24
  206. package/runtime/numpy/distutils/checks/cpu_avx512_icl.c +0 -26
  207. package/runtime/numpy/distutils/checks/cpu_avx512_knl.c +0 -25
  208. package/runtime/numpy/distutils/checks/cpu_avx512_knm.c +0 -30
  209. package/runtime/numpy/distutils/checks/cpu_avx512_skx.c +0 -26
  210. package/runtime/numpy/distutils/checks/cpu_avx512_spr.c +0 -26
  211. package/runtime/numpy/distutils/checks/cpu_avx512cd.c +0 -20
  212. package/runtime/numpy/distutils/checks/cpu_avx512f.c +0 -20
  213. package/runtime/numpy/distutils/checks/cpu_f16c.c +0 -22
  214. package/runtime/numpy/distutils/checks/cpu_fma3.c +0 -22
  215. package/runtime/numpy/distutils/checks/cpu_fma4.c +0 -13
  216. package/runtime/numpy/distutils/checks/cpu_neon.c +0 -19
  217. package/runtime/numpy/distutils/checks/cpu_neon_fp16.c +0 -11
  218. package/runtime/numpy/distutils/checks/cpu_neon_vfpv4.c +0 -21
  219. package/runtime/numpy/distutils/checks/cpu_popcnt.c +0 -32
  220. package/runtime/numpy/distutils/checks/cpu_sse.c +0 -20
  221. package/runtime/numpy/distutils/checks/cpu_sse2.c +0 -20
  222. package/runtime/numpy/distutils/checks/cpu_sse3.c +0 -20
  223. package/runtime/numpy/distutils/checks/cpu_sse41.c +0 -20
  224. package/runtime/numpy/distutils/checks/cpu_sse42.c +0 -20
  225. package/runtime/numpy/distutils/checks/cpu_ssse3.c +0 -20
  226. package/runtime/numpy/distutils/checks/cpu_vsx.c +0 -21
  227. package/runtime/numpy/distutils/checks/cpu_vsx2.c +0 -13
  228. package/runtime/numpy/distutils/checks/cpu_vsx3.c +0 -13
  229. package/runtime/numpy/distutils/checks/cpu_vsx4.c +0 -14
  230. package/runtime/numpy/distutils/checks/cpu_vx.c +0 -16
  231. package/runtime/numpy/distutils/checks/cpu_vxe.c +0 -25
  232. package/runtime/numpy/distutils/checks/cpu_vxe2.c +0 -21
  233. package/runtime/numpy/distutils/checks/cpu_xop.c +0 -12
  234. package/runtime/numpy/distutils/checks/extra_avx512bw_mask.c +0 -18
  235. package/runtime/numpy/distutils/checks/extra_avx512dq_mask.c +0 -16
  236. package/runtime/numpy/distutils/checks/extra_avx512f_reduce.c +0 -41
  237. package/runtime/numpy/distutils/checks/extra_vsx3_half_double.c +0 -12
  238. package/runtime/numpy/distutils/checks/extra_vsx4_mma.c +0 -21
  239. package/runtime/numpy/distutils/checks/extra_vsx_asm.c +0 -36
  240. package/runtime/numpy/distutils/command/__init__.py +0 -41
  241. package/runtime/numpy/distutils/command/autodist.py +0 -148
  242. package/runtime/numpy/distutils/command/bdist_rpm.py +0 -22
  243. package/runtime/numpy/distutils/command/build.py +0 -62
  244. package/runtime/numpy/distutils/command/build_clib.py +0 -469
  245. package/runtime/numpy/distutils/command/build_ext.py +0 -752
  246. package/runtime/numpy/distutils/command/build_py.py +0 -31
  247. package/runtime/numpy/distutils/command/build_scripts.py +0 -49
  248. package/runtime/numpy/distutils/command/build_src.py +0 -773
  249. package/runtime/numpy/distutils/command/config.py +0 -516
  250. package/runtime/numpy/distutils/command/config_compiler.py +0 -126
  251. package/runtime/numpy/distutils/command/develop.py +0 -15
  252. package/runtime/numpy/distutils/command/egg_info.py +0 -25
  253. package/runtime/numpy/distutils/command/install.py +0 -79
  254. package/runtime/numpy/distutils/command/install_clib.py +0 -40
  255. package/runtime/numpy/distutils/command/install_data.py +0 -24
  256. package/runtime/numpy/distutils/command/install_headers.py +0 -25
  257. package/runtime/numpy/distutils/command/sdist.py +0 -27
  258. package/runtime/numpy/distutils/conv_template.py +0 -329
  259. package/runtime/numpy/distutils/core.py +0 -216
  260. package/runtime/numpy/distutils/cpuinfo.py +0 -683
  261. package/runtime/numpy/distutils/exec_command.py +0 -315
  262. package/runtime/numpy/distutils/extension.py +0 -107
  263. package/runtime/numpy/distutils/fcompiler/__init__.py +0 -1035
  264. package/runtime/numpy/distutils/fcompiler/absoft.py +0 -156
  265. package/runtime/numpy/distutils/fcompiler/arm.py +0 -71
  266. package/runtime/numpy/distutils/fcompiler/compaq.py +0 -120
  267. package/runtime/numpy/distutils/fcompiler/environment.py +0 -88
  268. package/runtime/numpy/distutils/fcompiler/fujitsu.py +0 -46
  269. package/runtime/numpy/distutils/fcompiler/g95.py +0 -42
  270. package/runtime/numpy/distutils/fcompiler/gnu.py +0 -555
  271. package/runtime/numpy/distutils/fcompiler/hpux.py +0 -41
  272. package/runtime/numpy/distutils/fcompiler/ibm.py +0 -97
  273. package/runtime/numpy/distutils/fcompiler/intel.py +0 -211
  274. package/runtime/numpy/distutils/fcompiler/lahey.py +0 -45
  275. package/runtime/numpy/distutils/fcompiler/mips.py +0 -54
  276. package/runtime/numpy/distutils/fcompiler/nag.py +0 -87
  277. package/runtime/numpy/distutils/fcompiler/none.py +0 -28
  278. package/runtime/numpy/distutils/fcompiler/nv.py +0 -53
  279. package/runtime/numpy/distutils/fcompiler/pathf95.py +0 -33
  280. package/runtime/numpy/distutils/fcompiler/pg.py +0 -128
  281. package/runtime/numpy/distutils/fcompiler/sun.py +0 -51
  282. package/runtime/numpy/distutils/fcompiler/vast.py +0 -52
  283. package/runtime/numpy/distutils/from_template.py +0 -261
  284. package/runtime/numpy/distutils/fujitsuccompiler.py +0 -28
  285. package/runtime/numpy/distutils/intelccompiler.py +0 -111
  286. package/runtime/numpy/distutils/lib2def.py +0 -116
  287. package/runtime/numpy/distutils/line_endings.py +0 -77
  288. package/runtime/numpy/distutils/log.py +0 -111
  289. package/runtime/numpy/distutils/mingw/gfortran_vs2003_hack.c +0 -6
  290. package/runtime/numpy/distutils/mingw32ccompiler.py +0 -591
  291. package/runtime/numpy/distutils/misc_util.py +0 -2493
  292. package/runtime/numpy/distutils/msvc9compiler.py +0 -63
  293. package/runtime/numpy/distutils/msvccompiler.py +0 -76
  294. package/runtime/numpy/distutils/npy_pkg_config.py +0 -437
  295. package/runtime/numpy/distutils/numpy_distribution.py +0 -17
  296. package/runtime/numpy/distutils/pathccompiler.py +0 -21
  297. package/runtime/numpy/distutils/setup.py +0 -17
  298. package/runtime/numpy/distutils/system_info.py +0 -3271
  299. package/runtime/numpy/distutils/unixccompiler.py +0 -141
  300. package/runtime/numpy/doc/__init__.py +0 -26
  301. package/runtime/numpy/doc/constants.py +0 -412
  302. package/runtime/numpy/doc/ufuncs.py +0 -137
  303. package/runtime/numpy/dtypes.py +0 -77
  304. package/runtime/numpy/dtypes.pyi +0 -43
  305. package/runtime/numpy/exceptions.py +0 -231
  306. package/runtime/numpy/exceptions.pyi +0 -18
  307. package/runtime/numpy/f2py/__init__.py +0 -194
  308. package/runtime/numpy/f2py/__init__.pyi +0 -42
  309. package/runtime/numpy/f2py/__main__.py +0 -5
  310. package/runtime/numpy/f2py/__version__.py +0 -1
  311. package/runtime/numpy/f2py/_backends/__init__.py +0 -9
  312. package/runtime/numpy/f2py/_backends/_backend.py +0 -46
  313. package/runtime/numpy/f2py/_backends/_distutils.py +0 -75
  314. package/runtime/numpy/f2py/_backends/_meson.py +0 -205
  315. package/runtime/numpy/f2py/_backends/meson.build.template +0 -54
  316. package/runtime/numpy/f2py/_isocbind.py +0 -62
  317. package/runtime/numpy/f2py/_src_pyf.py +0 -239
  318. package/runtime/numpy/f2py/auxfuncs.py +0 -988
  319. package/runtime/numpy/f2py/capi_maps.py +0 -819
  320. package/runtime/numpy/f2py/cb_rules.py +0 -644
  321. package/runtime/numpy/f2py/cfuncs.py +0 -1536
  322. package/runtime/numpy/f2py/common_rules.py +0 -146
  323. package/runtime/numpy/f2py/crackfortran.py +0 -3767
  324. package/runtime/numpy/f2py/diagnose.py +0 -154
  325. package/runtime/numpy/f2py/f2py2e.py +0 -768
  326. package/runtime/numpy/f2py/f90mod_rules.py +0 -264
  327. package/runtime/numpy/f2py/func2subr.py +0 -323
  328. package/runtime/numpy/f2py/rules.py +0 -1568
  329. package/runtime/numpy/f2py/setup.cfg +0 -3
  330. package/runtime/numpy/f2py/setup.py +0 -74
  331. package/runtime/numpy/f2py/src/fortranobject.c +0 -1423
  332. package/runtime/numpy/f2py/src/fortranobject.h +0 -173
  333. package/runtime/numpy/f2py/symbolic.py +0 -1517
  334. package/runtime/numpy/f2py/use_rules.py +0 -106
  335. package/runtime/numpy/fft/__init__.py +0 -212
  336. package/runtime/numpy/fft/__init__.pyi +0 -29
  337. package/runtime/numpy/fft/_pocketfft.py +0 -1424
  338. package/runtime/numpy/fft/_pocketfft.pyi +0 -108
  339. package/runtime/numpy/fft/_pocketfft_internal.cpython-39-x86_64-linux-gnu.so +0 -0
  340. package/runtime/numpy/fft/helper.py +0 -221
  341. package/runtime/numpy/fft/helper.pyi +0 -47
  342. package/runtime/numpy/lib/__init__.py +0 -92
  343. package/runtime/numpy/lib/__init__.pyi +0 -245
  344. package/runtime/numpy/lib/_datasource.py +0 -704
  345. package/runtime/numpy/lib/_iotools.py +0 -897
  346. package/runtime/numpy/lib/_version.py +0 -155
  347. package/runtime/numpy/lib/_version.pyi +0 -17
  348. package/runtime/numpy/lib/arraypad.py +0 -882
  349. package/runtime/numpy/lib/arraypad.pyi +0 -85
  350. package/runtime/numpy/lib/arraysetops.py +0 -981
  351. package/runtime/numpy/lib/arraysetops.pyi +0 -362
  352. package/runtime/numpy/lib/arrayterator.py +0 -219
  353. package/runtime/numpy/lib/arrayterator.pyi +0 -49
  354. package/runtime/numpy/lib/format.py +0 -976
  355. package/runtime/numpy/lib/format.pyi +0 -22
  356. package/runtime/numpy/lib/function_base.py +0 -5733
  357. package/runtime/numpy/lib/function_base.pyi +0 -697
  358. package/runtime/numpy/lib/histograms.py +0 -1072
  359. package/runtime/numpy/lib/histograms.pyi +0 -47
  360. package/runtime/numpy/lib/index_tricks.py +0 -1046
  361. package/runtime/numpy/lib/index_tricks.pyi +0 -162
  362. package/runtime/numpy/lib/mixins.py +0 -177
  363. package/runtime/numpy/lib/mixins.pyi +0 -74
  364. package/runtime/numpy/lib/nanfunctions.py +0 -1887
  365. package/runtime/numpy/lib/nanfunctions.pyi +0 -38
  366. package/runtime/numpy/lib/npyio.py +0 -2547
  367. package/runtime/numpy/lib/npyio.pyi +0 -330
  368. package/runtime/numpy/lib/polynomial.py +0 -1453
  369. package/runtime/numpy/lib/polynomial.pyi +0 -303
  370. package/runtime/numpy/lib/recfunctions.py +0 -1673
  371. package/runtime/numpy/lib/scimath.py +0 -625
  372. package/runtime/numpy/lib/scimath.pyi +0 -94
  373. package/runtime/numpy/lib/setup.py +0 -12
  374. package/runtime/numpy/lib/shape_base.py +0 -1274
  375. package/runtime/numpy/lib/shape_base.pyi +0 -220
  376. package/runtime/numpy/lib/stride_tricks.py +0 -547
  377. package/runtime/numpy/lib/stride_tricks.pyi +0 -80
  378. package/runtime/numpy/lib/twodim_base.py +0 -1183
  379. package/runtime/numpy/lib/twodim_base.pyi +0 -239
  380. package/runtime/numpy/lib/type_check.py +0 -735
  381. package/runtime/numpy/lib/type_check.pyi +0 -222
  382. package/runtime/numpy/lib/ufunclike.py +0 -210
  383. package/runtime/numpy/lib/ufunclike.pyi +0 -66
  384. package/runtime/numpy/lib/user_array.py +0 -286
  385. package/runtime/numpy/lib/utils.py +0 -1211
  386. package/runtime/numpy/lib/utils.pyi +0 -91
  387. package/runtime/numpy/linalg/__init__.py +0 -80
  388. package/runtime/numpy/linalg/__init__.pyi +0 -30
  389. package/runtime/numpy/linalg/_umath_linalg.cpython-39-x86_64-linux-gnu.so +0 -0
  390. package/runtime/numpy/linalg/lapack_lite.cpython-39-x86_64-linux-gnu.so +0 -0
  391. package/runtime/numpy/linalg/linalg.py +0 -2836
  392. package/runtime/numpy/linalg/linalg.pyi +0 -297
  393. package/runtime/numpy/ma/API_CHANGES.txt +0 -135
  394. package/runtime/numpy/ma/LICENSE +0 -24
  395. package/runtime/numpy/ma/README.rst +0 -236
  396. package/runtime/numpy/ma/__init__.py +0 -54
  397. package/runtime/numpy/ma/__init__.pyi +0 -234
  398. package/runtime/numpy/ma/core.py +0 -8565
  399. package/runtime/numpy/ma/core.pyi +0 -471
  400. package/runtime/numpy/ma/extras.py +0 -2133
  401. package/runtime/numpy/ma/extras.pyi +0 -85
  402. package/runtime/numpy/ma/mrecords.py +0 -783
  403. package/runtime/numpy/ma/mrecords.pyi +0 -90
  404. package/runtime/numpy/ma/setup.py +0 -12
  405. package/runtime/numpy/ma/testutils.py +0 -288
  406. package/runtime/numpy/ma/timer_comparison.py +0 -443
  407. package/runtime/numpy/matlib.py +0 -378
  408. package/runtime/numpy/matrixlib/__init__.py +0 -11
  409. package/runtime/numpy/matrixlib/__init__.pyi +0 -15
  410. package/runtime/numpy/matrixlib/defmatrix.py +0 -1114
  411. package/runtime/numpy/matrixlib/defmatrix.pyi +0 -16
  412. package/runtime/numpy/matrixlib/setup.py +0 -12
  413. package/runtime/numpy/polynomial/__init__.py +0 -185
  414. package/runtime/numpy/polynomial/__init__.pyi +0 -22
  415. package/runtime/numpy/polynomial/_polybase.py +0 -1206
  416. package/runtime/numpy/polynomial/_polybase.pyi +0 -71
  417. package/runtime/numpy/polynomial/chebyshev.py +0 -2082
  418. package/runtime/numpy/polynomial/chebyshev.pyi +0 -51
  419. package/runtime/numpy/polynomial/hermite.py +0 -1703
  420. package/runtime/numpy/polynomial/hermite.pyi +0 -46
  421. package/runtime/numpy/polynomial/hermite_e.py +0 -1695
  422. package/runtime/numpy/polynomial/hermite_e.pyi +0 -46
  423. package/runtime/numpy/polynomial/laguerre.py +0 -1651
  424. package/runtime/numpy/polynomial/laguerre.pyi +0 -46
  425. package/runtime/numpy/polynomial/legendre.py +0 -1664
  426. package/runtime/numpy/polynomial/legendre.pyi +0 -46
  427. package/runtime/numpy/polynomial/polynomial.py +0 -1542
  428. package/runtime/numpy/polynomial/polynomial.pyi +0 -41
  429. package/runtime/numpy/polynomial/polyutils.py +0 -789
  430. package/runtime/numpy/polynomial/polyutils.pyi +0 -11
  431. package/runtime/numpy/polynomial/setup.py +0 -10
  432. package/runtime/numpy/py.typed +0 -0
  433. package/runtime/numpy/random/LICENSE.md +0 -71
  434. package/runtime/numpy/random/__init__.pxd +0 -14
  435. package/runtime/numpy/random/__init__.py +0 -215
  436. package/runtime/numpy/random/__init__.pyi +0 -72
  437. package/runtime/numpy/random/_bounded_integers.cpython-39-x86_64-linux-gnu.so +0 -0
  438. package/runtime/numpy/random/_bounded_integers.pxd +0 -29
  439. package/runtime/numpy/random/_common.cpython-39-x86_64-linux-gnu.so +0 -0
  440. package/runtime/numpy/random/_common.pxd +0 -106
  441. package/runtime/numpy/random/_examples/cffi/extending.py +0 -40
  442. package/runtime/numpy/random/_examples/cffi/parse.py +0 -54
  443. package/runtime/numpy/random/_examples/cython/extending.pyx +0 -78
  444. package/runtime/numpy/random/_examples/cython/extending_distributions.pyx +0 -117
  445. package/runtime/numpy/random/_examples/cython/meson.build +0 -45
  446. package/runtime/numpy/random/_examples/numba/extending.py +0 -84
  447. package/runtime/numpy/random/_examples/numba/extending_distributions.py +0 -67
  448. package/runtime/numpy/random/_generator.cpython-39-x86_64-linux-gnu.so +0 -0
  449. package/runtime/numpy/random/_generator.pyi +0 -681
  450. package/runtime/numpy/random/_mt19937.cpython-39-x86_64-linux-gnu.so +0 -0
  451. package/runtime/numpy/random/_mt19937.pyi +0 -22
  452. package/runtime/numpy/random/_pcg64.cpython-39-x86_64-linux-gnu.so +0 -0
  453. package/runtime/numpy/random/_pcg64.pyi +0 -42
  454. package/runtime/numpy/random/_philox.cpython-39-x86_64-linux-gnu.so +0 -0
  455. package/runtime/numpy/random/_philox.pyi +0 -36
  456. package/runtime/numpy/random/_pickle.py +0 -80
  457. package/runtime/numpy/random/_sfc64.cpython-39-x86_64-linux-gnu.so +0 -0
  458. package/runtime/numpy/random/_sfc64.pyi +0 -28
  459. package/runtime/numpy/random/bit_generator.cpython-39-x86_64-linux-gnu.so +0 -0
  460. package/runtime/numpy/random/bit_generator.pxd +0 -35
  461. package/runtime/numpy/random/bit_generator.pyi +0 -112
  462. package/runtime/numpy/random/c_distributions.pxd +0 -120
  463. package/runtime/numpy/random/lib/libnpyrandom.a +0 -0
  464. package/runtime/numpy/random/mtrand.cpython-39-x86_64-linux-gnu.so +0 -0
  465. package/runtime/numpy/random/mtrand.pyi +0 -571
  466. package/runtime/numpy/testing/__init__.py +0 -22
  467. package/runtime/numpy/testing/__init__.pyi +0 -50
  468. package/runtime/numpy/testing/_private/__init__.py +0 -0
  469. package/runtime/numpy/testing/_private/extbuild.py +0 -248
  470. package/runtime/numpy/testing/_private/utils.py +0 -2509
  471. package/runtime/numpy/testing/_private/utils.pyi +0 -402
  472. package/runtime/numpy/testing/overrides.py +0 -83
  473. package/runtime/numpy/testing/print_coercion_tables.py +0 -200
  474. package/runtime/numpy/testing/setup.py +0 -21
  475. package/runtime/numpy/typing/__init__.py +0 -175
  476. package/runtime/numpy/typing/mypy_plugin.py +0 -196
  477. package/runtime/numpy/typing/setup.py +0 -11
  478. package/runtime/numpy/version.py +0 -8
  479. package/runtime/numpy-1.26.4.dist-info/LICENSE.txt +0 -971
  480. package/runtime/numpy-1.26.4.dist-info/METADATA +0 -1092
  481. package/runtime/numpy-1.26.4.dist-info/RECORD +0 -915
  482. package/runtime/numpy-1.26.4.dist-info/WHEEL +0 -6
  483. package/runtime/numpy-1.26.4.dist-info/entry_points.txt +0 -9
  484. package/runtime/numpy.libs/libgfortran-040039e1.so.5.0.0 +0 -0
  485. package/runtime/numpy.libs/libopenblas64_p-r0-0cf96a72.3.23.dev.so +0 -4
  486. package/runtime/numpy.libs/libquadmath-96973f99.so.0.0.0 +0 -0
  487. package/runtime/pdk_adadpter/__init__.py +0 -5
  488. package/runtime/pdk_adadpter/cli.py +0 -49
  489. package/runtime/pdk_adadpter/pdkgen.py +0 -269
  490. package/runtime/pydantic/__init__.py +0 -431
  491. package/runtime/pydantic/_internal/__init__.py +0 -0
  492. package/runtime/pydantic/_internal/_config.py +0 -345
  493. package/runtime/pydantic/_internal/_core_metadata.py +0 -91
  494. package/runtime/pydantic/_internal/_core_utils.py +0 -610
  495. package/runtime/pydantic/_internal/_dataclasses.py +0 -246
  496. package/runtime/pydantic/_internal/_decorators.py +0 -823
  497. package/runtime/pydantic/_internal/_decorators_v1.py +0 -174
  498. package/runtime/pydantic/_internal/_discriminated_union.py +0 -503
  499. package/runtime/pydantic/_internal/_docs_extraction.py +0 -108
  500. package/runtime/pydantic/_internal/_fields.py +0 -392
  501. package/runtime/pydantic/_internal/_forward_ref.py +0 -23
  502. package/runtime/pydantic/_internal/_generate_schema.py +0 -2522
  503. package/runtime/pydantic/_internal/_generics.py +0 -536
  504. package/runtime/pydantic/_internal/_git.py +0 -27
  505. package/runtime/pydantic/_internal/_import_utils.py +0 -20
  506. package/runtime/pydantic/_internal/_internal_dataclass.py +0 -7
  507. package/runtime/pydantic/_internal/_known_annotated_metadata.py +0 -392
  508. package/runtime/pydantic/_internal/_mock_val_ser.py +0 -235
  509. package/runtime/pydantic/_internal/_model_construction.py +0 -792
  510. package/runtime/pydantic/_internal/_namespace_utils.py +0 -284
  511. package/runtime/pydantic/_internal/_repr.py +0 -123
  512. package/runtime/pydantic/_internal/_schema_generation_shared.py +0 -126
  513. package/runtime/pydantic/_internal/_serializers.py +0 -51
  514. package/runtime/pydantic/_internal/_signature.py +0 -188
  515. package/runtime/pydantic/_internal/_std_types_schema.py +0 -404
  516. package/runtime/pydantic/_internal/_typing_extra.py +0 -893
  517. package/runtime/pydantic/_internal/_utils.py +0 -389
  518. package/runtime/pydantic/_internal/_validate_call.py +0 -115
  519. package/runtime/pydantic/_internal/_validators.py +0 -424
  520. package/runtime/pydantic/_migration.py +0 -308
  521. package/runtime/pydantic/alias_generators.py +0 -62
  522. package/runtime/pydantic/aliases.py +0 -132
  523. package/runtime/pydantic/annotated_handlers.py +0 -122
  524. package/runtime/pydantic/class_validators.py +0 -5
  525. package/runtime/pydantic/color.py +0 -604
  526. package/runtime/pydantic/config.py +0 -1049
  527. package/runtime/pydantic/dataclasses.py +0 -366
  528. package/runtime/pydantic/datetime_parse.py +0 -5
  529. package/runtime/pydantic/decorator.py +0 -5
  530. package/runtime/pydantic/deprecated/__init__.py +0 -0
  531. package/runtime/pydantic/deprecated/class_validators.py +0 -256
  532. package/runtime/pydantic/deprecated/config.py +0 -72
  533. package/runtime/pydantic/deprecated/copy_internals.py +0 -224
  534. package/runtime/pydantic/deprecated/decorator.py +0 -283
  535. package/runtime/pydantic/deprecated/json.py +0 -141
  536. package/runtime/pydantic/deprecated/parse.py +0 -80
  537. package/runtime/pydantic/deprecated/tools.py +0 -103
  538. package/runtime/pydantic/env_settings.py +0 -5
  539. package/runtime/pydantic/error_wrappers.py +0 -5
  540. package/runtime/pydantic/errors.py +0 -162
  541. package/runtime/pydantic/experimental/__init__.py +0 -10
  542. package/runtime/pydantic/experimental/pipeline.py +0 -669
  543. package/runtime/pydantic/fields.py +0 -1504
  544. package/runtime/pydantic/functional_serializers.py +0 -449
  545. package/runtime/pydantic/functional_validators.py +0 -825
  546. package/runtime/pydantic/generics.py +0 -5
  547. package/runtime/pydantic/json.py +0 -5
  548. package/runtime/pydantic/json_schema.py +0 -2649
  549. package/runtime/pydantic/main.py +0 -1688
  550. package/runtime/pydantic/mypy.py +0 -1320
  551. package/runtime/pydantic/networks.py +0 -1291
  552. package/runtime/pydantic/parse.py +0 -5
  553. package/runtime/pydantic/plugin/__init__.py +0 -171
  554. package/runtime/pydantic/plugin/_loader.py +0 -56
  555. package/runtime/pydantic/plugin/_schema_validator.py +0 -139
  556. package/runtime/pydantic/py.typed +0 -0
  557. package/runtime/pydantic/root_model.py +0 -156
  558. package/runtime/pydantic/schema.py +0 -5
  559. package/runtime/pydantic/tools.py +0 -5
  560. package/runtime/pydantic/type_adapter.py +0 -676
  561. package/runtime/pydantic/types.py +0 -3255
  562. package/runtime/pydantic/typing.py +0 -5
  563. package/runtime/pydantic/utils.py +0 -5
  564. package/runtime/pydantic/v1/__init__.py +0 -131
  565. package/runtime/pydantic/v1/_hypothesis_plugin.py +0 -391
  566. package/runtime/pydantic/v1/annotated_types.py +0 -72
  567. package/runtime/pydantic/v1/class_validators.py +0 -361
  568. package/runtime/pydantic/v1/color.py +0 -494
  569. package/runtime/pydantic/v1/config.py +0 -191
  570. package/runtime/pydantic/v1/dataclasses.py +0 -500
  571. package/runtime/pydantic/v1/datetime_parse.py +0 -248
  572. package/runtime/pydantic/v1/decorator.py +0 -264
  573. package/runtime/pydantic/v1/env_settings.py +0 -350
  574. package/runtime/pydantic/v1/error_wrappers.py +0 -161
  575. package/runtime/pydantic/v1/errors.py +0 -646
  576. package/runtime/pydantic/v1/fields.py +0 -1253
  577. package/runtime/pydantic/v1/generics.py +0 -400
  578. package/runtime/pydantic/v1/json.py +0 -112
  579. package/runtime/pydantic/v1/main.py +0 -1107
  580. package/runtime/pydantic/v1/mypy.py +0 -949
  581. package/runtime/pydantic/v1/networks.py +0 -747
  582. package/runtime/pydantic/v1/parse.py +0 -66
  583. package/runtime/pydantic/v1/py.typed +0 -0
  584. package/runtime/pydantic/v1/schema.py +0 -1163
  585. package/runtime/pydantic/v1/tools.py +0 -92
  586. package/runtime/pydantic/v1/types.py +0 -1205
  587. package/runtime/pydantic/v1/typing.py +0 -608
  588. package/runtime/pydantic/v1/utils.py +0 -804
  589. package/runtime/pydantic/v1/validators.py +0 -768
  590. package/runtime/pydantic/v1/version.py +0 -38
  591. package/runtime/pydantic/validate_call_decorator.py +0 -115
  592. package/runtime/pydantic/validators.py +0 -5
  593. package/runtime/pydantic/version.py +0 -78
  594. package/runtime/pydantic/warnings.py +0 -86
  595. package/runtime/pydantic-2.10.6.dist-info/METADATA +0 -359
  596. package/runtime/pydantic-2.10.6.dist-info/RECORD +0 -109
  597. package/runtime/pydantic-2.10.6.dist-info/WHEEL +0 -4
  598. package/runtime/pydantic-2.10.6.dist-info/licenses/LICENSE +0 -21
  599. package/runtime/pydantic_core/__init__.py +0 -139
  600. package/runtime/pydantic_core/_pydantic_core.cpython-39-x86_64-linux-gnu.so +0 -0
  601. package/runtime/pydantic_core/_pydantic_core.pyi +0 -1013
  602. package/runtime/pydantic_core/core_schema.py +0 -4211
  603. package/runtime/pydantic_core/py.typed +0 -0
  604. package/runtime/pydantic_core-2.27.2.dist-info/METADATA +0 -161
  605. package/runtime/pydantic_core-2.27.2.dist-info/RECORD +0 -9
  606. package/runtime/pydantic_core-2.27.2.dist-info/WHEEL +0 -4
  607. package/runtime/pydantic_core-2.27.2.dist-info/licenses/LICENSE +0 -21
  608. package/runtime/skillbridge/__init__.py +0 -118
  609. package/runtime/skillbridge/__main__.py +0 -94
  610. package/runtime/skillbridge/client/__init__.py +0 -0
  611. package/runtime/skillbridge/client/channel.py +0 -221
  612. package/runtime/skillbridge/client/functions.py +0 -64
  613. package/runtime/skillbridge/client/globals.py +0 -114
  614. package/runtime/skillbridge/client/hints.py +0 -96
  615. package/runtime/skillbridge/client/objects.py +0 -269
  616. package/runtime/skillbridge/client/remote.py +0 -23
  617. package/runtime/skillbridge/client/translator.py +0 -215
  618. package/runtime/skillbridge/client/var.py +0 -68
  619. package/runtime/skillbridge/client/workspace.py +0 -347
  620. package/runtime/skillbridge/py.typed +0 -0
  621. package/runtime/skillbridge/server/__init__.py +0 -0
  622. package/runtime/skillbridge/server/python_server.il +0 -241
  623. package/runtime/skillbridge/server/python_server.py +0 -193
  624. package/runtime/skillbridge/version.py +0 -1
  625. package/runtime/skillbridge-1.7.2.dist-info/LICENSE +0 -165
  626. package/runtime/skillbridge-1.7.2.dist-info/METADATA +0 -304
  627. package/runtime/skillbridge-1.7.2.dist-info/RECORD +0 -27
  628. package/runtime/skillbridge-1.7.2.dist-info/WHEEL +0 -5
  629. package/runtime/skillbridge-1.7.2.dist-info/entry_points.txt +0 -2
  630. package/runtime/skillbridge-1.7.2.dist-info/top_level.txt +0 -1
  631. package/runtime/ted_common/.devops/ci/config.yaml +0 -3
  632. package/runtime/ted_common/.devops/ci/lvl_10/hh130.yaml +0 -3
  633. package/runtime/ted_common/.devops/ci/lvl_10/hh180.yaml +0 -3
  634. package/runtime/ted_common/.devops/ci/lvl_10/hl55.yaml +0 -3
  635. package/runtime/ted_common/.devops/ci/lvl_10/ics55.yaml +0 -3
  636. package/runtime/ted_common/.devops/ci/lvl_10/pku3.yaml +0 -3
  637. package/runtime/ted_common/.devops/ci/lvl_10/s180bcd.yaml +0 -3
  638. package/runtime/ted_common/.devops/ci/lvl_10/s180bcdepi.yaml +0 -3
  639. package/runtime/ted_common/.devops/ci/lvl_10/s180mm.yaml +0 -3
  640. package/runtime/ted_common/.devops/ci/lvl_10/s180mse.yaml +0 -3
  641. package/runtime/ted_common/.devops/ci/lvl_10/s28.yaml +0 -3
  642. package/runtime/ted_common/.devops/ci/lvl_10/s40.yaml +0 -3
  643. package/runtime/ted_common/.devops/ci/lvl_10/s55.yaml +0 -3
  644. package/runtime/ted_common/.devops/ci/lvl_10/s55_6m.yaml +0 -3
  645. package/runtime/ted_common/.devops/ci/lvl_10/s65.yaml +0 -3
  646. package/runtime/ted_common/.devops/ci/lvl_10/s90bcd.yaml +0 -3
  647. package/runtime/ted_common/.devops/ci/lvl_10/sharp180.yaml +0 -3
  648. package/runtime/ted_common/.devops/ci/lvl_10/t12.yaml +0 -3
  649. package/runtime/ted_common/.devops/ci/lvl_10/t180.yaml +0 -3
  650. package/runtime/ted_common/.devops/ci/lvl_10/t22.yaml +0 -3
  651. package/runtime/ted_common/.devops/ci/lvl_10/t28.yaml +0 -3
  652. package/runtime/ted_common/.devops/ci/lvl_10/t40.yaml +0 -3
  653. package/runtime/ted_common/.devops/ci/lvl_10/t65.yaml +0 -3
  654. package/runtime/ted_common/.devops/ci/lvl_30/hh130.yaml +0 -3
  655. package/runtime/ted_common/.devops/ci/lvl_30/hh180.yaml +0 -3
  656. package/runtime/ted_common/.devops/ci/lvl_30/hl55.yaml +0 -3
  657. package/runtime/ted_common/.devops/ci/lvl_30/ics55.yaml +0 -3
  658. package/runtime/ted_common/.devops/ci/lvl_30/pku3.yaml +0 -3
  659. package/runtime/ted_common/.devops/ci/lvl_30/s180bcd.yaml +0 -3
  660. package/runtime/ted_common/.devops/ci/lvl_30/s180bcdepi.yaml +0 -3
  661. package/runtime/ted_common/.devops/ci/lvl_30/s180mm.yaml +0 -3
  662. package/runtime/ted_common/.devops/ci/lvl_30/s180mse.yaml +0 -3
  663. package/runtime/ted_common/.devops/ci/lvl_30/s28.yaml +0 -3
  664. package/runtime/ted_common/.devops/ci/lvl_30/s40.yaml +0 -3
  665. package/runtime/ted_common/.devops/ci/lvl_30/s55.yaml +0 -3
  666. package/runtime/ted_common/.devops/ci/lvl_30/s55_6m.yaml +0 -3
  667. package/runtime/ted_common/.devops/ci/lvl_30/s65.yaml +0 -3
  668. package/runtime/ted_common/.devops/ci/lvl_30/s90bcd.yaml +0 -3
  669. package/runtime/ted_common/.devops/ci/lvl_30/sharp180.yaml +0 -3
  670. package/runtime/ted_common/.devops/ci/lvl_30/t12.yaml +0 -3
  671. package/runtime/ted_common/.devops/ci/lvl_30/t180.yaml +0 -3
  672. package/runtime/ted_common/.devops/ci/lvl_30/t28.yaml +0 -3
  673. package/runtime/ted_common/.devops/ci/lvl_30/t40.yaml +0 -3
  674. package/runtime/ted_common/.devops/ci/lvl_30/t65.yaml +0 -3
  675. package/runtime/ted_common/.devops/ci/lvl_5/hh130.yaml +0 -3
  676. package/runtime/ted_common/.devops/ci/lvl_5/hh180.yaml +0 -3
  677. package/runtime/ted_common/.devops/ci/lvl_5/hl55.yaml +0 -3
  678. package/runtime/ted_common/.devops/ci/lvl_5/ics55.yaml +0 -3
  679. package/runtime/ted_common/.devops/ci/lvl_5/pku3.yaml +0 -3
  680. package/runtime/ted_common/.devops/ci/lvl_5/s180bcd.yaml +0 -3
  681. package/runtime/ted_common/.devops/ci/lvl_5/s180bcdepi.yaml +0 -3
  682. package/runtime/ted_common/.devops/ci/lvl_5/s180mm.yaml +0 -3
  683. package/runtime/ted_common/.devops/ci/lvl_5/s180mse.yaml +0 -3
  684. package/runtime/ted_common/.devops/ci/lvl_5/s28.yaml +0 -3
  685. package/runtime/ted_common/.devops/ci/lvl_5/s40.yaml +0 -3
  686. package/runtime/ted_common/.devops/ci/lvl_5/s55.yaml +0 -3
  687. package/runtime/ted_common/.devops/ci/lvl_5/s55_6m.yaml +0 -3
  688. package/runtime/ted_common/.devops/ci/lvl_5/s65.yaml +0 -3
  689. package/runtime/ted_common/.devops/ci/lvl_5/s90bcd.yaml +0 -3
  690. package/runtime/ted_common/.devops/ci/lvl_5/sharp180.yaml +0 -3
  691. package/runtime/ted_common/.devops/ci/lvl_5/t12.yaml +0 -3
  692. package/runtime/ted_common/.devops/ci/lvl_5/t180.yaml +0 -3
  693. package/runtime/ted_common/.devops/ci/lvl_5/t22.yaml +0 -3
  694. package/runtime/ted_common/.devops/ci/lvl_5/t28.yaml +0 -3
  695. package/runtime/ted_common/.devops/ci/lvl_5/t40.yaml +0 -3
  696. package/runtime/ted_common/.devops/ci/lvl_5/t65.yaml +0 -3
  697. package/runtime/ted_common/__init__.py +0 -3
  698. package/runtime/ted_common/ai.py +0 -249
  699. package/runtime/ted_common/cc_output_processor.py +0 -726
  700. package/runtime/ted_common/conftest.py +0 -56
  701. package/runtime/ted_common/cprint.py +0 -35
  702. package/runtime/ted_common/device_contracts/__init__.py +0 -1
  703. package/runtime/ted_common/device_contracts/metadata.py +0 -256
  704. package/runtime/ted_common/device_contracts/mos_connections.py +0 -350
  705. package/runtime/ted_common/device_contracts/parameters.py +0 -24
  706. package/runtime/ted_common/device_contracts/pcell_reference.py +0 -25
  707. package/runtime/ted_common/device_contracts/physical_pins.py +0 -167
  708. package/runtime/ted_common/device_contracts/series_connections.py +0 -125
  709. package/runtime/ted_common/fs.py +0 -525
  710. package/runtime/ted_common/loggable2.py +0 -124
  711. package/runtime/ted_common/logger.py +0 -229
  712. package/runtime/ted_common/requirements.txt +0 -2
  713. package/runtime/ted_common/router.py +0 -807
  714. package/runtime/ted_pdk_adapter/__init__.py +0 -47
  715. package/runtime/ted_pdk_adapter/src/__init__.py +0 -27
  716. package/runtime/ted_pdk_adapter/src/decision/__init__.py +0 -26
  717. package/runtime/ted_pdk_adapter/src/decision/resolver.py +0 -211
  718. package/runtime/ted_pdk_adapter/src/decision/rules.py +0 -505
  719. package/runtime/ted_pdk_adapter/src/decision/strategies.py +0 -472
  720. package/runtime/ted_pdk_adapter/src/extract/__init__.py +0 -0
  721. package/runtime/ted_pdk_adapter/src/extract/extract_corners.py +0 -435
  722. package/runtime/ted_pdk_adapter/src/tvf.py +0 -154
  723. package/runtime/ted_pdk_adapter/src/vendor_inputs.py +0 -271
  724. package/runtime/ted_tools/virtuoso/.cdsinit +0 -3
  725. package/runtime/ted_tools/virtuoso/build.sh +0 -2
  726. package/runtime/ted_tools/virtuoso/cds.lib +0 -26
  727. package/runtime/ted_tools/virtuoso/icadv12.3_env.sh +0 -34
  728. package/runtime/ted_tools/virtuoso/pdk/AMP_SINK2.json +0 -124
  729. package/runtime/ted_tools/virtuoso/pdk/drc.json +0 -45
  730. package/runtime/ted_tools/virtuoso/pdk/dtxt.json +0 -18
  731. package/runtime/ted_tools/virtuoso/py_server/__init__.py +0 -0
  732. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/cdf.il +0 -743
  733. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/core.il +0 -191
  734. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/create.il +0 -354
  735. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/delete.il +0 -77
  736. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/get.il +0 -192
  737. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/index.il +0 -26
  738. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/inspect.il +0 -85
  739. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/io.il +0 -137
  740. package/runtime/ted_tools/virtuoso/skill/agents/dbobject/query.il +0 -314
  741. package/runtime/ted_tools/virtuoso/skill/agents/index.il +0 -2
  742. package/runtime/ted_tools/virtuoso/skill/agents/schematic/index.il +0 -239
  743. package/runtime/ted_tools/virtuoso/skill/autobench/README.md +0 -247
  744. package/runtime/ted_tools/virtuoso/skill/autobench/adexl.il +0 -103
  745. package/runtime/ted_tools/virtuoso/skill/autobench/common.il +0 -19
  746. package/runtime/ted_tools/virtuoso/skill/autobench/index.il +0 -3
  747. package/runtime/ted_tools/virtuoso/skill/autobench/initialize.il +0 -93
  748. package/runtime/ted_tools/virtuoso/skill/autobench/mae.env +0 -1999
  749. package/runtime/ted_tools/virtuoso/skill/autobench/maestro.il +0 -704
  750. package/runtime/ted_tools/virtuoso/skill/autobench/startup.il +0 -214
  751. package/runtime/ted_tools/virtuoso/skill/autobench/tb.il +0 -586
  752. package/runtime/ted_tools/virtuoso/skill/autobench/wave.il +0 -170
  753. package/runtime/ted_tools/virtuoso/skill/autoform/index.il +0 -1
  754. package/runtime/ted_tools/virtuoso/skill/autoform/initialize.il +0 -62
  755. package/runtime/ted_tools/virtuoso/skill/autoform/startup.il +0 -146
  756. package/runtime/ted_tools/virtuoso/skill/bin/reflect_tech +0 -0
  757. package/runtime/ted_tools/virtuoso/skill/common/XLDevInfoGen.il +0 -60
  758. package/runtime/ted_tools/virtuoso/skill/common/abInvokeCdfCallbacks.il +0 -414
  759. package/runtime/ted_tools/virtuoso/skill/common/autolabel.il +0 -206
  760. package/runtime/ted_tools/virtuoso/skill/common/functions.il +0 -367
  761. package/runtime/ted_tools/virtuoso/skill/common/gds.il +0 -39
  762. package/runtime/ted_tools/virtuoso/skill/common/geometry.il +0 -430
  763. package/runtime/ted_tools/virtuoso/skill/common/graphic_serialize.il +0 -1575
  764. package/runtime/ted_tools/virtuoso/skill/common/hpc.il +0 -2
  765. package/runtime/ted_tools/virtuoso/skill/common/implementation_view.il +0 -97
  766. package/runtime/ted_tools/virtuoso/skill/common/json.il +0 -740
  767. package/runtime/ted_tools/virtuoso/skill/common/os.il +0 -356
  768. package/runtime/ted_tools/virtuoso/skill/common/parser.il +0 -27
  769. package/runtime/ted_tools/virtuoso/skill/common/pdk.il +0 -230
  770. package/runtime/ted_tools/virtuoso/skill/common/performance.il +0 -167
  771. package/runtime/ted_tools/virtuoso/skill/common/placer.il +0 -191
  772. package/runtime/ted_tools/virtuoso/skill/common/printInstCdfInfo.il +0 -347
  773. package/runtime/ted_tools/virtuoso/skill/common/route.il +0 -228
  774. package/runtime/ted_tools/virtuoso/skill/common/std.il +0 -14
  775. package/runtime/ted_tools/virtuoso/skill/common/types.il +0 -224
  776. package/runtime/ted_tools/virtuoso/skill/common/virsual.il +0 -410
  777. package/runtime/ted_tools/virtuoso/skill/component/common.il +0 -55
  778. package/runtime/ted_tools/virtuoso/skill/component/config.il +0 -436
  779. package/runtime/ted_tools/virtuoso/skill/component/decrypt.il +0 -41
  780. package/runtime/ted_tools/virtuoso/skill/component/global_setting.il +0 -366
  781. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/arw_pdk.il +0 -432
  782. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/arw_ui.il +0 -45
  783. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/batch_lvs.il +0 -41
  784. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/setting.il +0 -498
  785. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/setting_ui.il +0 -59
  786. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/stacking_setting.il +0 -917
  787. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/temp.il +0 -5
  788. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/test.il +0 -29
  789. package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/unit_setting.il +0 -865
  790. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/channel.il +0 -838
  791. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/channel_route.il +0 -293
  792. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/check_xl.il +0 -1246
  793. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/error_info.il +0 -499
  794. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/error_info.json +0 -220
  795. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/foot.il +0 -686
  796. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/inspection_result.json +0 -200
  797. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/metal.il +0 -163
  798. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/net.il +0 -182
  799. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/part_route.il +0 -44
  800. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/pdk.il +0 -295
  801. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/protected.il +0 -142
  802. package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/via.il +0 -136
  803. package/runtime/ted_tools/virtuoso/skill/component/gui/check_route_result/index.il +0 -437
  804. package/runtime/ted_tools/virtuoso/skill/component/gui/common/instance/rec_get_instance.il +0 -280
  805. package/runtime/ted_tools/virtuoso/skill/component/gui/common/net/report_form.il +0 -1684
  806. package/runtime/ted_tools/virtuoso/skill/component/gui/dock.il +0 -266
  807. package/runtime/ted_tools/virtuoso/skill/component/gui/mos_route/mos_route.il +0 -927
  808. package/runtime/ted_tools/virtuoso/skill/component/gui/sch_to_code/index.il +0 -67
  809. package/runtime/ted_tools/virtuoso/skill/component/gui/sch_to_code/ted_tech_load.py +0 -48
  810. package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_need_serialize_cell.il +0 -142
  811. package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_need_serialize_lib.il +0 -129
  812. package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_skip_cell.il +0 -144
  813. package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_skip_lib.il +0 -121
  814. package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/serialize.il +0 -230
  815. package/runtime/ted_tools/virtuoso/skill/component/gui/session.il +0 -63
  816. package/runtime/ted_tools/virtuoso/skill/component/gui/xf/inst_table.il +0 -252
  817. package/runtime/ted_tools/virtuoso/skill/component/gui/xf/xf.il +0 -13
  818. package/runtime/ted_tools/virtuoso/skill/component/lvs.config +0 -62
  819. package/runtime/ted_tools/virtuoso/skill/component/pcell.il +0 -39
  820. package/runtime/ted_tools/virtuoso/skill/component/route.il +0 -298
  821. package/runtime/ted_tools/virtuoso/skill/component/scripts/schematic_middle_file.json +0 -76
  822. package/runtime/ted_tools/virtuoso/skill/component/scripts/test1208_test_ACD.json +0 -21
  823. package/runtime/ted_tools/virtuoso/skill/component/test.il +0 -179
  824. package/runtime/ted_tools/virtuoso/skill/component/test2.il +0 -76
  825. package/runtime/ted_tools/virtuoso/skill/component/virtuoso.il +0 -1164
  826. package/runtime/ted_tools/virtuoso/skill/component/xf.il +0 -208
  827. package/runtime/ted_tools/virtuoso/skill/ctx/64bit/siview.ctx +0 -0
  828. package/runtime/ted_tools/virtuoso/skill/gui/interaction.il +0 -105
  829. package/runtime/ted_tools/virtuoso/skill/gui/net.il +0 -208
  830. package/runtime/ted_tools/virtuoso/skill/layout.il +0 -464
  831. package/runtime/ted_tools/virtuoso/skill/main.il +0 -14
  832. package/runtime/ted_tools/virtuoso/skill/modules/a.il +0 -219
  833. package/runtime/ted_tools/virtuoso/skill/modules/builder.il +0 -187
  834. package/runtime/ted_tools/virtuoso/skill/modules/code.il +0 -396
  835. package/runtime/ted_tools/virtuoso/skill/modules/index.il +0 -4
  836. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/index.il +0 -1
  837. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/example_2.xlsx +0 -0
  838. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_all.xlsx +0 -0
  839. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_body.xlsx +0 -0
  840. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_body_no_dummy.xlsx +0 -0
  841. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_diode.xlsx +0 -0
  842. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_diode_no_dummy.xlsx +0 -0
  843. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/onmicro_config.yaml +0 -83
  844. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeA_example.xlsx +0 -0
  845. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeA_example_1.xlsx +0 -0
  846. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeB_example.xlsx +0 -0
  847. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py//345/211/257/346/234/254TEST_KEY_IMPORT_v0p1.xlsx +0 -0
  848. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/batch.il +0 -55
  849. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/common.il +0 -95
  850. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/config.il +0 -194
  851. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/index.il +0 -6
  852. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/unitA.il +0 -830
  853. package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/unitB.il +0 -752
  854. package/runtime/ted_tools/virtuoso/skill/modules/paired_nmos.il +0 -166
  855. package/runtime/ted_tools/virtuoso/skill/modules/pcell_demo.il +0 -244
  856. package/runtime/ted_tools/virtuoso/skill/modules/requirements.txt +0 -1
  857. package/runtime/ted_tools/virtuoso/skill/modules/test.csv +0 -3
  858. package/runtime/ted_tools/virtuoso/skill/modules/test.il +0 -12
  859. package/runtime/ted_tools/virtuoso/skill/modules/test.xlsx +0 -0
  860. package/runtime/ted_tools/virtuoso/skill/modules/utils.il +0 -138
  861. package/runtime/ted_tools/virtuoso/skill/oa/export.il +0 -124
  862. package/runtime/ted_tools/virtuoso/skill/optimization/index.il +0 -2
  863. package/runtime/ted_tools/virtuoso/skill/optimization/menu.il +0 -106
  864. package/runtime/ted_tools/virtuoso/skill/optimization/ui.il +0 -542
  865. package/runtime/ted_tools/virtuoso/skill/package.il +0 -72
  866. package/runtime/ted_tools/virtuoso/skill/pcell.il +0 -166
  867. package/runtime/ted_tools/virtuoso/skill/pcell2/__init__.py +0 -0
  868. package/runtime/ted_tools/virtuoso/skill/pcell2/create_lib.il +0 -69
  869. package/runtime/ted_tools/virtuoso/skill/pcell2/gds.il +0 -166
  870. package/runtime/ted_tools/virtuoso/skill/pcell2/get_param_info.il +0 -40
  871. package/runtime/ted_tools/virtuoso/skill/pcell2/lib.il +0 -0
  872. package/runtime/ted_tools/virtuoso/skill/pcell2/strmout.il +0 -49
  873. package/runtime/ted_tools/virtuoso/skill/pcell2/test.il +0 -24
  874. package/runtime/ted_tools/virtuoso/skill/pdk/batchCheckModelChoices.il +0 -280
  875. package/runtime/ted_tools/virtuoso/skill/pdk/cdf.il +0 -199
  876. package/runtime/ted_tools/virtuoso/skill/pdk/cdf_mapping.il +0 -41
  877. package/runtime/ted_tools/virtuoso/skill/pdk/checkModelChoices.il +0 -274
  878. package/runtime/ted_tools/virtuoso/skill/pdk/index.il +0 -5
  879. package/runtime/ted_tools/virtuoso/skill/pdk/schematic.il +0 -147
  880. package/runtime/ted_tools/virtuoso/skill/plugins/ted.il +0 -181
  881. package/runtime/ted_tools/virtuoso/skill/python_server.il +0 -241
  882. package/runtime/ted_tools/virtuoso/skill/router/index.il +0 -1
  883. package/runtime/ted_tools/virtuoso/skill/router/initialize.il +0 -80
  884. package/runtime/ted_tools/virtuoso/skill/router/startup.il +0 -112
  885. package/runtime/ted_tools/virtuoso/skill/schematic/generator/import.il +0 -646
  886. package/runtime/ted_tools/virtuoso/skill/schematic/generator/netlist.il +0 -289
  887. package/runtime/ted_tools/virtuoso/skill/schematic/generator/sch.il +0 -169
  888. package/runtime/ted_tools/virtuoso/skill/schematic/generator/sch_example.json +0 -56
  889. package/runtime/ted_tools/virtuoso/skill/schematic/index.il +0 -9
  890. package/runtime/ted_tools/virtuoso/skill/schematic/schematic.il +0 -575
  891. package/runtime/ted_tools/virtuoso/skill/schematic/ui/cc_config.il +0 -48
  892. package/runtime/ted_tools/virtuoso/skill/schematic/ui/circuit_type.il +0 -95
  893. package/runtime/ted_tools/virtuoso/skill/schematic/ui/context.il +0 -44
  894. package/runtime/ted_tools/virtuoso/skill/schematic/ui/run_and_update.il +0 -169
  895. package/runtime/ted_tools/virtuoso/skill/schematic/ui/shell/propmpt_generate_code.sh +0 -112
  896. package/runtime/ted_tools/virtuoso/skill/schematic/ui/shell/propmpt_optiomize.sh +0 -133
  897. package/runtime/ted_tools/virtuoso/skill/server/index.il +0 -157
  898. package/runtime/ted_tools/virtuoso/skill/simulation/index.il +0 -1
  899. package/runtime/ted_tools/virtuoso/skill/simulation/measure.il +0 -103
  900. package/runtime/ted_tools/virtuoso/skill/types/schematic.ts +0 -104
  901. package/runtime/ted_tools/virtuoso/skill/utils.il +0 -255
  902. package/runtime/ted_tools/virtuoso/skill/waveform/wave_y_utils.il +0 -67
  903. package/runtime/ted_utils/.devops/ci/config.yaml +0 -3
  904. package/runtime/ted_utils/.devops/ci/lvl_10/hh130.yaml +0 -3
  905. package/runtime/ted_utils/.devops/ci/lvl_10/hh180.yaml +0 -3
  906. package/runtime/ted_utils/.devops/ci/lvl_10/hl55.yaml +0 -3
  907. package/runtime/ted_utils/.devops/ci/lvl_10/ics55.yaml +0 -3
  908. package/runtime/ted_utils/.devops/ci/lvl_10/pku3.yaml +0 -3
  909. package/runtime/ted_utils/.devops/ci/lvl_10/s180bcd.yaml +0 -3
  910. package/runtime/ted_utils/.devops/ci/lvl_10/s180bcdepi.yaml +0 -3
  911. package/runtime/ted_utils/.devops/ci/lvl_10/s180mm.yaml +0 -3
  912. package/runtime/ted_utils/.devops/ci/lvl_10/s180mse.yaml +0 -3
  913. package/runtime/ted_utils/.devops/ci/lvl_10/s28.yaml +0 -3
  914. package/runtime/ted_utils/.devops/ci/lvl_10/s40.yaml +0 -3
  915. package/runtime/ted_utils/.devops/ci/lvl_10/s55.yaml +0 -3
  916. package/runtime/ted_utils/.devops/ci/lvl_10/s55_6m.yaml +0 -3
  917. package/runtime/ted_utils/.devops/ci/lvl_10/s65.yaml +0 -3
  918. package/runtime/ted_utils/.devops/ci/lvl_10/s90bcd.yaml +0 -3
  919. package/runtime/ted_utils/.devops/ci/lvl_10/sharp180.yaml +0 -3
  920. package/runtime/ted_utils/.devops/ci/lvl_10/t12.yaml +0 -3
  921. package/runtime/ted_utils/.devops/ci/lvl_10/t180.yaml +0 -3
  922. package/runtime/ted_utils/.devops/ci/lvl_10/t22.yaml +0 -3
  923. package/runtime/ted_utils/.devops/ci/lvl_10/t28.yaml +0 -3
  924. package/runtime/ted_utils/.devops/ci/lvl_10/t40.yaml +0 -3
  925. package/runtime/ted_utils/.devops/ci/lvl_10/t65.yaml +0 -3
  926. package/runtime/ted_utils/.devops/ci/lvl_30/hh130.yaml +0 -3
  927. package/runtime/ted_utils/.devops/ci/lvl_30/hh180.yaml +0 -3
  928. package/runtime/ted_utils/.devops/ci/lvl_30/hl55.yaml +0 -3
  929. package/runtime/ted_utils/.devops/ci/lvl_30/ics55.yaml +0 -3
  930. package/runtime/ted_utils/.devops/ci/lvl_30/pku3.yaml +0 -3
  931. package/runtime/ted_utils/.devops/ci/lvl_30/s180bcd.yaml +0 -3
  932. package/runtime/ted_utils/.devops/ci/lvl_30/s180bcdepi.yaml +0 -3
  933. package/runtime/ted_utils/.devops/ci/lvl_30/s180mm.yaml +0 -3
  934. package/runtime/ted_utils/.devops/ci/lvl_30/s180mse.yaml +0 -3
  935. package/runtime/ted_utils/.devops/ci/lvl_30/s28.yaml +0 -3
  936. package/runtime/ted_utils/.devops/ci/lvl_30/s40.yaml +0 -3
  937. package/runtime/ted_utils/.devops/ci/lvl_30/s55.yaml +0 -3
  938. package/runtime/ted_utils/.devops/ci/lvl_30/s55_6m.yaml +0 -3
  939. package/runtime/ted_utils/.devops/ci/lvl_30/s65.yaml +0 -3
  940. package/runtime/ted_utils/.devops/ci/lvl_30/s90bcd.yaml +0 -3
  941. package/runtime/ted_utils/.devops/ci/lvl_30/sharp180.yaml +0 -3
  942. package/runtime/ted_utils/.devops/ci/lvl_30/t12.yaml +0 -3
  943. package/runtime/ted_utils/.devops/ci/lvl_30/t180.yaml +0 -3
  944. package/runtime/ted_utils/.devops/ci/lvl_30/t22.yaml +0 -3
  945. package/runtime/ted_utils/.devops/ci/lvl_30/t28.yaml +0 -3
  946. package/runtime/ted_utils/.devops/ci/lvl_30/t40.yaml +0 -3
  947. package/runtime/ted_utils/.devops/ci/lvl_30/t65.yaml +0 -3
  948. package/runtime/ted_utils/.devops/ci/lvl_5/hh130.yaml +0 -3
  949. package/runtime/ted_utils/.devops/ci/lvl_5/hh180.yaml +0 -3
  950. package/runtime/ted_utils/.devops/ci/lvl_5/hl55.yaml +0 -3
  951. package/runtime/ted_utils/.devops/ci/lvl_5/ics55.yaml +0 -3
  952. package/runtime/ted_utils/.devops/ci/lvl_5/pku3.yaml +0 -3
  953. package/runtime/ted_utils/.devops/ci/lvl_5/s180bcd.yaml +0 -3
  954. package/runtime/ted_utils/.devops/ci/lvl_5/s180bcdepi.yaml +0 -3
  955. package/runtime/ted_utils/.devops/ci/lvl_5/s180mm.yaml +0 -3
  956. package/runtime/ted_utils/.devops/ci/lvl_5/s180mse.yaml +0 -3
  957. package/runtime/ted_utils/.devops/ci/lvl_5/s28.yaml +0 -3
  958. package/runtime/ted_utils/.devops/ci/lvl_5/s40.yaml +0 -3
  959. package/runtime/ted_utils/.devops/ci/lvl_5/s55.yaml +0 -3
  960. package/runtime/ted_utils/.devops/ci/lvl_5/s55_6m.yaml +0 -3
  961. package/runtime/ted_utils/.devops/ci/lvl_5/s65.yaml +0 -3
  962. package/runtime/ted_utils/.devops/ci/lvl_5/s90bcd.yaml +0 -3
  963. package/runtime/ted_utils/.devops/ci/lvl_5/sharp180.yaml +0 -3
  964. package/runtime/ted_utils/.devops/ci/lvl_5/t12.yaml +0 -3
  965. package/runtime/ted_utils/.devops/ci/lvl_5/t180.yaml +0 -3
  966. package/runtime/ted_utils/.devops/ci/lvl_5/t22.yaml +0 -3
  967. package/runtime/ted_utils/.devops/ci/lvl_5/t28.yaml +0 -3
  968. package/runtime/ted_utils/.devops/ci/lvl_5/t40.yaml +0 -3
  969. package/runtime/ted_utils/.devops/ci/lvl_5/t65.yaml +0 -3
  970. package/runtime/ted_utils/__init__.py +0 -336
  971. package/runtime/ted_utils/conftest.py +0 -32
  972. package/runtime/ted_utils/requirements.txt +0 -4
  973. package/runtime/ted_utils/sh/__init__.py +0 -0
  974. package/runtime/ted_utils/sh/python/__init__.py +0 -0
  975. package/runtime/ted_utils/sh/python/check_format.py +0 -15
  976. package/runtime/ted_utils/sh/python/check_pkg.py +0 -250
  977. package/runtime/ted_utils/sh/rust/__init__.py +0 -0
  978. package/runtime/ted_utils/sh/rust/check_rustfmt.py +0 -26
  979. package/runtime/ted_utils/sh/so/__init__.py +0 -0
  980. package/runtime/ted_utils/sh/so/annotations.py +0 -99
  981. package/runtime/ted_utils/sh/so/compile.py +0 -688
  982. package/runtime/ted_utils/sh/so/generate_interface.py +0 -916
  983. package/runtime/ted_utils/sh/so/open_init.py +0 -56
  984. package/runtime/ted_utils/src/__init__.py +0 -42
  985. package/runtime/ted_utils/src/assemble_config.py +0 -134
  986. package/runtime/ted_utils/src/cexpr.py +0 -112
  987. package/runtime/ted_utils/src/cn.py +0 -9
  988. package/runtime/ted_utils/src/common.py +0 -2199
  989. package/runtime/ted_utils/src/config/__init__.py +0 -1
  990. package/runtime/ted_utils/src/config/citest/__init__.py +0 -0
  991. package/runtime/ted_utils/src/config/citest/conftest_config.py +0 -127
  992. package/runtime/ted_utils/src/config/core/__init__.py +0 -23
  993. package/runtime/ted_utils/src/config/core/basic.py +0 -468
  994. package/runtime/ted_utils/src/config/core/extra.py +0 -46
  995. package/runtime/ted_utils/src/config/default_userconfig.yaml +0 -9
  996. package/runtime/ted_utils/src/config/userconfig.py +0 -212
  997. package/runtime/ted_utils/src/configs/__init__.py +0 -0
  998. package/runtime/ted_utils/src/configs/ted/__init__.py +0 -44
  999. package/runtime/ted_utils/src/configs/ted/ssh.py +0 -23
  1000. package/runtime/ted_utils/src/const.py +0 -250
  1001. package/runtime/ted_utils/src/dsl/chipletData.py +0 -159
  1002. package/runtime/ted_utils/src/envs.py +0 -17
  1003. package/runtime/ted_utils/src/fastapi/__init__.py +0 -0
  1004. package/runtime/ted_utils/src/fastapi/model.py +0 -59
  1005. package/runtime/ted_utils/src/file_parser.py +0 -25
  1006. package/runtime/ted_utils/src/fmt.py +0 -33
  1007. package/runtime/ted_utils/src/gds/__init__.py +0 -1
  1008. package/runtime/ted_utils/src/gds/mod.py +0 -302
  1009. package/runtime/ted_utils/src/gds/tgds.py +0 -122
  1010. package/runtime/ted_utils/src/index_queue.py +0 -22
  1011. package/runtime/ted_utils/src/interval.py +0 -126
  1012. package/runtime/ted_utils/src/iter_util.py +0 -10
  1013. package/runtime/ted_utils/src/layer.py +0 -47
  1014. package/runtime/ted_utils/src/md/__init__.py +0 -0
  1015. package/runtime/ted_utils/src/md/add_captions_post.py +0 -463
  1016. package/runtime/ted_utils/src/md/add_cover_and_toc.py +0 -199
  1017. package/runtime/ted_utils/src/md/add_cover_toc_xml.py +0 -299
  1018. package/runtime/ted_utils/src/md/add_cover_toc_xml_v2.py +0 -457
  1019. package/runtime/ted_utils/src/md/add_table_borders_post.py +0 -195
  1020. package/runtime/ted_utils/src/md/config_loader.py +0 -174
  1021. package/runtime/ted_utils/src/md/markdown.py +0 -339
  1022. package/runtime/ted_utils/src/md/md2doc_config.yaml +0 -69
  1023. package/runtime/ted_utils/src/md/refresh_docx_fields.py +0 -59
  1024. package/runtime/ted_utils/src/md/template/lo_update_fields_macro.template +0 -27
  1025. package/runtime/ted_utils/src/md/template/styles.yaml +0 -7
  1026. package/runtime/ted_utils/src/md/update_fields_libreoffice.py +0 -78
  1027. package/runtime/ted_utils/src/md/update_toc.py +0 -241
  1028. package/runtime/ted_utils/src/network.py +0 -15
  1029. package/runtime/ted_utils/src/num_util.py +0 -302
  1030. package/runtime/ted_utils/src/observer.py +0 -150
  1031. package/runtime/ted_utils/src/parser/__init__.py +0 -0
  1032. package/runtime/ted_utils/src/parser/common.py +0 -241
  1033. package/runtime/ted_utils/src/parser/def_parser.py +0 -280
  1034. package/runtime/ted_utils/src/parser/drf_const.py +0 -45
  1035. package/runtime/ted_utils/src/parser/drf_parser.py +0 -326
  1036. package/runtime/ted_utils/src/parser/pdk_layermap_parser.py +0 -81
  1037. package/runtime/ted_utils/src/parser/pdk_techfile_parser.py +0 -130
  1038. package/runtime/ted_utils/src/parser/reader.py +0 -104
  1039. package/runtime/ted_utils/src/parser/route/__init__.py +0 -0
  1040. package/runtime/ted_utils/src/parser/route/setting.py +0 -40
  1041. package/runtime/ted_utils/src/parser/sim_yaml.py +0 -87
  1042. package/runtime/ted_utils/src/parser/string.py +0 -44
  1043. package/runtime/ted_utils/src/parser/tools/__init__.py +0 -0
  1044. package/runtime/ted_utils/src/parser/tools/controller/__init__.py +0 -0
  1045. package/runtime/ted_utils/src/parser/tools/controller/config/__init__.py +0 -0
  1046. package/runtime/ted_utils/src/parser/tools/controller/config/config.py +0 -10
  1047. package/runtime/ted_utils/src/parser/virtuoso/__init__.py +0 -0
  1048. package/runtime/ted_utils/src/parser/virtuoso/cds_lib.py +0 -98
  1049. package/runtime/ted_utils/src/path.py +0 -25
  1050. package/runtime/ted_utils/src/process_pool_runner.py +0 -527
  1051. package/runtime/ted_utils/src/python/__init__.py +0 -5
  1052. package/runtime/ted_utils/src/python/cover/__init__.py +0 -0
  1053. package/runtime/ted_utils/src/python/cover/refactor_log.py +0 -157
  1054. package/runtime/ted_utils/src/python/file.py +0 -19
  1055. package/runtime/ted_utils/src/python/fmt.py +0 -220
  1056. package/runtime/ted_utils/src/python/pytest/__init__.py +0 -0
  1057. package/runtime/ted_utils/src/python/pytest/const.py +0 -5
  1058. package/runtime/ted_utils/src/python/pytest/extract_testcase.py +0 -121
  1059. package/runtime/ted_utils/src/python/pytest/isolated.py +0 -50
  1060. package/runtime/ted_utils/src/python/syntax_tree.py +0 -135
  1061. package/runtime/ted_utils/src/python/tdict.py +0 -8
  1062. package/runtime/ted_utils/src/python/ted_inspect.py +0 -89
  1063. package/runtime/ted_utils/src/python/tlist.py +0 -35
  1064. package/runtime/ted_utils/src/python/tstr.py +0 -9
  1065. package/runtime/ted_utils/src/repr/__init__.py +0 -2
  1066. package/runtime/ted_utils/src/repr/report.py +0 -10
  1067. package/runtime/ted_utils/src/repr/repr.py +0 -19
  1068. package/runtime/ted_utils/src/result.py +0 -58
  1069. package/runtime/ted_utils/src/rust/__init__.py +0 -0
  1070. package/runtime/ted_utils/src/rust/fmt.py +0 -122
  1071. package/runtime/ted_utils/src/server/__init__.py +0 -0
  1072. package/runtime/ted_utils/src/server/info.py +0 -10
  1073. package/runtime/ted_utils/src/server/shell.py +0 -63
  1074. package/runtime/ted_utils/src/shell.py +0 -44
  1075. package/runtime/ted_utils/src/skill/__init__.py +0 -4
  1076. package/runtime/ted_utils/src/skill/enhance/__init__.py +0 -1
  1077. package/runtime/ted_utils/src/skill/enhance/func.py +0 -126
  1078. package/runtime/ted_utils/src/skill/wrap/__init__.py +0 -0
  1079. package/runtime/ted_utils/src/skill/wrap/basic.py +0 -46
  1080. package/runtime/ted_utils/src/skill/wrap/dict.py +0 -37
  1081. package/runtime/ted_utils/src/skill/wrap/expr.py +0 -32
  1082. package/runtime/ted_utils/src/skill/wrap/index.py +0 -8
  1083. package/runtime/ted_utils/src/skill/wrap/list.py +0 -21
  1084. package/runtime/ted_utils/src/skill/wrap/middle.py +0 -35
  1085. package/runtime/ted_utils/src/types.py +0 -51
  1086. package/runtime/typing_extensions-4.15.0.dist-info/METADATA +0 -72
  1087. package/runtime/typing_extensions-4.15.0.dist-info/RECORD +0 -5
  1088. package/runtime/typing_extensions-4.15.0.dist-info/WHEEL +0 -4
  1089. package/runtime/typing_extensions-4.15.0.dist-info/licenses/LICENSE +0 -279
  1090. package/runtime/typing_extensions.py +0 -4317
  1091. package/runtime/yaml/__init__.py +0 -390
  1092. package/runtime/yaml/_yaml.cpython-39-x86_64-linux-gnu.so +0 -0
  1093. package/runtime/yaml/composer.py +0 -139
  1094. package/runtime/yaml/constructor.py +0 -748
  1095. package/runtime/yaml/cyaml.py +0 -101
  1096. package/runtime/yaml/dumper.py +0 -62
  1097. package/runtime/yaml/emitter.py +0 -1137
  1098. package/runtime/yaml/error.py +0 -75
  1099. package/runtime/yaml/events.py +0 -86
  1100. package/runtime/yaml/loader.py +0 -63
  1101. package/runtime/yaml/nodes.py +0 -49
  1102. package/runtime/yaml/parser.py +0 -589
  1103. package/runtime/yaml/reader.py +0 -185
  1104. package/runtime/yaml/representer.py +0 -389
  1105. package/runtime/yaml/resolver.py +0 -227
  1106. package/runtime/yaml/scanner.py +0 -1435
  1107. package/runtime/yaml/serializer.py +0 -111
  1108. package/runtime/yaml/tokens.py +0 -104
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # DPV2 pdkadapt 开发候选
2
+
3
+ 这是独立 Python distribution,当前提供安装器、REST 控制面和客户端候选。源码与 DPV1 同仓,运行时不导入旧 cli/MCP;没有改动 DPV1 的入口、服务器或客户端。
4
+
5
+ **尚未具备完整适配能力。** 真实工作站绑定、独立 SDK/EDA worker 和四平台实际验收仍属 I01618。不要手工写 admitted=true 绕过未完成的 worker 准入。未配置准入时,业务提交明确返回 503;健康检查通过不表示可执行适配。
6
+
7
+ 旧动作面映射(2026-11-29):`--action check` 映射 `POST /checks`,只查询不启动适配;复用判定只来自本账号自身的 DPV2 交付历史(服务器端跨主体复用保持关闭)。REUSED 必须携带与交付 tree 摘要一致的 `--use-client-revision`;有交付未确认时返回 `CLIENT_CONFIRMATION_REQUIRED`,无历史时按旧语义返回 `ADAPTATION_REQUIRED`/`REUSE_DISABLED`,check 恒以退出码 0 结束。`source-preview/confirm/install/publish` 保留旧参数校验(--vendor-dir、64 位 --options-hash/--revision、--token、--confirmed、--reason、--alias/--run-id),映射 `POST /sources/{previews,confirmations,installations,publications}`;DPV2 未提供公共工艺源复用通道,服务端以结构化 `SOURCE_REUSE_UNAVAILABLE` 应答(退出码 1),不伪造成功也不静默忽略。
8
+
9
+ ## 本地安装与验证
10
+
11
+ 本 distribution 仅使用 Python 3.9+ 标准库。测试从产品仓执行:
12
+
13
+ ```sh
14
+ PYTHONDONTWRITEBYTECODE=1 TED_EDA_MODE=LOCAL python3 -m pytest tests/test_dpv2*.py -q
15
+ ```
16
+
17
+ `tools/verify_dpv2_npm.py --help` 提供可复现的 Linux npm 实际安装验收:必须指定新 prefix、协调仓、已有 Verdaccio、固定 Python 组件归档及其 SHA512、实际 vlink 二进制。只对新建的 loopback registry publish/view/download,保留收据并停止本轮服务;不向公共 npm 发布。测试实际私有解释器、runtime cli.sh、vlink REST、热启动与离线校验缓存,不包含 EDA 或 Win/Mac 实机验证。
18
+
19
+ 服务使用 `python -m tedbrain_plugin_runtime.service --config FILE`,须由该 distribution 的环境运行。配置包括独立 state_root/public_root/releases_root 和账号验证 endpoint/appid/secret_file。账号 secret 必须是私有文件,不能使用现有 DPV1 token;服务签发独立 audience=dpv2 的 token。生产 TLS/资源配方和部署命令尚未交付。开发测试使用临时 loopback 和模拟账号验证源。
20
+
21
+ ## 安装和任务合同
22
+
23
+ - 私有目录固定为 `~/.ted/tedbrain/plugins/pdkadapt/`;meta.json 原子选择不可变 components,不修改全局 vlink/Python。
24
+ - 每次本地入口获取线上薄脚本、版本 API;仅下载变化组件,核验 npm SHA512/SHA256 及完整文件清单;归档只来自 npm。
25
+ - 网络暂不可用可使用完整校验缓存;认证拒绝、重定向、TLS 校验或内容校验失败不降级。首次无缓存失败。
26
+ - sh/PowerShell 生成器要求全部四目标的固定 bootstrap 元数据。当前没有四平台生产产物,因此未生成可公开的线上安装入口。
27
+ - 变更请求通过私有 vlink REST 传输,先记录 request ID,未知结果查询原请求,不自动重放。
28
+ - SQLite 保留 job/attempt/幂等键/事件。运行中版本固定;恢复必须确认旧执行停止、检查点兼容且原工艺范围一致。
29
+ - guide.md 和 tedbrain skill 是发布候选文档,不代表其目标公网 URL 已可用。
30
+
31
+ 公开 runtime、服务器独立部署和真实 full 适配必须另取实际证据。发布授权边界以项目规则为准。
32
+
package/entry.py ADDED
@@ -0,0 +1,16 @@
1
+ """Verified bootstrap entry, invoked with the bundled Python and -B."""
2
+ # Windows embedded Python and isolated interpreters omit the script directory.
3
+ # Load only this verified, immutable plugin package beside the entry point.
4
+ import sys
5
+ from pathlib import Path
6
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
7
+ from tedbrain_plugin_runtime.launcher import main
8
+ from tedbrain_plugin_runtime.installer import ContractError, Unavailable
9
+ import json
10
+ import sys
11
+
12
+ try:
13
+ raise SystemExit(main())
14
+ except (ContractError, Unavailable) as error:
15
+ print(json.dumps({'ok': False, 'error': {'code': 'PLUGIN_INSTALL_FAILED', 'message': str(error)}}), file=sys.stderr)
16
+ raise SystemExit(2)
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@tedbrain/vlink", "private": false, "version": "0.0.0-dpv2.pdkadapt.executor-linux-x64.0.1.149-dpv2.1.r2"}
1
+ {"name": "@tedbrain/vlink", "private": false, "version": "0.0.0-dpv2.pdkadapt.plugin.0.1.2.r2"}
package/plugin_cli.py ADDED
@@ -0,0 +1,14 @@
1
+ # Windows embedded Python and isolated interpreters omit the script directory.
2
+ # Load only this verified, immutable plugin package beside the entry point.
3
+ import sys
4
+ from pathlib import Path
5
+ sys.path.insert(0, str(Path(__file__).resolve().parent))
6
+ from tedbrain_plugin_runtime.cli import main
7
+ from tedbrain_plugin_runtime.installer import ContractError
8
+ import json
9
+ import sys
10
+ try:
11
+ raise SystemExit(main())
12
+ except ContractError as error:
13
+ print(json.dumps({'ok':False,'error':{'code':'PLUGIN_REQUEST_FAILED','message':str(error)}}),file=sys.stderr)
14
+ raise SystemExit(2)
@@ -0,0 +1,4 @@
1
+ $ErrorActionPreference = 'Stop'
2
+ if (-not $env:DPV2_PYTHON) { throw 'Run the installed plugin entry first' }
3
+ & $env:DPV2_PYTHON -E -s -B (Join-Path (Split-Path -Parent $PSScriptRoot) 'plugin_cli.py') @args
4
+ exit $LASTEXITCODE
package/runtime/cli.sh ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+ set -eu
3
+ : "${DPV2_PYTHON:?Run the installed plugin entry first}"
4
+ DPV2_CODE=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
5
+ exec "$DPV2_PYTHON" -E -s -B "$DPV2_CODE/plugin_cli.py" "$@"
@@ -0,0 +1,2 @@
1
+ """DPV2 plugin runtime. Independent from the DPV1 MCP distribution."""
2
+ __version__ = "0.1.0"
@@ -0,0 +1,39 @@
1
+ """Bind production admission to the tested server and client release inputs."""
2
+ import hashlib
3
+ from pathlib import Path
4
+ import re
5
+ from .installer import ContractError,loads
6
+
7
+
8
+ def read(path,expected):
9
+ path=Path(path)
10
+ if (not re.fullmatch('[a-f0-9]{64}',expected or '') or path.is_symlink()
11
+ or not path.is_file() or path.stat().st_size>16*1024*1024):
12
+ raise ContractError('release evidence unavailable')
13
+ raw=path.read_bytes()
14
+ if hashlib.sha256(raw).hexdigest()!=expected:raise ContractError('release evidence changed')
15
+ return loads(raw)
16
+
17
+
18
+ def validate(config,release):
19
+ if release.get('schema')!=1 or release.get('kind')!='dpv2-worker-admission':
20
+ raise ContractError('fixed worker admission required')
21
+ root=Path(config['state_root'])/'admissions'
22
+ receipt=read(root/(release['receipt_sha256']+'.json'),release['receipt_sha256'])
23
+ build=read(Path(config['server_release_root'])/'server-build.json',receipt['server_build_sha256'])
24
+ if (build.get('kind')!='dpv2-pdkadapt-server' or build.get('version')!=release['version']
25
+ or build.get('candidate')!=receipt.get('candidate')):
26
+ raise ContractError('admission server identity mismatch')
27
+ selection=Path(config['releases_root'])/'linux-x64.json'
28
+ read(selection,receipt['selection_sha256'])
29
+ job=receipt.get('job',{});result=job.get('result') or {};delivery=result.get('delivery') or {}
30
+ if (receipt.get('eda_executed') is not True or receipt.get('server_build_verified') is not True
31
+ or job.get('plugin_version')!=release['version'] or job.get('job_status')!='SUCCEEDED'
32
+ or job.get('remote_stop_confirmed') is not True or result.get('ok') is not True
33
+ or result.get('job_status')!='COMPLETED' or delivery.get('status')!='INSTALLED'
34
+ or type(delivery.get('files')) is not int or delivery['files']<=0
35
+ or not re.fullmatch('[a-f0-9]{64}',delivery.get('tree_sha256',''))):
36
+ raise ContractError('real fixed-release EDA acceptance required')
37
+ if release.get('checkpoint_schemas')!=['dpv2-pdk-session-1']:
38
+ raise ContractError('unsupported admitted checkpoint schema')
39
+ return release
@@ -0,0 +1,108 @@
1
+ """Render small public installers from exact, reviewed npm bootstrap identities."""
2
+ from .installer import ContractError, TARGETS, SHA, endpoint, relative
3
+ from .launcher import shell_quote, ps_quote
4
+
5
+
6
+ def validate(releases):
7
+ if set(releases) != TARGETS:
8
+ raise ContractError('all four client targets required for public bootstrap')
9
+ for target,item in releases.items():
10
+ if set(item) != {'url','sha256','python','entry'} or not SHA.fullmatch(item['sha256']):
11
+ raise ContractError('fixed bootstrap artifact required')
12
+ endpoint(item['url'],registry=True)
13
+ relative(item['python']);relative(item['entry'])
14
+ return releases
15
+
16
+
17
+ def render_sh(releases, origin='https://tedbrain.com'):
18
+ validate(releases); endpoint(origin)
19
+ cases=[]
20
+ for target in ('linux-x64','darwin-x64','darwin-arm64'):
21
+ item=releases[target]
22
+ cases.append(' '+target+') '+ '; '.join(key+'='+shell_quote(value) for key,value in
23
+ [('DPV2_URL',item['url']),('DPV2_SHA',item['sha256']),('DPV2_PY',item['python']),('DPV2_ENTRY',item['entry'])])+' ;;')
24
+ script='''#!/bin/sh
25
+ set -eu
26
+ umask 077
27
+ DPV2_ROOT="$HOME/.ted/tedbrain/plugins/pdkadapt"
28
+ case "$(uname -s):$(uname -m)" in
29
+ Linux:x86_64) DPV2_TARGET=linux-x64 ;;
30
+ Darwin:x86_64) DPV2_TARGET=darwin-x64 ;;
31
+ Darwin:arm64) DPV2_TARGET=darwin-arm64 ;;
32
+ *) printf '%s\\n' 'Unsupported platform. Windows: use cli.ps1.' >&2; exit 2 ;;
33
+ esac
34
+ case "$DPV2_TARGET" in
35
+ @CASES@
36
+ esac
37
+ DPV2_BOOT="$DPV2_ROOT/bootstrap/$DPV2_SHA"
38
+ if [ ! -f "$DPV2_BOOT/package/$DPV2_PY" ]; then
39
+ mkdir -p "$DPV2_ROOT/bootstrap"
40
+ DPV2_TEMP=$(mktemp -d "$DPV2_ROOT/bootstrap/.download-XXXXXX")
41
+ trap 'rm -rf "$DPV2_TEMP"' EXIT HUP INT TERM
42
+ curl --proto '=https' --proto-redir '=https' -fsS --connect-timeout 10 --max-time 600 "$DPV2_URL" -o "$DPV2_TEMP/bootstrap.tgz"
43
+ if command -v sha256sum >/dev/null 2>&1; then
44
+ DPV2_ACTUAL=$(sha256sum "$DPV2_TEMP/bootstrap.tgz" | cut -d ' ' -f 1)
45
+ else
46
+ DPV2_ACTUAL=$(shasum -a 256 "$DPV2_TEMP/bootstrap.tgz" | cut -d ' ' -f 1)
47
+ fi
48
+ [ "$DPV2_ACTUAL" = "$DPV2_SHA" ] || { printf '%s\\n' 'Bootstrap integrity mismatch' >&2; exit 2; }
49
+ mkdir "$DPV2_TEMP/extracted"
50
+ tar -xzf "$DPV2_TEMP/bootstrap.tgz" -C "$DPV2_TEMP/extracted"
51
+ # Immutable destinations; the install lock serializes concurrent cold starts.
52
+ DPV2_LOCK="$DPV2_ROOT/bootstrap/.install-lock"
53
+ DPV2_TRIES=0
54
+ until mkdir "$DPV2_LOCK" 2>/dev/null; do
55
+ DPV2_TRIES=$((DPV2_TRIES+1))
56
+ [ "$DPV2_TRIES" -lt 60 ] || { printf '%s\\n' 'Bootstrap installer busy' >&2; exit 2; }
57
+ sleep 1
58
+ done
59
+ trap 'rmdir "$DPV2_LOCK" 2>/dev/null || :; rm -rf "$DPV2_TEMP"' EXIT HUP INT TERM
60
+ if [ ! -d "$DPV2_BOOT" ]; then mv "$DPV2_TEMP/extracted" "$DPV2_BOOT"; fi
61
+ rmdir "$DPV2_LOCK"
62
+ fi
63
+ "$DPV2_BOOT/package/$DPV2_PY" -E -s -B "$DPV2_BOOT/package/$DPV2_ENTRY" --root "$DPV2_ROOT" --origin @ORIGIN@ -- "$@"
64
+ '''
65
+ return script.replace('@CASES@','\n'.join(cases)).replace('@ORIGIN@',shell_quote(origin))
66
+
67
+
68
+ def render_ps(releases, origin='https://tedbrain.com'):
69
+ validate(releases); endpoint(origin)
70
+ item=releases['win32-x64']
71
+ script='''$ErrorActionPreference = 'Stop'
72
+ if (-not [Environment]::Is64BitOperatingSystem -or $env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { throw 'Windows x64 required' }
73
+ $Root = Join-Path $HOME '.ted/tedbrain/plugins/pdkadapt'
74
+ $Sha = @SHA@
75
+ $Boot = Join-Path (Join-Path $Root 'bootstrap') $Sha
76
+ $Python = Join-Path $Boot @PYTHON@
77
+ if (-not (Test-Path -LiteralPath $Python -PathType Leaf)) {
78
+ $Parent = Join-Path $Root 'bootstrap'
79
+ New-Item -ItemType Directory -Path $Parent -Force | Out-Null
80
+ $Temp = Join-Path $Parent ('.download-' + [Guid]::NewGuid().ToString('N'))
81
+ New-Item -ItemType Directory -Path $Temp | Out-Null
82
+ $Lock = $null
83
+ try {
84
+ $Archive = Join-Path $Temp 'bootstrap.tgz'
85
+ Invoke-WebRequest -UseBasicParsing -MaximumRedirection 0 -Uri @URL@ -OutFile $Archive -TimeoutSec 600
86
+ if ((Get-FileHash -Algorithm SHA256 -LiteralPath $Archive).Hash.ToLowerInvariant() -ne $Sha) { throw 'Bootstrap integrity mismatch' }
87
+ $Extract = Join-Path $Temp 'extracted'
88
+ New-Item -ItemType Directory -Path $Extract | Out-Null
89
+ & tar.exe -xzf $Archive -C $Extract
90
+ if ($LASTEXITCODE -ne 0) { throw 'Bootstrap extraction failed' }
91
+ $LockPath = Join-Path $Parent '.install.lock'
92
+ for ($i = 0; $i -lt 60; $i++) {
93
+ try { $Lock = [IO.File]::Open($LockPath, [IO.FileMode]::OpenOrCreate, [IO.FileAccess]::ReadWrite, [IO.FileShare]::None); break }
94
+ catch [IO.IOException] { Start-Sleep -Seconds 1 }
95
+ }
96
+ if ($null -eq $Lock) { throw 'Bootstrap installer busy' }
97
+ if (-not (Test-Path -LiteralPath $Boot)) { Move-Item -LiteralPath $Extract -Destination $Boot }
98
+ } finally {
99
+ if ($null -ne $Lock) { $Lock.Dispose() }
100
+ Remove-Item -LiteralPath $Temp -Recurse -Force -ErrorAction SilentlyContinue
101
+ }
102
+ }
103
+ & $Python -E -s -B (Join-Path $Boot @ENTRY@) --root $Root --origin @ORIGIN@ -- @args
104
+ exit $LASTEXITCODE
105
+ '''
106
+ values={'SHA':item['sha256'],'URL':item['url'],'PYTHON':'package/'+item['python'],'ENTRY':'package/'+item['entry'],'ORIGIN':origin}
107
+ for key,value in values.items():script=script.replace('@'+key+'@',ps_quote(value))
108
+ return script
@@ -0,0 +1,211 @@
1
+ """AI-facing plugin CLI; HTTP is executed by the private new vlink."""
2
+ import argparse
3
+ import getpass
4
+ import json
5
+ import os
6
+ from pathlib import Path
7
+ import re
8
+ import secrets
9
+ import subprocess
10
+ import sys
11
+ import tempfile
12
+ import time
13
+ import unicodedata
14
+ from .installer import ContractError, atomic, canonical, loads
15
+ from .service import PREFIX
16
+
17
+
18
+ def transport(method,path,body=None,key=None,authenticated=True):
19
+ root=Path(os.environ.get('DPV2_PLUGIN_ROOT',str(Path.home()/'.ted/tedbrain/plugins/pdkadapt')))
20
+ root.mkdir(parents=True,exist_ok=True,mode=0o700)
21
+ vlink=os.environ.get('DPV2_VLINK')
22
+ if not vlink or not Path(vlink).is_absolute() or not Path(vlink).is_file():
23
+ raise ContractError('private vlink missing; run the plugin entry first')
24
+ origin=os.environ.get('DPV2_ORIGIN','https://tedbrain.com')
25
+ token=root/'credentials/token'
26
+ if authenticated and not token.is_file():raise ContractError('login required: cli.sh login')
27
+ config={'schema':1,'origin':origin,'path':path,'method':method,'timeout_ms':30000,
28
+ 'token_file':str(token) if authenticated else None,'idempotency_key':key}
29
+ # Loopback is only enabled by an explicitly selected isolated test origin.
30
+ if os.environ.get('DPV2_TEST_LOOPBACK')=='1':config['allow_loopback_http']=True
31
+ with tempfile.TemporaryDirectory(prefix='.http-',dir=root) as temporary:
32
+ request=Path(temporary)/'request.json';request.write_bytes(canonical(config));request.chmod(0o600)
33
+ result=subprocess.run([vlink,'rest','request',str(request)],input=canonical(body) if body is not None else b'',capture_output=True)
34
+ try:envelope=loads(result.stdout)
35
+ except ContractError:
36
+ raise ContractError('private vlink REST command failed before a valid response') from None
37
+ return result.returncode,envelope
38
+
39
+
40
+ def show(code,envelope):
41
+ if envelope.get('outcome')=='response':
42
+ value=envelope.get('body')
43
+ else:value=envelope
44
+ print(json.dumps(value,ensure_ascii=False),flush=True)
45
+ return code
46
+
47
+
48
+ SOURCE_ROUTES={'source-preview':'previews','source-confirm':'confirmations',
49
+ 'source-install':'installations','source-publish':'publications'}
50
+
51
+
52
+ def post_request(root,key,path,body):
53
+ """Persist every authenticated POST intent before invoking private vlink."""
54
+ journal=root/'requests';journal.mkdir(parents=True,exist_ok=True,mode=0o700)
55
+ record=journal/(key+'.json');intent={'path':path,'body':body,'request_id':key}
56
+ # Exclusive creation makes a reused key with different input fail before send.
57
+ try:
58
+ descriptor=os.open(record,os.O_WRONLY|os.O_CREAT|os.O_EXCL,0o600)
59
+ except FileExistsError:
60
+ if loads(record.read_bytes())!=intent:raise ContractError('request ID belongs to different input')
61
+ else:
62
+ with os.fdopen(descriptor,'wb') as stream:
63
+ stream.write(canonical(intent));stream.flush();os.fsync(stream.fileno())
64
+ code,envelope=transport('POST',path,body,key)
65
+ print(json.dumps({'request_id':key,'request_record':str(record)},ensure_ascii=False),file=sys.stderr)
66
+ return code,envelope
67
+
68
+
69
+ def source_action(args,root,key):
70
+ """Old source-reuse face: DPV1 parameter validation, then the DPV2 REST answer.
71
+
72
+ The shared source channel stays closed on DPV2 (server-side reuse
73
+ boundary), so the service returns the defined structured status; the CLI
74
+ keeps DPV1's exit code for it instead of silently succeeding.
75
+ """
76
+ vendor=args.vendor_dir
77
+ if not vendor:raise ContractError('必须提供厂商 PDK 的绝对目录 --vendor-dir。')
78
+ if args.action=='source-publish':
79
+ reason=args.reason.strip()
80
+ if not 1<=len(reason)<=500 or any(unicodedata.category(char)=='Cc' for char in reason):
81
+ raise ContractError('请提供 1–500 字符的明确任务理由,说明本次源归档上传的用途,不得包含控制字符。')
82
+ if args.action in ('source-confirm','source-install'):
83
+ if not re.fullmatch('[0-9a-f]{64}',args.options_hash) or not re.fullmatch('[0-9a-f]{64}',args.revision) or not args.token:
84
+ raise ContractError('source-confirm/source-install 需要预览回执中的 --options-hash、--revision 和 --token。')
85
+ if not args.confirmed:
86
+ raise ContractError('公共工艺复用必须显式确认:请附加 --confirmed 表示用户已确认该配置。')
87
+ if args.action=='source-install' and (not args.alias or not args.run_id):
88
+ raise ContractError('source-install 需要交付目标 --alias 和本次复用作业的 --run-id。')
89
+ code,envelope=post_request(root,key,PREFIX+'/sources/'+SOURCE_ROUTES[args.action],
90
+ {'action':args.action,'vendor_dir':vendor})
91
+ if not code:
92
+ value=envelope.get('body') if envelope.get('outcome')=='response' else envelope
93
+ if isinstance(value,dict) and value.get('ok') is False:return show(1,envelope)
94
+ return show(code,envelope)
95
+
96
+
97
+ def main(argv=None):
98
+ argv=list(sys.argv[1:] if argv is None else argv)
99
+ root=Path(os.environ.get('DPV2_PLUGIN_ROOT',str(Path.home()/'.ted/tedbrain/plugins/pdkadapt')))
100
+ if argv and argv[0]=='workstation':
101
+ p=argparse.ArgumentParser(description='Enroll a private Linux EDA executor; existing vlink stays untouched')
102
+ p.add_argument('workstation');p.add_argument('operation',choices=['connect','list','prepare'])
103
+ p.add_argument('--label',default='Linux EDA')
104
+ p.add_argument('--ssh',help='Explicit Linux EDA host alias or user@host; uses existing trusted OpenSSH configuration')
105
+ args=p.parse_args(argv)
106
+ if args.operation=='prepare':
107
+ payload=loads(sys.stdin.buffer.read(8193))
108
+ if not isinstance(payload,dict) or set(payload)!={'proxy','challenge'}:
109
+ raise ContractError('workstation preparation requires an enrollment challenge')
110
+ from .executor import start,prove
111
+ executor=start(root,payload['proxy'])
112
+ prove(executor['home'],payload['challenge'],executor['release_sha256'])
113
+ print(json.dumps({key:executor[key] for key in ('connection_id','release_sha256')}),flush=True)
114
+ return 0
115
+ if args.operation=='list':return show(*transport('GET',PREFIX+'/workstations'))
116
+ code,envelope=transport('GET',PREFIX+'/capabilities')
117
+ if code:return show(code,envelope)
118
+ proxy=envelope['body'].get('workstation_proxy')
119
+ if not proxy:raise ContractError('DPV2 workstation endpoint is not available')
120
+ from .executor import start,prove
121
+ intent_path=root/'enrollment-request.json'
122
+ intent=loads(intent_path.read_bytes()) if intent_path.is_file() else {}
123
+ if intent.get('label')!=args.label or intent.get('ssh')!=args.ssh or time.time()-intent.get('created',0)>600:
124
+ intent={'label':args.label,'ssh':args.ssh,'key':secrets.token_hex(16),'created':time.time()}
125
+ atomic(intent_path,canonical(intent))
126
+ code,envelope=transport('POST',PREFIX+'/workstation-challenges',{'label':args.label},intent['key'])
127
+ if code:return show(code,envelope)
128
+ challenge=envelope['body'];proof=None
129
+ if args.ssh:
130
+ from .ssh_workstation import prepare
131
+ executor=prepare(args.ssh,proxy,challenge)
132
+ else:
133
+ executor=start(root,proxy)
134
+ proof=prove(executor['home'],challenge,executor['release_sha256'])
135
+ code,envelope=transport('POST',PREFIX+'/workstation-challenges/'+challenge['challenge_id']+'/confirmation',
136
+ {'connection_id':executor['connection_id']},challenge['challenge_id'])
137
+ if not code:
138
+ atomic(root/'workstation.json',canonical(envelope['body']))
139
+ if proof is not None:proof.unlink()
140
+ intent_path.unlink()
141
+ return show(code,envelope)
142
+ if argv and argv[0]=='login':
143
+ p=argparse.ArgumentParser();p.add_argument('login');p.add_argument('--stdin',action='store_true');a=p.parse_args(argv)
144
+ credential=sys.stdin.readline().strip() if a.stdin else getpass.getpass('TedBrain invitation code: ')
145
+ code,envelope=transport('POST','/api/dpv2/auth/sessions',{'credential':credential},secrets.token_hex(16),authenticated=False)
146
+ if code:return show(code,envelope)
147
+ body=envelope['body'];token=body.get('access_token')
148
+ if body.get('audience')!='dpv2' or not isinstance(token,str) or not token.startswith('dpv2_'):
149
+ raise ContractError('login returned an invalid DPV2 credential')
150
+ directory=root/'credentials';directory.mkdir(parents=True,exist_ok=True,mode=0o700)
151
+ atomic(directory/'token',token.encode())
152
+ print(json.dumps({'ok':True,'subject':body['subject'],'expires_at':body['expires_at']}));return 0
153
+ p=argparse.ArgumentParser(description='DPV2 pdkadapt plugin: asynchronous REST jobs')
154
+ p.add_argument('--version',action='version',version='pdkadapt plugin '+os.environ.get('DPV2_RELEASE_VERSION','0.1.0'))
155
+ p.add_argument('--action',choices=['check','start','status','resume','cancel','logs','source-preview','source-confirm','source-install','source-publish'],default='start')
156
+ p.add_argument('--mode',default='')
157
+ for name in ['vendor-dir','alias','foundry','arch','cells','run-id','from-step','layer-decision','layer-rule-decision','source-package','use-client-revision','options-hash','revision','token','reason']:
158
+ p.add_argument('--'+name,default='')
159
+ p.add_argument('--confirmed',action='store_true')
160
+ station=loads((root/'workstation.json').read_bytes()).get('workstation_id','') if (root/'workstation.json').is_file() else ''
161
+ p.add_argument('--workstation-id',default=station)
162
+ p.add_argument('--request-id',default='')
163
+ p.add_argument('--after',type=int,default=0)
164
+ p.add_argument('--wait',action='store_true')
165
+ args=p.parse_args(argv or ['--help'])
166
+ if args.action=='status':
167
+ path=PREFIX+('/jobs/'+args.run_id if args.run_id else '/requests/'+args.request_id)
168
+ if not args.run_id and not args.request_id:p.error('status requires --run-id or --request-id')
169
+ return show(*transport('GET',path))
170
+ if args.action=='logs':
171
+ if not args.run_id:p.error('logs requires --run-id')
172
+ return show(*transport('GET',PREFIX+'/jobs/'+args.run_id+'/events?after='+str(args.after)))
173
+ key=args.request_id or secrets.token_hex(16)
174
+ if not __import__('re').fullmatch(r'[A-Za-z0-9._-]{1,128}',key):p.error('invalid --request-id')
175
+ fields=['action','mode','vendor_dir','alias','foundry','arch','cells','run_id','from_step','layer_decision','layer_rule_decision','source_package','use_client_revision']
176
+ request={name:getattr(args,name) for name in fields}
177
+ if args.action=='check':
178
+ # Old check face: pure reuse/prerequisite query; DPV1 answers it with
179
+ # exit 0 regardless of the reuse verdict, and so does DPV2.
180
+ code,envelope=post_request(root,key,PREFIX+'/checks',request)
181
+ return show(0 if not code else code,envelope)
182
+ if args.action in SOURCE_ROUTES:return source_action(args,root,key)
183
+ if args.action=='start':
184
+ if not args.workstation_id:p.error('start requires --workstation-id')
185
+ path=PREFIX+'/jobs';body={'workstation_id':args.workstation_id,'request':request}
186
+ elif args.action=='resume':
187
+ if not args.run_id:p.error('resume requires --run-id')
188
+ path=PREFIX+'/jobs/'+args.run_id+'/resumptions';body={'request':request}
189
+ elif args.action=='cancel':
190
+ if not args.run_id:p.error('cancel requires --run-id')
191
+ path=PREFIX+'/jobs/'+args.run_id+'/cancellations';body={}
192
+ else:
193
+ raise ContractError('unsupported action for this request path')
194
+ code,envelope=post_request(root,key,path,body)
195
+ if code or not args.wait:return show(code,envelope)
196
+ body=envelope['body'];job=body['job_id']
197
+ print(json.dumps(body,ensure_ascii=False),flush=True)
198
+ while True:
199
+ time.sleep(2)
200
+ code,envelope=transport('GET',PREFIX+'/jobs/'+job)
201
+ if code:return show(code,envelope)
202
+ state=envelope['body']['job_status']
203
+ if state in ('SUCCEEDED','FAILED','CANCELLED','UNKNOWN','WAITING_INPUT'):
204
+ return show(0 if state=='SUCCEEDED' else 1,envelope)
205
+
206
+
207
+ if __name__=='__main__':
208
+ try:raise SystemExit(main())
209
+ except ContractError as error:
210
+ print(json.dumps({'ok':False,'error':{'code':'PLUGIN_REQUEST_FAILED','message':str(error)}}),file=sys.stderr)
211
+ raise SystemExit(2)
@@ -0,0 +1,102 @@
1
+ """Run one fixed DPV2 attempt through the existing PDK adaptation engine."""
2
+ from dataclasses import asdict
3
+ import json
4
+ import os
5
+ from pathlib import Path
6
+ import sys
7
+ import traceback
8
+ from .installer import atomic,canonical,loads,ContractError
9
+ from .jobs import Jobs
10
+
11
+
12
+ class Cancelled(Exception):
13
+ pass
14
+
15
+
16
+ def run(path):
17
+ path=Path(path);spec=loads(path.read_bytes());row=spec['job'];config=spec['config'];station=spec['workstation']
18
+ jobs=Jobs(Path(config['state_root'])/'jobs.sqlite3')
19
+ request=loads(row['request']);directory=path.parent
20
+ # Only server-pinned inventories can bind the runtime. Remote home and
21
+ # connection come from the authenticated enrollment, never job parameters.
22
+ executor=config['executor_contracts'][station['release_sha256']]
23
+ contract=dict(executor,schema=1,kind='dpv2-npm-executor',home=station['home'],
24
+ release_sha256=station['release_sha256'],connection_id=station['connection_id'],
25
+ serve_url=config['transport']['serve_url'])
26
+ atomic(directory/'runtime-contract.json',canonical(contract))
27
+ os.environ.update(TED_CLIENT_RUNTIME_CONTRACT=str(directory/'runtime-contract.json'),
28
+ PDK_ADAPTER_CELLS=request.get('cells',''),TED_PDK_ADAPTER_MODE='v2',
29
+ TED_PDK_LAYER_DECISION=request.get('layer_decision',''),
30
+ TED_PDK_LAYER_RULE_DECISION=request.get('layer_rule_decision',''),
31
+ TED_EDA_MODE='3')
32
+ os.environ.pop('TED_MOS_FIELDS_MODE',None)
33
+ from ted_eda_tools.protocol.pdk_session import PdkAdaptSession
34
+ from ted_eda_tools.protocol.pdk_progress import PdkWorkflow
35
+ from ted_pdk_adapter.src.layer_mapping_validation import LayerMappingDecisionRequired
36
+
37
+ def cancelled():
38
+ current=jobs.get(row['subject'],row['id'])
39
+ if current['attempt']!=row['attempt']:raise ContractError('attempt ownership changed')
40
+ if current['job_status']=='CANCELLING':raise Cancelled()
41
+
42
+ class Session(PdkAdaptSession):
43
+ def send_tool(self,*args,**kwargs):
44
+ cancelled()
45
+ result=super().send_tool(*args,**kwargs)
46
+ cancelled()
47
+ return result
48
+ def publish_server_result(self):
49
+ # The engine's verified tree already lives in the DPV2 run store.
50
+ # Final installation is verified by deliver_final_pdk itself.
51
+ return None
52
+
53
+ session=Session(str(Path(config['state_root'])/'engine'),'dpv2',station['connection_id'],
54
+ row['id'],request['alias'],client_key=row['subject'],machine_key=row['workstation'],mode='full')
55
+ pointer=directory.parent/'session-location.json'
56
+ if request['action']=='resume':
57
+ previous=Path(loads(pointer.read_bytes())['path'])
58
+ root=(Path(config['state_root'])/'engine').resolve()
59
+ if root not in previous.resolve().parents or previous.is_symlink():raise ContractError('checkpoint path escaped run store')
60
+ document=loads((previous/'session.json').read_bytes())
61
+ for key,value in [('tenant','dpv2'),('run_id',row['id']),('alias',request['alias']),('client_key',row['subject']),('machine_key',row['workstation'])]:
62
+ if document.get(key)!=value:raise ContractError('checkpoint identity mismatch')
63
+ session.rebase(previous)
64
+ identity={key:getattr(session.state,key) for key in ('tenant','client_id','run_id','alias','client_key','machine_key')}
65
+ session.state=session._restore_state(identity,document)
66
+ if request.get('from_step'):
67
+ session.prepare_attempt(int(request['from_step']),{'working_dir':'attempts/'+row['attempt'],'attempt_id':row['attempt']})
68
+ else:
69
+ if session.root.exists():raise ContractError('new job already has an engine workspace')
70
+ session.root.mkdir(parents=True,mode=0o700)
71
+ session._save_state()
72
+ atomic(pointer,canonical({'path':str(session.root),'attempt':row['attempt']}))
73
+ session.workflow=PdkWorkflow(session,request)
74
+ os.environ['TED_PDK_PROGRESS_FILE']=str(session.root/'extraction-progress.json')
75
+ def progress(state):
76
+ jobs.append(row['id'],row['attempt'],{'event':'checkpoint','step':state.step,'phase':state.status})
77
+ cancelled()
78
+ result=None;stopped=False
79
+ try:
80
+ cancelled()
81
+ with session.workflow.reporting():
82
+ session.run_automatic(config['transport']['serve_url'],request['vendor_dir'],request['foundry'],request['arch'],progress=progress,
83
+ source_package=request.get('source_package',''))
84
+ result={'ok':True,'job_status':'COMPLETED','delivery':session.state.decision,'step':session.state.step}
85
+ stopped=True
86
+ except Cancelled:
87
+ # Cooperative cancellation occurs only between completed synchronous
88
+ # operations. A network failure never reaches this branch.
89
+ result={'ok':False,'job_status':'CANCELLED'};stopped=True
90
+ except LayerMappingDecisionRequired as error:
91
+ result={'ok':False,'job_status':'WAITING_FOR_DECISION','pending_decision':error.decision};stopped=True
92
+ except Exception as error:
93
+ traceback.print_exc()
94
+ stopped=getattr(error,'remote_terminal_ack',None) in ('stopped','prevented','completed')
95
+ result={'ok':False,'job_status':'FAILED','error':{'code':'ADAPTATION_FAILED',
96
+ 'message':'Adaptation failed; inspect this attempt events and reconcile remote execution'}}
97
+ session.workflow.finish(result['job_status'])
98
+ atomic(directory/'result.json',canonical({'job_id':row['id'],'attempt':row['attempt'],'version':row['version'],
99
+ 'result':result,'remote_stop_confirmed':stopped,'checkpoint_schema':'dpv2-pdk-session-1'}))
100
+ return 0 if result.get('ok') else 1
101
+
102
+ if __name__=='__main__':raise SystemExit(run(sys.argv[1]))