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

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