@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.
- package/README.md +43 -0
- package/entry.py +16 -0
- package/package.json +1 -1
- package/plugin_cli.py +14 -0
- package/runtime/cli.ps1 +4 -0
- package/runtime/cli.sh +5 -0
- package/tedbrain_plugin_runtime/__init__.py +2 -0
- package/tedbrain_plugin_runtime/admission.py +39 -0
- package/tedbrain_plugin_runtime/auth.py +92 -0
- package/tedbrain_plugin_runtime/bootstrap.py +110 -0
- package/tedbrain_plugin_runtime/cli.py +238 -0
- package/tedbrain_plugin_runtime/engine.py +126 -0
- package/tedbrain_plugin_runtime/executor.py +115 -0
- package/tedbrain_plugin_runtime/handoff.py +188 -0
- package/tedbrain_plugin_runtime/installer.py +400 -0
- package/tedbrain_plugin_runtime/jobs.py +291 -0
- package/tedbrain_plugin_runtime/launcher.py +122 -0
- package/tedbrain_plugin_runtime/ops.py +310 -0
- package/tedbrain_plugin_runtime/publication.py +53 -0
- package/tedbrain_plugin_runtime/request_contract.py +226 -0
- package/tedbrain_plugin_runtime/rungc.py +176 -0
- package/tedbrain_plugin_runtime/service.py +317 -0
- package/tedbrain_plugin_runtime/sessions.py +96 -0
- package/tedbrain_plugin_runtime/ssh_workstation.py +40 -0
- package/tedbrain_plugin_runtime/supervisor.py +160 -0
- package/tedbrain_plugin_runtime/worker.py +342 -0
- package/tedbrain_plugin_runtime/workstations.py +170 -0
- package/bin/vlink-executor +0 -0
- package/runtime/PyYAML-6.0.dist-info/LICENSE +0 -20
- package/runtime/PyYAML-6.0.dist-info/METADATA +0 -46
- package/runtime/PyYAML-6.0.dist-info/RECORD +0 -24
- package/runtime/PyYAML-6.0.dist-info/WHEEL +0 -8
- package/runtime/PyYAML-6.0.dist-info/top_level.txt +0 -2
- package/runtime/_yaml/__init__.py +0 -33
- package/runtime/annotated_types/__init__.py +0 -432
- package/runtime/annotated_types/py.typed +0 -0
- package/runtime/annotated_types-0.7.0.dist-info/METADATA +0 -295
- package/runtime/annotated_types-0.7.0.dist-info/RECORD +0 -7
- package/runtime/annotated_types-0.7.0.dist-info/WHEEL +0 -4
- package/runtime/annotated_types-0.7.0.dist-info/licenses/LICENSE +0 -21
- package/runtime/env/bashrc +0 -11
- package/runtime/gdstk/__init__.py +0 -2
- package/runtime/gdstk/_gdstk.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/gdstk/_gdstk.pyi +0 -988
- package/runtime/gdstk/py.typed +0 -0
- package/runtime/gdstk-0.9.53.dist-info/METADATA +0 -178
- package/runtime/gdstk-0.9.53.dist-info/RECORD +0 -9
- package/runtime/gdstk-0.9.53.dist-info/WHEEL +0 -6
- package/runtime/gdstk-0.9.53.dist-info/licenses/LICENSE +0 -23
- package/runtime/gdstk.libs/libqhull_r-e028a698.so.8.0.2 +0 -0
- package/runtime/numpy/__config__.py +0 -162
- package/runtime/numpy/__init__.cython-30.pxd +0 -1050
- package/runtime/numpy/__init__.pxd +0 -1015
- package/runtime/numpy/__init__.py +0 -461
- package/runtime/numpy/__init__.pyi +0 -4422
- package/runtime/numpy/_core/__init__.py +0 -4
- package/runtime/numpy/_core/__init__.pyi +0 -0
- package/runtime/numpy/_core/_dtype.py +0 -6
- package/runtime/numpy/_core/_dtype_ctypes.py +0 -6
- package/runtime/numpy/_core/_internal.py +0 -6
- package/runtime/numpy/_core/_multiarray_umath.py +0 -6
- package/runtime/numpy/_core/multiarray.py +0 -6
- package/runtime/numpy/_core/umath.py +0 -6
- package/runtime/numpy/_distributor_init.py +0 -15
- package/runtime/numpy/_globals.py +0 -95
- package/runtime/numpy/_pyinstaller/__init__.py +0 -0
- package/runtime/numpy/_pyinstaller/hook-numpy.py +0 -37
- package/runtime/numpy/_pyinstaller/pyinstaller-smoke.py +0 -32
- package/runtime/numpy/_pytesttester.py +0 -207
- package/runtime/numpy/_pytesttester.pyi +0 -18
- package/runtime/numpy/_typing/__init__.py +0 -221
- package/runtime/numpy/_typing/_add_docstring.py +0 -152
- package/runtime/numpy/_typing/_array_like.py +0 -167
- package/runtime/numpy/_typing/_callable.pyi +0 -338
- package/runtime/numpy/_typing/_char_codes.py +0 -111
- package/runtime/numpy/_typing/_dtype_like.py +0 -246
- package/runtime/numpy/_typing/_extended_precision.py +0 -27
- package/runtime/numpy/_typing/_nbit.py +0 -16
- package/runtime/numpy/_typing/_nested_sequence.py +0 -86
- package/runtime/numpy/_typing/_scalars.py +0 -30
- package/runtime/numpy/_typing/_shape.py +0 -7
- package/runtime/numpy/_typing/_ufunc.pyi +0 -445
- package/runtime/numpy/_typing/setup.py +0 -10
- package/runtime/numpy/_utils/__init__.py +0 -29
- package/runtime/numpy/_utils/_convertions.py +0 -18
- package/runtime/numpy/_utils/_inspect.py +0 -191
- package/runtime/numpy/_utils/_pep440.py +0 -487
- package/runtime/numpy/array_api/__init__.py +0 -387
- package/runtime/numpy/array_api/_array_object.py +0 -1133
- package/runtime/numpy/array_api/_constants.py +0 -7
- package/runtime/numpy/array_api/_creation_functions.py +0 -351
- package/runtime/numpy/array_api/_data_type_functions.py +0 -197
- package/runtime/numpy/array_api/_dtypes.py +0 -180
- package/runtime/numpy/array_api/_elementwise_functions.py +0 -765
- package/runtime/numpy/array_api/_indexing_functions.py +0 -20
- package/runtime/numpy/array_api/_manipulation_functions.py +0 -112
- package/runtime/numpy/array_api/_searching_functions.py +0 -51
- package/runtime/numpy/array_api/_set_functions.py +0 -106
- package/runtime/numpy/array_api/_sorting_functions.py +0 -54
- package/runtime/numpy/array_api/_statistical_functions.py +0 -122
- package/runtime/numpy/array_api/_typing.py +0 -76
- package/runtime/numpy/array_api/_utility_functions.py +0 -37
- package/runtime/numpy/array_api/linalg.py +0 -466
- package/runtime/numpy/array_api/setup.py +0 -12
- package/runtime/numpy/compat/__init__.py +0 -19
- package/runtime/numpy/compat/py3k.py +0 -145
- package/runtime/numpy/compat/setup.py +0 -10
- package/runtime/numpy/conftest.py +0 -138
- package/runtime/numpy/core/__init__.py +0 -180
- package/runtime/numpy/core/__init__.pyi +0 -2
- package/runtime/numpy/core/_add_newdocs.py +0 -7080
- package/runtime/numpy/core/_add_newdocs_scalars.py +0 -372
- package/runtime/numpy/core/_asarray.py +0 -134
- package/runtime/numpy/core/_asarray.pyi +0 -42
- package/runtime/numpy/core/_dtype.py +0 -369
- package/runtime/numpy/core/_dtype_ctypes.py +0 -117
- package/runtime/numpy/core/_exceptions.py +0 -172
- package/runtime/numpy/core/_internal.py +0 -935
- package/runtime/numpy/core/_internal.pyi +0 -30
- package/runtime/numpy/core/_machar.py +0 -356
- package/runtime/numpy/core/_methods.py +0 -234
- package/runtime/numpy/core/_multiarray_tests.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_operand_flag_tests.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_rational_tests.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_simd.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_string_helpers.py +0 -100
- package/runtime/numpy/core/_struct_ufunc_tests.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/_type_aliases.py +0 -245
- package/runtime/numpy/core/_type_aliases.pyi +0 -13
- package/runtime/numpy/core/_ufunc_config.py +0 -466
- package/runtime/numpy/core/_ufunc_config.pyi +0 -37
- package/runtime/numpy/core/_umath_tests.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/core/arrayprint.py +0 -1725
- package/runtime/numpy/core/arrayprint.pyi +0 -142
- package/runtime/numpy/core/cversions.py +0 -13
- package/runtime/numpy/core/defchararray.py +0 -2914
- package/runtime/numpy/core/defchararray.pyi +0 -421
- package/runtime/numpy/core/einsumfunc.py +0 -1443
- package/runtime/numpy/core/einsumfunc.pyi +0 -187
- package/runtime/numpy/core/fromnumeric.py +0 -3920
- package/runtime/numpy/core/fromnumeric.pyi +0 -1060
- package/runtime/numpy/core/function_base.py +0 -551
- package/runtime/numpy/core/function_base.pyi +0 -187
- package/runtime/numpy/core/getlimits.py +0 -735
- package/runtime/numpy/core/getlimits.pyi +0 -6
- package/runtime/numpy/core/include/numpy/__multiarray_api.c +0 -314
- package/runtime/numpy/core/include/numpy/__multiarray_api.h +0 -1566
- package/runtime/numpy/core/include/numpy/__ufunc_api.c +0 -50
- package/runtime/numpy/core/include/numpy/__ufunc_api.h +0 -314
- package/runtime/numpy/core/include/numpy/_dtype_api.h +0 -408
- package/runtime/numpy/core/include/numpy/_neighborhood_iterator_imp.h +0 -90
- package/runtime/numpy/core/include/numpy/_numpyconfig.h +0 -32
- package/runtime/numpy/core/include/numpy/arrayobject.h +0 -12
- package/runtime/numpy/core/include/numpy/arrayscalars.h +0 -186
- package/runtime/numpy/core/include/numpy/experimental_dtype_api.h +0 -365
- package/runtime/numpy/core/include/numpy/halffloat.h +0 -70
- package/runtime/numpy/core/include/numpy/ndarrayobject.h +0 -251
- package/runtime/numpy/core/include/numpy/ndarraytypes.h +0 -1945
- package/runtime/numpy/core/include/numpy/noprefix.h +0 -211
- package/runtime/numpy/core/include/numpy/npy_1_7_deprecated_api.h +0 -124
- package/runtime/numpy/core/include/numpy/npy_3kcompat.h +0 -595
- package/runtime/numpy/core/include/numpy/npy_common.h +0 -1086
- package/runtime/numpy/core/include/numpy/npy_cpu.h +0 -129
- package/runtime/numpy/core/include/numpy/npy_endian.h +0 -77
- package/runtime/numpy/core/include/numpy/npy_interrupt.h +0 -56
- package/runtime/numpy/core/include/numpy/npy_math.h +0 -563
- package/runtime/numpy/core/include/numpy/npy_no_deprecated_api.h +0 -20
- package/runtime/numpy/core/include/numpy/npy_os.h +0 -42
- package/runtime/numpy/core/include/numpy/numpyconfig.h +0 -138
- package/runtime/numpy/core/include/numpy/old_defines.h +0 -187
- package/runtime/numpy/core/include/numpy/random/LICENSE.txt +0 -21
- package/runtime/numpy/core/include/numpy/random/bitgen.h +0 -20
- package/runtime/numpy/core/include/numpy/random/distributions.h +0 -209
- package/runtime/numpy/core/include/numpy/random/libdivide.h +0 -2079
- package/runtime/numpy/core/include/numpy/ufuncobject.h +0 -359
- package/runtime/numpy/core/include/numpy/utils.h +0 -37
- package/runtime/numpy/core/lib/libnpymath.a +0 -0
- package/runtime/numpy/core/lib/npy-pkg-config/mlib.ini +0 -12
- package/runtime/numpy/core/lib/npy-pkg-config/npymath.ini +0 -20
- package/runtime/numpy/core/memmap.py +0 -338
- package/runtime/numpy/core/memmap.pyi +0 -3
- package/runtime/numpy/core/multiarray.py +0 -1715
- package/runtime/numpy/core/multiarray.pyi +0 -1022
- package/runtime/numpy/core/numeric.py +0 -2530
- package/runtime/numpy/core/numeric.pyi +0 -660
- package/runtime/numpy/core/numerictypes.py +0 -689
- package/runtime/numpy/core/numerictypes.pyi +0 -156
- package/runtime/numpy/core/overrides.py +0 -181
- package/runtime/numpy/core/records.py +0 -1099
- package/runtime/numpy/core/records.pyi +0 -234
- package/runtime/numpy/core/shape_base.py +0 -923
- package/runtime/numpy/core/shape_base.pyi +0 -123
- package/runtime/numpy/core/umath.py +0 -36
- package/runtime/numpy/core/umath_tests.py +0 -13
- package/runtime/numpy/ctypeslib.py +0 -545
- package/runtime/numpy/ctypeslib.pyi +0 -251
- package/runtime/numpy/distutils/__init__.py +0 -64
- package/runtime/numpy/distutils/__init__.pyi +0 -4
- package/runtime/numpy/distutils/_shell_utils.py +0 -91
- package/runtime/numpy/distutils/armccompiler.py +0 -26
- package/runtime/numpy/distutils/ccompiler.py +0 -826
- package/runtime/numpy/distutils/ccompiler_opt.py +0 -2668
- package/runtime/numpy/distutils/checks/cpu_asimd.c +0 -27
- package/runtime/numpy/distutils/checks/cpu_asimddp.c +0 -16
- package/runtime/numpy/distutils/checks/cpu_asimdfhm.c +0 -19
- package/runtime/numpy/distutils/checks/cpu_asimdhp.c +0 -15
- package/runtime/numpy/distutils/checks/cpu_avx.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_avx2.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_avx512_clx.c +0 -22
- package/runtime/numpy/distutils/checks/cpu_avx512_cnl.c +0 -24
- package/runtime/numpy/distutils/checks/cpu_avx512_icl.c +0 -26
- package/runtime/numpy/distutils/checks/cpu_avx512_knl.c +0 -25
- package/runtime/numpy/distutils/checks/cpu_avx512_knm.c +0 -30
- package/runtime/numpy/distutils/checks/cpu_avx512_skx.c +0 -26
- package/runtime/numpy/distutils/checks/cpu_avx512_spr.c +0 -26
- package/runtime/numpy/distutils/checks/cpu_avx512cd.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_avx512f.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_f16c.c +0 -22
- package/runtime/numpy/distutils/checks/cpu_fma3.c +0 -22
- package/runtime/numpy/distutils/checks/cpu_fma4.c +0 -13
- package/runtime/numpy/distutils/checks/cpu_neon.c +0 -19
- package/runtime/numpy/distutils/checks/cpu_neon_fp16.c +0 -11
- package/runtime/numpy/distutils/checks/cpu_neon_vfpv4.c +0 -21
- package/runtime/numpy/distutils/checks/cpu_popcnt.c +0 -32
- package/runtime/numpy/distutils/checks/cpu_sse.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_sse2.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_sse3.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_sse41.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_sse42.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_ssse3.c +0 -20
- package/runtime/numpy/distutils/checks/cpu_vsx.c +0 -21
- package/runtime/numpy/distutils/checks/cpu_vsx2.c +0 -13
- package/runtime/numpy/distutils/checks/cpu_vsx3.c +0 -13
- package/runtime/numpy/distutils/checks/cpu_vsx4.c +0 -14
- package/runtime/numpy/distutils/checks/cpu_vx.c +0 -16
- package/runtime/numpy/distutils/checks/cpu_vxe.c +0 -25
- package/runtime/numpy/distutils/checks/cpu_vxe2.c +0 -21
- package/runtime/numpy/distutils/checks/cpu_xop.c +0 -12
- package/runtime/numpy/distutils/checks/extra_avx512bw_mask.c +0 -18
- package/runtime/numpy/distutils/checks/extra_avx512dq_mask.c +0 -16
- package/runtime/numpy/distutils/checks/extra_avx512f_reduce.c +0 -41
- package/runtime/numpy/distutils/checks/extra_vsx3_half_double.c +0 -12
- package/runtime/numpy/distutils/checks/extra_vsx4_mma.c +0 -21
- package/runtime/numpy/distutils/checks/extra_vsx_asm.c +0 -36
- package/runtime/numpy/distutils/command/__init__.py +0 -41
- package/runtime/numpy/distutils/command/autodist.py +0 -148
- package/runtime/numpy/distutils/command/bdist_rpm.py +0 -22
- package/runtime/numpy/distutils/command/build.py +0 -62
- package/runtime/numpy/distutils/command/build_clib.py +0 -469
- package/runtime/numpy/distutils/command/build_ext.py +0 -752
- package/runtime/numpy/distutils/command/build_py.py +0 -31
- package/runtime/numpy/distutils/command/build_scripts.py +0 -49
- package/runtime/numpy/distutils/command/build_src.py +0 -773
- package/runtime/numpy/distutils/command/config.py +0 -516
- package/runtime/numpy/distutils/command/config_compiler.py +0 -126
- package/runtime/numpy/distutils/command/develop.py +0 -15
- package/runtime/numpy/distutils/command/egg_info.py +0 -25
- package/runtime/numpy/distutils/command/install.py +0 -79
- package/runtime/numpy/distutils/command/install_clib.py +0 -40
- package/runtime/numpy/distutils/command/install_data.py +0 -24
- package/runtime/numpy/distutils/command/install_headers.py +0 -25
- package/runtime/numpy/distutils/command/sdist.py +0 -27
- package/runtime/numpy/distutils/conv_template.py +0 -329
- package/runtime/numpy/distutils/core.py +0 -216
- package/runtime/numpy/distutils/cpuinfo.py +0 -683
- package/runtime/numpy/distutils/exec_command.py +0 -315
- package/runtime/numpy/distutils/extension.py +0 -107
- package/runtime/numpy/distutils/fcompiler/__init__.py +0 -1035
- package/runtime/numpy/distutils/fcompiler/absoft.py +0 -156
- package/runtime/numpy/distutils/fcompiler/arm.py +0 -71
- package/runtime/numpy/distutils/fcompiler/compaq.py +0 -120
- package/runtime/numpy/distutils/fcompiler/environment.py +0 -88
- package/runtime/numpy/distutils/fcompiler/fujitsu.py +0 -46
- package/runtime/numpy/distutils/fcompiler/g95.py +0 -42
- package/runtime/numpy/distutils/fcompiler/gnu.py +0 -555
- package/runtime/numpy/distutils/fcompiler/hpux.py +0 -41
- package/runtime/numpy/distutils/fcompiler/ibm.py +0 -97
- package/runtime/numpy/distutils/fcompiler/intel.py +0 -211
- package/runtime/numpy/distutils/fcompiler/lahey.py +0 -45
- package/runtime/numpy/distutils/fcompiler/mips.py +0 -54
- package/runtime/numpy/distutils/fcompiler/nag.py +0 -87
- package/runtime/numpy/distutils/fcompiler/none.py +0 -28
- package/runtime/numpy/distutils/fcompiler/nv.py +0 -53
- package/runtime/numpy/distutils/fcompiler/pathf95.py +0 -33
- package/runtime/numpy/distutils/fcompiler/pg.py +0 -128
- package/runtime/numpy/distutils/fcompiler/sun.py +0 -51
- package/runtime/numpy/distutils/fcompiler/vast.py +0 -52
- package/runtime/numpy/distutils/from_template.py +0 -261
- package/runtime/numpy/distutils/fujitsuccompiler.py +0 -28
- package/runtime/numpy/distutils/intelccompiler.py +0 -111
- package/runtime/numpy/distutils/lib2def.py +0 -116
- package/runtime/numpy/distutils/line_endings.py +0 -77
- package/runtime/numpy/distutils/log.py +0 -111
- package/runtime/numpy/distutils/mingw/gfortran_vs2003_hack.c +0 -6
- package/runtime/numpy/distutils/mingw32ccompiler.py +0 -591
- package/runtime/numpy/distutils/misc_util.py +0 -2493
- package/runtime/numpy/distutils/msvc9compiler.py +0 -63
- package/runtime/numpy/distutils/msvccompiler.py +0 -76
- package/runtime/numpy/distutils/npy_pkg_config.py +0 -437
- package/runtime/numpy/distutils/numpy_distribution.py +0 -17
- package/runtime/numpy/distutils/pathccompiler.py +0 -21
- package/runtime/numpy/distutils/setup.py +0 -17
- package/runtime/numpy/distutils/system_info.py +0 -3271
- package/runtime/numpy/distutils/unixccompiler.py +0 -141
- package/runtime/numpy/doc/__init__.py +0 -26
- package/runtime/numpy/doc/constants.py +0 -412
- package/runtime/numpy/doc/ufuncs.py +0 -137
- package/runtime/numpy/dtypes.py +0 -77
- package/runtime/numpy/dtypes.pyi +0 -43
- package/runtime/numpy/exceptions.py +0 -231
- package/runtime/numpy/exceptions.pyi +0 -18
- package/runtime/numpy/f2py/__init__.py +0 -194
- package/runtime/numpy/f2py/__init__.pyi +0 -42
- package/runtime/numpy/f2py/__main__.py +0 -5
- package/runtime/numpy/f2py/__version__.py +0 -1
- package/runtime/numpy/f2py/_backends/__init__.py +0 -9
- package/runtime/numpy/f2py/_backends/_backend.py +0 -46
- package/runtime/numpy/f2py/_backends/_distutils.py +0 -75
- package/runtime/numpy/f2py/_backends/_meson.py +0 -205
- package/runtime/numpy/f2py/_backends/meson.build.template +0 -54
- package/runtime/numpy/f2py/_isocbind.py +0 -62
- package/runtime/numpy/f2py/_src_pyf.py +0 -239
- package/runtime/numpy/f2py/auxfuncs.py +0 -988
- package/runtime/numpy/f2py/capi_maps.py +0 -819
- package/runtime/numpy/f2py/cb_rules.py +0 -644
- package/runtime/numpy/f2py/cfuncs.py +0 -1536
- package/runtime/numpy/f2py/common_rules.py +0 -146
- package/runtime/numpy/f2py/crackfortran.py +0 -3767
- package/runtime/numpy/f2py/diagnose.py +0 -154
- package/runtime/numpy/f2py/f2py2e.py +0 -768
- package/runtime/numpy/f2py/f90mod_rules.py +0 -264
- package/runtime/numpy/f2py/func2subr.py +0 -323
- package/runtime/numpy/f2py/rules.py +0 -1568
- package/runtime/numpy/f2py/setup.cfg +0 -3
- package/runtime/numpy/f2py/setup.py +0 -74
- package/runtime/numpy/f2py/src/fortranobject.c +0 -1423
- package/runtime/numpy/f2py/src/fortranobject.h +0 -173
- package/runtime/numpy/f2py/symbolic.py +0 -1517
- package/runtime/numpy/f2py/use_rules.py +0 -106
- package/runtime/numpy/fft/__init__.py +0 -212
- package/runtime/numpy/fft/__init__.pyi +0 -29
- package/runtime/numpy/fft/_pocketfft.py +0 -1424
- package/runtime/numpy/fft/_pocketfft.pyi +0 -108
- package/runtime/numpy/fft/_pocketfft_internal.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/fft/helper.py +0 -221
- package/runtime/numpy/fft/helper.pyi +0 -47
- package/runtime/numpy/lib/__init__.py +0 -92
- package/runtime/numpy/lib/__init__.pyi +0 -245
- package/runtime/numpy/lib/_datasource.py +0 -704
- package/runtime/numpy/lib/_iotools.py +0 -897
- package/runtime/numpy/lib/_version.py +0 -155
- package/runtime/numpy/lib/_version.pyi +0 -17
- package/runtime/numpy/lib/arraypad.py +0 -882
- package/runtime/numpy/lib/arraypad.pyi +0 -85
- package/runtime/numpy/lib/arraysetops.py +0 -981
- package/runtime/numpy/lib/arraysetops.pyi +0 -362
- package/runtime/numpy/lib/arrayterator.py +0 -219
- package/runtime/numpy/lib/arrayterator.pyi +0 -49
- package/runtime/numpy/lib/format.py +0 -976
- package/runtime/numpy/lib/format.pyi +0 -22
- package/runtime/numpy/lib/function_base.py +0 -5733
- package/runtime/numpy/lib/function_base.pyi +0 -697
- package/runtime/numpy/lib/histograms.py +0 -1072
- package/runtime/numpy/lib/histograms.pyi +0 -47
- package/runtime/numpy/lib/index_tricks.py +0 -1046
- package/runtime/numpy/lib/index_tricks.pyi +0 -162
- package/runtime/numpy/lib/mixins.py +0 -177
- package/runtime/numpy/lib/mixins.pyi +0 -74
- package/runtime/numpy/lib/nanfunctions.py +0 -1887
- package/runtime/numpy/lib/nanfunctions.pyi +0 -38
- package/runtime/numpy/lib/npyio.py +0 -2547
- package/runtime/numpy/lib/npyio.pyi +0 -330
- package/runtime/numpy/lib/polynomial.py +0 -1453
- package/runtime/numpy/lib/polynomial.pyi +0 -303
- package/runtime/numpy/lib/recfunctions.py +0 -1673
- package/runtime/numpy/lib/scimath.py +0 -625
- package/runtime/numpy/lib/scimath.pyi +0 -94
- package/runtime/numpy/lib/setup.py +0 -12
- package/runtime/numpy/lib/shape_base.py +0 -1274
- package/runtime/numpy/lib/shape_base.pyi +0 -220
- package/runtime/numpy/lib/stride_tricks.py +0 -547
- package/runtime/numpy/lib/stride_tricks.pyi +0 -80
- package/runtime/numpy/lib/twodim_base.py +0 -1183
- package/runtime/numpy/lib/twodim_base.pyi +0 -239
- package/runtime/numpy/lib/type_check.py +0 -735
- package/runtime/numpy/lib/type_check.pyi +0 -222
- package/runtime/numpy/lib/ufunclike.py +0 -210
- package/runtime/numpy/lib/ufunclike.pyi +0 -66
- package/runtime/numpy/lib/user_array.py +0 -286
- package/runtime/numpy/lib/utils.py +0 -1211
- package/runtime/numpy/lib/utils.pyi +0 -91
- package/runtime/numpy/linalg/__init__.py +0 -80
- package/runtime/numpy/linalg/__init__.pyi +0 -30
- package/runtime/numpy/linalg/_umath_linalg.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/linalg/lapack_lite.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/linalg/linalg.py +0 -2836
- package/runtime/numpy/linalg/linalg.pyi +0 -297
- package/runtime/numpy/ma/API_CHANGES.txt +0 -135
- package/runtime/numpy/ma/LICENSE +0 -24
- package/runtime/numpy/ma/README.rst +0 -236
- package/runtime/numpy/ma/__init__.py +0 -54
- package/runtime/numpy/ma/__init__.pyi +0 -234
- package/runtime/numpy/ma/core.py +0 -8565
- package/runtime/numpy/ma/core.pyi +0 -471
- package/runtime/numpy/ma/extras.py +0 -2133
- package/runtime/numpy/ma/extras.pyi +0 -85
- package/runtime/numpy/ma/mrecords.py +0 -783
- package/runtime/numpy/ma/mrecords.pyi +0 -90
- package/runtime/numpy/ma/setup.py +0 -12
- package/runtime/numpy/ma/testutils.py +0 -288
- package/runtime/numpy/ma/timer_comparison.py +0 -443
- package/runtime/numpy/matlib.py +0 -378
- package/runtime/numpy/matrixlib/__init__.py +0 -11
- package/runtime/numpy/matrixlib/__init__.pyi +0 -15
- package/runtime/numpy/matrixlib/defmatrix.py +0 -1114
- package/runtime/numpy/matrixlib/defmatrix.pyi +0 -16
- package/runtime/numpy/matrixlib/setup.py +0 -12
- package/runtime/numpy/polynomial/__init__.py +0 -185
- package/runtime/numpy/polynomial/__init__.pyi +0 -22
- package/runtime/numpy/polynomial/_polybase.py +0 -1206
- package/runtime/numpy/polynomial/_polybase.pyi +0 -71
- package/runtime/numpy/polynomial/chebyshev.py +0 -2082
- package/runtime/numpy/polynomial/chebyshev.pyi +0 -51
- package/runtime/numpy/polynomial/hermite.py +0 -1703
- package/runtime/numpy/polynomial/hermite.pyi +0 -46
- package/runtime/numpy/polynomial/hermite_e.py +0 -1695
- package/runtime/numpy/polynomial/hermite_e.pyi +0 -46
- package/runtime/numpy/polynomial/laguerre.py +0 -1651
- package/runtime/numpy/polynomial/laguerre.pyi +0 -46
- package/runtime/numpy/polynomial/legendre.py +0 -1664
- package/runtime/numpy/polynomial/legendre.pyi +0 -46
- package/runtime/numpy/polynomial/polynomial.py +0 -1542
- package/runtime/numpy/polynomial/polynomial.pyi +0 -41
- package/runtime/numpy/polynomial/polyutils.py +0 -789
- package/runtime/numpy/polynomial/polyutils.pyi +0 -11
- package/runtime/numpy/polynomial/setup.py +0 -10
- package/runtime/numpy/py.typed +0 -0
- package/runtime/numpy/random/LICENSE.md +0 -71
- package/runtime/numpy/random/__init__.pxd +0 -14
- package/runtime/numpy/random/__init__.py +0 -215
- package/runtime/numpy/random/__init__.pyi +0 -72
- package/runtime/numpy/random/_bounded_integers.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_bounded_integers.pxd +0 -29
- package/runtime/numpy/random/_common.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_common.pxd +0 -106
- package/runtime/numpy/random/_examples/cffi/extending.py +0 -40
- package/runtime/numpy/random/_examples/cffi/parse.py +0 -54
- package/runtime/numpy/random/_examples/cython/extending.pyx +0 -78
- package/runtime/numpy/random/_examples/cython/extending_distributions.pyx +0 -117
- package/runtime/numpy/random/_examples/cython/meson.build +0 -45
- package/runtime/numpy/random/_examples/numba/extending.py +0 -84
- package/runtime/numpy/random/_examples/numba/extending_distributions.py +0 -67
- package/runtime/numpy/random/_generator.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_generator.pyi +0 -681
- package/runtime/numpy/random/_mt19937.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_mt19937.pyi +0 -22
- package/runtime/numpy/random/_pcg64.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_pcg64.pyi +0 -42
- package/runtime/numpy/random/_philox.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_philox.pyi +0 -36
- package/runtime/numpy/random/_pickle.py +0 -80
- package/runtime/numpy/random/_sfc64.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/_sfc64.pyi +0 -28
- package/runtime/numpy/random/bit_generator.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/bit_generator.pxd +0 -35
- package/runtime/numpy/random/bit_generator.pyi +0 -112
- package/runtime/numpy/random/c_distributions.pxd +0 -120
- package/runtime/numpy/random/lib/libnpyrandom.a +0 -0
- package/runtime/numpy/random/mtrand.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/numpy/random/mtrand.pyi +0 -571
- package/runtime/numpy/testing/__init__.py +0 -22
- package/runtime/numpy/testing/__init__.pyi +0 -50
- package/runtime/numpy/testing/_private/__init__.py +0 -0
- package/runtime/numpy/testing/_private/extbuild.py +0 -248
- package/runtime/numpy/testing/_private/utils.py +0 -2509
- package/runtime/numpy/testing/_private/utils.pyi +0 -402
- package/runtime/numpy/testing/overrides.py +0 -83
- package/runtime/numpy/testing/print_coercion_tables.py +0 -200
- package/runtime/numpy/testing/setup.py +0 -21
- package/runtime/numpy/typing/__init__.py +0 -175
- package/runtime/numpy/typing/mypy_plugin.py +0 -196
- package/runtime/numpy/typing/setup.py +0 -11
- package/runtime/numpy/version.py +0 -8
- package/runtime/numpy-1.26.4.dist-info/LICENSE.txt +0 -971
- package/runtime/numpy-1.26.4.dist-info/METADATA +0 -1092
- package/runtime/numpy-1.26.4.dist-info/RECORD +0 -915
- package/runtime/numpy-1.26.4.dist-info/WHEEL +0 -6
- package/runtime/numpy-1.26.4.dist-info/entry_points.txt +0 -9
- package/runtime/numpy.libs/libgfortran-040039e1.so.5.0.0 +0 -0
- package/runtime/numpy.libs/libopenblas64_p-r0-0cf96a72.3.23.dev.so +0 -4
- package/runtime/numpy.libs/libquadmath-96973f99.so.0.0.0 +0 -0
- package/runtime/pdk_adadpter/__init__.py +0 -5
- package/runtime/pdk_adadpter/cli.py +0 -49
- package/runtime/pdk_adadpter/pdkgen.py +0 -269
- package/runtime/pydantic/__init__.py +0 -431
- package/runtime/pydantic/_internal/__init__.py +0 -0
- package/runtime/pydantic/_internal/_config.py +0 -345
- package/runtime/pydantic/_internal/_core_metadata.py +0 -91
- package/runtime/pydantic/_internal/_core_utils.py +0 -610
- package/runtime/pydantic/_internal/_dataclasses.py +0 -246
- package/runtime/pydantic/_internal/_decorators.py +0 -823
- package/runtime/pydantic/_internal/_decorators_v1.py +0 -174
- package/runtime/pydantic/_internal/_discriminated_union.py +0 -503
- package/runtime/pydantic/_internal/_docs_extraction.py +0 -108
- package/runtime/pydantic/_internal/_fields.py +0 -392
- package/runtime/pydantic/_internal/_forward_ref.py +0 -23
- package/runtime/pydantic/_internal/_generate_schema.py +0 -2522
- package/runtime/pydantic/_internal/_generics.py +0 -536
- package/runtime/pydantic/_internal/_git.py +0 -27
- package/runtime/pydantic/_internal/_import_utils.py +0 -20
- package/runtime/pydantic/_internal/_internal_dataclass.py +0 -7
- package/runtime/pydantic/_internal/_known_annotated_metadata.py +0 -392
- package/runtime/pydantic/_internal/_mock_val_ser.py +0 -235
- package/runtime/pydantic/_internal/_model_construction.py +0 -792
- package/runtime/pydantic/_internal/_namespace_utils.py +0 -284
- package/runtime/pydantic/_internal/_repr.py +0 -123
- package/runtime/pydantic/_internal/_schema_generation_shared.py +0 -126
- package/runtime/pydantic/_internal/_serializers.py +0 -51
- package/runtime/pydantic/_internal/_signature.py +0 -188
- package/runtime/pydantic/_internal/_std_types_schema.py +0 -404
- package/runtime/pydantic/_internal/_typing_extra.py +0 -893
- package/runtime/pydantic/_internal/_utils.py +0 -389
- package/runtime/pydantic/_internal/_validate_call.py +0 -115
- package/runtime/pydantic/_internal/_validators.py +0 -424
- package/runtime/pydantic/_migration.py +0 -308
- package/runtime/pydantic/alias_generators.py +0 -62
- package/runtime/pydantic/aliases.py +0 -132
- package/runtime/pydantic/annotated_handlers.py +0 -122
- package/runtime/pydantic/class_validators.py +0 -5
- package/runtime/pydantic/color.py +0 -604
- package/runtime/pydantic/config.py +0 -1049
- package/runtime/pydantic/dataclasses.py +0 -366
- package/runtime/pydantic/datetime_parse.py +0 -5
- package/runtime/pydantic/decorator.py +0 -5
- package/runtime/pydantic/deprecated/__init__.py +0 -0
- package/runtime/pydantic/deprecated/class_validators.py +0 -256
- package/runtime/pydantic/deprecated/config.py +0 -72
- package/runtime/pydantic/deprecated/copy_internals.py +0 -224
- package/runtime/pydantic/deprecated/decorator.py +0 -283
- package/runtime/pydantic/deprecated/json.py +0 -141
- package/runtime/pydantic/deprecated/parse.py +0 -80
- package/runtime/pydantic/deprecated/tools.py +0 -103
- package/runtime/pydantic/env_settings.py +0 -5
- package/runtime/pydantic/error_wrappers.py +0 -5
- package/runtime/pydantic/errors.py +0 -162
- package/runtime/pydantic/experimental/__init__.py +0 -10
- package/runtime/pydantic/experimental/pipeline.py +0 -669
- package/runtime/pydantic/fields.py +0 -1504
- package/runtime/pydantic/functional_serializers.py +0 -449
- package/runtime/pydantic/functional_validators.py +0 -825
- package/runtime/pydantic/generics.py +0 -5
- package/runtime/pydantic/json.py +0 -5
- package/runtime/pydantic/json_schema.py +0 -2649
- package/runtime/pydantic/main.py +0 -1688
- package/runtime/pydantic/mypy.py +0 -1320
- package/runtime/pydantic/networks.py +0 -1291
- package/runtime/pydantic/parse.py +0 -5
- package/runtime/pydantic/plugin/__init__.py +0 -171
- package/runtime/pydantic/plugin/_loader.py +0 -56
- package/runtime/pydantic/plugin/_schema_validator.py +0 -139
- package/runtime/pydantic/py.typed +0 -0
- package/runtime/pydantic/root_model.py +0 -156
- package/runtime/pydantic/schema.py +0 -5
- package/runtime/pydantic/tools.py +0 -5
- package/runtime/pydantic/type_adapter.py +0 -676
- package/runtime/pydantic/types.py +0 -3255
- package/runtime/pydantic/typing.py +0 -5
- package/runtime/pydantic/utils.py +0 -5
- package/runtime/pydantic/v1/__init__.py +0 -131
- package/runtime/pydantic/v1/_hypothesis_plugin.py +0 -391
- package/runtime/pydantic/v1/annotated_types.py +0 -72
- package/runtime/pydantic/v1/class_validators.py +0 -361
- package/runtime/pydantic/v1/color.py +0 -494
- package/runtime/pydantic/v1/config.py +0 -191
- package/runtime/pydantic/v1/dataclasses.py +0 -500
- package/runtime/pydantic/v1/datetime_parse.py +0 -248
- package/runtime/pydantic/v1/decorator.py +0 -264
- package/runtime/pydantic/v1/env_settings.py +0 -350
- package/runtime/pydantic/v1/error_wrappers.py +0 -161
- package/runtime/pydantic/v1/errors.py +0 -646
- package/runtime/pydantic/v1/fields.py +0 -1253
- package/runtime/pydantic/v1/generics.py +0 -400
- package/runtime/pydantic/v1/json.py +0 -112
- package/runtime/pydantic/v1/main.py +0 -1107
- package/runtime/pydantic/v1/mypy.py +0 -949
- package/runtime/pydantic/v1/networks.py +0 -747
- package/runtime/pydantic/v1/parse.py +0 -66
- package/runtime/pydantic/v1/py.typed +0 -0
- package/runtime/pydantic/v1/schema.py +0 -1163
- package/runtime/pydantic/v1/tools.py +0 -92
- package/runtime/pydantic/v1/types.py +0 -1205
- package/runtime/pydantic/v1/typing.py +0 -608
- package/runtime/pydantic/v1/utils.py +0 -804
- package/runtime/pydantic/v1/validators.py +0 -768
- package/runtime/pydantic/v1/version.py +0 -38
- package/runtime/pydantic/validate_call_decorator.py +0 -115
- package/runtime/pydantic/validators.py +0 -5
- package/runtime/pydantic/version.py +0 -78
- package/runtime/pydantic/warnings.py +0 -86
- package/runtime/pydantic-2.10.6.dist-info/METADATA +0 -359
- package/runtime/pydantic-2.10.6.dist-info/RECORD +0 -109
- package/runtime/pydantic-2.10.6.dist-info/WHEEL +0 -4
- package/runtime/pydantic-2.10.6.dist-info/licenses/LICENSE +0 -21
- package/runtime/pydantic_core/__init__.py +0 -139
- package/runtime/pydantic_core/_pydantic_core.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/pydantic_core/_pydantic_core.pyi +0 -1013
- package/runtime/pydantic_core/core_schema.py +0 -4211
- package/runtime/pydantic_core/py.typed +0 -0
- package/runtime/pydantic_core-2.27.2.dist-info/METADATA +0 -161
- package/runtime/pydantic_core-2.27.2.dist-info/RECORD +0 -9
- package/runtime/pydantic_core-2.27.2.dist-info/WHEEL +0 -4
- package/runtime/pydantic_core-2.27.2.dist-info/licenses/LICENSE +0 -21
- package/runtime/skillbridge/__init__.py +0 -118
- package/runtime/skillbridge/__main__.py +0 -94
- package/runtime/skillbridge/client/__init__.py +0 -0
- package/runtime/skillbridge/client/channel.py +0 -221
- package/runtime/skillbridge/client/functions.py +0 -64
- package/runtime/skillbridge/client/globals.py +0 -114
- package/runtime/skillbridge/client/hints.py +0 -96
- package/runtime/skillbridge/client/objects.py +0 -269
- package/runtime/skillbridge/client/remote.py +0 -23
- package/runtime/skillbridge/client/translator.py +0 -215
- package/runtime/skillbridge/client/var.py +0 -68
- package/runtime/skillbridge/client/workspace.py +0 -347
- package/runtime/skillbridge/py.typed +0 -0
- package/runtime/skillbridge/server/__init__.py +0 -0
- package/runtime/skillbridge/server/python_server.il +0 -241
- package/runtime/skillbridge/server/python_server.py +0 -193
- package/runtime/skillbridge/version.py +0 -1
- package/runtime/skillbridge-1.7.2.dist-info/LICENSE +0 -165
- package/runtime/skillbridge-1.7.2.dist-info/METADATA +0 -304
- package/runtime/skillbridge-1.7.2.dist-info/RECORD +0 -27
- package/runtime/skillbridge-1.7.2.dist-info/WHEEL +0 -5
- package/runtime/skillbridge-1.7.2.dist-info/entry_points.txt +0 -2
- package/runtime/skillbridge-1.7.2.dist-info/top_level.txt +0 -1
- package/runtime/ted_common/.devops/ci/config.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/hh130.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/hh180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/hl55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/ics55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/pku3.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s180bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s180bcdepi.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s180mm.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s180mse.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s55_6m.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s65.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/s90bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/sharp180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t12.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t22.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_10/t65.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/hh130.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/hh180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/hl55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/ics55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/pku3.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s180bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s180bcdepi.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s180mm.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s180mse.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s55_6m.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s65.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/s90bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/sharp180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/t12.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/t180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/t28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/t40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_30/t65.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/hh130.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/hh180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/hl55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/ics55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/pku3.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s180bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s180bcdepi.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s180mm.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s180mse.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s55.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s55_6m.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s65.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/s90bcd.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/sharp180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t12.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t180.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t22.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t28.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t40.yaml +0 -3
- package/runtime/ted_common/.devops/ci/lvl_5/t65.yaml +0 -3
- package/runtime/ted_common/__init__.py +0 -3
- package/runtime/ted_common/ai.py +0 -249
- package/runtime/ted_common/cc_output_processor.py +0 -726
- package/runtime/ted_common/conftest.py +0 -56
- package/runtime/ted_common/cprint.py +0 -35
- package/runtime/ted_common/device_contracts/__init__.py +0 -1
- package/runtime/ted_common/device_contracts/metadata.py +0 -256
- package/runtime/ted_common/device_contracts/mos_connections.py +0 -350
- package/runtime/ted_common/device_contracts/parameters.py +0 -24
- package/runtime/ted_common/device_contracts/pcell_reference.py +0 -25
- package/runtime/ted_common/device_contracts/physical_pins.py +0 -167
- package/runtime/ted_common/device_contracts/series_connections.py +0 -125
- package/runtime/ted_common/fs.py +0 -525
- package/runtime/ted_common/loggable2.py +0 -124
- package/runtime/ted_common/logger.py +0 -229
- package/runtime/ted_common/requirements.txt +0 -2
- package/runtime/ted_common/router.py +0 -807
- package/runtime/ted_pdk_adapter/__init__.py +0 -47
- package/runtime/ted_pdk_adapter/src/__init__.py +0 -27
- package/runtime/ted_pdk_adapter/src/decision/__init__.py +0 -26
- package/runtime/ted_pdk_adapter/src/decision/resolver.py +0 -211
- package/runtime/ted_pdk_adapter/src/decision/rules.py +0 -505
- package/runtime/ted_pdk_adapter/src/decision/strategies.py +0 -472
- package/runtime/ted_pdk_adapter/src/extract/__init__.py +0 -0
- package/runtime/ted_pdk_adapter/src/extract/extract_corners.py +0 -435
- package/runtime/ted_pdk_adapter/src/tvf.py +0 -154
- package/runtime/ted_pdk_adapter/src/vendor_inputs.py +0 -271
- package/runtime/ted_tools/virtuoso/.cdsinit +0 -3
- package/runtime/ted_tools/virtuoso/build.sh +0 -2
- package/runtime/ted_tools/virtuoso/cds.lib +0 -26
- package/runtime/ted_tools/virtuoso/icadv12.3_env.sh +0 -34
- package/runtime/ted_tools/virtuoso/pdk/AMP_SINK2.json +0 -124
- package/runtime/ted_tools/virtuoso/pdk/drc.json +0 -45
- package/runtime/ted_tools/virtuoso/pdk/dtxt.json +0 -18
- package/runtime/ted_tools/virtuoso/py_server/__init__.py +0 -0
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/cdf.il +0 -743
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/core.il +0 -191
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/create.il +0 -354
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/delete.il +0 -77
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/get.il +0 -192
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/index.il +0 -26
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/inspect.il +0 -85
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/io.il +0 -137
- package/runtime/ted_tools/virtuoso/skill/agents/dbobject/query.il +0 -314
- package/runtime/ted_tools/virtuoso/skill/agents/index.il +0 -2
- package/runtime/ted_tools/virtuoso/skill/agents/schematic/index.il +0 -239
- package/runtime/ted_tools/virtuoso/skill/autobench/README.md +0 -247
- package/runtime/ted_tools/virtuoso/skill/autobench/adexl.il +0 -103
- package/runtime/ted_tools/virtuoso/skill/autobench/common.il +0 -19
- package/runtime/ted_tools/virtuoso/skill/autobench/index.il +0 -3
- package/runtime/ted_tools/virtuoso/skill/autobench/initialize.il +0 -93
- package/runtime/ted_tools/virtuoso/skill/autobench/mae.env +0 -1999
- package/runtime/ted_tools/virtuoso/skill/autobench/maestro.il +0 -704
- package/runtime/ted_tools/virtuoso/skill/autobench/startup.il +0 -214
- package/runtime/ted_tools/virtuoso/skill/autobench/tb.il +0 -586
- package/runtime/ted_tools/virtuoso/skill/autobench/wave.il +0 -170
- package/runtime/ted_tools/virtuoso/skill/autoform/index.il +0 -1
- package/runtime/ted_tools/virtuoso/skill/autoform/initialize.il +0 -62
- package/runtime/ted_tools/virtuoso/skill/autoform/startup.il +0 -146
- package/runtime/ted_tools/virtuoso/skill/bin/reflect_tech +0 -0
- package/runtime/ted_tools/virtuoso/skill/common/XLDevInfoGen.il +0 -60
- package/runtime/ted_tools/virtuoso/skill/common/abInvokeCdfCallbacks.il +0 -414
- package/runtime/ted_tools/virtuoso/skill/common/autolabel.il +0 -206
- package/runtime/ted_tools/virtuoso/skill/common/functions.il +0 -367
- package/runtime/ted_tools/virtuoso/skill/common/gds.il +0 -39
- package/runtime/ted_tools/virtuoso/skill/common/geometry.il +0 -430
- package/runtime/ted_tools/virtuoso/skill/common/graphic_serialize.il +0 -1575
- package/runtime/ted_tools/virtuoso/skill/common/hpc.il +0 -2
- package/runtime/ted_tools/virtuoso/skill/common/implementation_view.il +0 -97
- package/runtime/ted_tools/virtuoso/skill/common/json.il +0 -740
- package/runtime/ted_tools/virtuoso/skill/common/os.il +0 -356
- package/runtime/ted_tools/virtuoso/skill/common/parser.il +0 -27
- package/runtime/ted_tools/virtuoso/skill/common/pdk.il +0 -230
- package/runtime/ted_tools/virtuoso/skill/common/performance.il +0 -167
- package/runtime/ted_tools/virtuoso/skill/common/placer.il +0 -191
- package/runtime/ted_tools/virtuoso/skill/common/printInstCdfInfo.il +0 -347
- package/runtime/ted_tools/virtuoso/skill/common/route.il +0 -228
- package/runtime/ted_tools/virtuoso/skill/common/std.il +0 -14
- package/runtime/ted_tools/virtuoso/skill/common/types.il +0 -224
- package/runtime/ted_tools/virtuoso/skill/common/virsual.il +0 -410
- package/runtime/ted_tools/virtuoso/skill/component/common.il +0 -55
- package/runtime/ted_tools/virtuoso/skill/component/config.il +0 -436
- package/runtime/ted_tools/virtuoso/skill/component/decrypt.il +0 -41
- package/runtime/ted_tools/virtuoso/skill/component/global_setting.il +0 -366
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/arw_pdk.il +0 -432
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/arw_ui.il +0 -45
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/batch_lvs.il +0 -41
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/setting.il +0 -498
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/setting_ui.il +0 -59
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/stacking_setting.il +0 -917
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/temp.il +0 -5
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/test.il +0 -29
- package/runtime/ted_tools/virtuoso/skill/component/gui/arw_ui/unit_setting.il +0 -865
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/channel.il +0 -838
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/channel_route.il +0 -293
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/check_xl.il +0 -1246
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/error_info.il +0 -499
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/error_info.json +0 -220
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/foot.il +0 -686
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/inspection_result.json +0 -200
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/metal.il +0 -163
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/net.il +0 -182
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/part_route.il +0 -44
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/pdk.il +0 -295
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/protected.il +0 -142
- package/runtime/ted_tools/virtuoso/skill/component/gui/channel_route/via.il +0 -136
- package/runtime/ted_tools/virtuoso/skill/component/gui/check_route_result/index.il +0 -437
- package/runtime/ted_tools/virtuoso/skill/component/gui/common/instance/rec_get_instance.il +0 -280
- package/runtime/ted_tools/virtuoso/skill/component/gui/common/net/report_form.il +0 -1684
- package/runtime/ted_tools/virtuoso/skill/component/gui/dock.il +0 -266
- package/runtime/ted_tools/virtuoso/skill/component/gui/mos_route/mos_route.il +0 -927
- package/runtime/ted_tools/virtuoso/skill/component/gui/sch_to_code/index.il +0 -67
- package/runtime/ted_tools/virtuoso/skill/component/gui/sch_to_code/ted_tech_load.py +0 -48
- package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_need_serialize_cell.il +0 -142
- package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_need_serialize_lib.il +0 -129
- package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_skip_cell.il +0 -144
- package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/select_skip_lib.il +0 -121
- package/runtime/ted_tools/virtuoso/skill/component/gui/serialize/serialize.il +0 -230
- package/runtime/ted_tools/virtuoso/skill/component/gui/session.il +0 -63
- package/runtime/ted_tools/virtuoso/skill/component/gui/xf/inst_table.il +0 -252
- package/runtime/ted_tools/virtuoso/skill/component/gui/xf/xf.il +0 -13
- package/runtime/ted_tools/virtuoso/skill/component/lvs.config +0 -62
- package/runtime/ted_tools/virtuoso/skill/component/pcell.il +0 -39
- package/runtime/ted_tools/virtuoso/skill/component/route.il +0 -298
- package/runtime/ted_tools/virtuoso/skill/component/scripts/schematic_middle_file.json +0 -76
- package/runtime/ted_tools/virtuoso/skill/component/scripts/test1208_test_ACD.json +0 -21
- package/runtime/ted_tools/virtuoso/skill/component/test.il +0 -179
- package/runtime/ted_tools/virtuoso/skill/component/test2.il +0 -76
- package/runtime/ted_tools/virtuoso/skill/component/virtuoso.il +0 -1164
- package/runtime/ted_tools/virtuoso/skill/component/xf.il +0 -208
- package/runtime/ted_tools/virtuoso/skill/ctx/64bit/siview.ctx +0 -0
- package/runtime/ted_tools/virtuoso/skill/gui/interaction.il +0 -105
- package/runtime/ted_tools/virtuoso/skill/gui/net.il +0 -208
- package/runtime/ted_tools/virtuoso/skill/layout.il +0 -464
- package/runtime/ted_tools/virtuoso/skill/main.il +0 -14
- package/runtime/ted_tools/virtuoso/skill/modules/a.il +0 -219
- package/runtime/ted_tools/virtuoso/skill/modules/builder.il +0 -187
- package/runtime/ted_tools/virtuoso/skill/modules/code.il +0 -396
- package/runtime/ted_tools/virtuoso/skill/modules/index.il +0 -4
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/index.il +0 -1
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/example_2.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_all.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_body.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_body_no_dummy.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_diode.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/new/TEST_KEY_IMPORT_v0p1_diode_no_dummy.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/onmicro_config.yaml +0 -83
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeA_example.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeA_example_1.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py/typeB_example.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/py//345/211/257/346/234/254TEST_KEY_IMPORT_v0p1.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/batch.il +0 -55
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/common.il +0 -95
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/config.il +0 -194
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/index.il +0 -6
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/unitA.il +0 -830
- package/runtime/ted_tools/virtuoso/skill/modules/onmicro/stacking/unitB.il +0 -752
- package/runtime/ted_tools/virtuoso/skill/modules/paired_nmos.il +0 -166
- package/runtime/ted_tools/virtuoso/skill/modules/pcell_demo.il +0 -244
- package/runtime/ted_tools/virtuoso/skill/modules/requirements.txt +0 -1
- package/runtime/ted_tools/virtuoso/skill/modules/test.csv +0 -3
- package/runtime/ted_tools/virtuoso/skill/modules/test.il +0 -12
- package/runtime/ted_tools/virtuoso/skill/modules/test.xlsx +0 -0
- package/runtime/ted_tools/virtuoso/skill/modules/utils.il +0 -138
- package/runtime/ted_tools/virtuoso/skill/oa/export.il +0 -124
- package/runtime/ted_tools/virtuoso/skill/optimization/index.il +0 -2
- package/runtime/ted_tools/virtuoso/skill/optimization/menu.il +0 -106
- package/runtime/ted_tools/virtuoso/skill/optimization/ui.il +0 -542
- package/runtime/ted_tools/virtuoso/skill/package.il +0 -72
- package/runtime/ted_tools/virtuoso/skill/pcell.il +0 -166
- package/runtime/ted_tools/virtuoso/skill/pcell2/__init__.py +0 -0
- package/runtime/ted_tools/virtuoso/skill/pcell2/create_lib.il +0 -69
- package/runtime/ted_tools/virtuoso/skill/pcell2/gds.il +0 -166
- package/runtime/ted_tools/virtuoso/skill/pcell2/get_param_info.il +0 -40
- package/runtime/ted_tools/virtuoso/skill/pcell2/lib.il +0 -0
- package/runtime/ted_tools/virtuoso/skill/pcell2/strmout.il +0 -49
- package/runtime/ted_tools/virtuoso/skill/pcell2/test.il +0 -24
- package/runtime/ted_tools/virtuoso/skill/pdk/batchCheckModelChoices.il +0 -280
- package/runtime/ted_tools/virtuoso/skill/pdk/cdf.il +0 -199
- package/runtime/ted_tools/virtuoso/skill/pdk/cdf_mapping.il +0 -41
- package/runtime/ted_tools/virtuoso/skill/pdk/checkModelChoices.il +0 -274
- package/runtime/ted_tools/virtuoso/skill/pdk/index.il +0 -5
- package/runtime/ted_tools/virtuoso/skill/pdk/schematic.il +0 -147
- package/runtime/ted_tools/virtuoso/skill/plugins/ted.il +0 -181
- package/runtime/ted_tools/virtuoso/skill/python_server.il +0 -241
- package/runtime/ted_tools/virtuoso/skill/router/index.il +0 -1
- package/runtime/ted_tools/virtuoso/skill/router/initialize.il +0 -80
- package/runtime/ted_tools/virtuoso/skill/router/startup.il +0 -112
- package/runtime/ted_tools/virtuoso/skill/schematic/generator/import.il +0 -646
- package/runtime/ted_tools/virtuoso/skill/schematic/generator/netlist.il +0 -289
- package/runtime/ted_tools/virtuoso/skill/schematic/generator/sch.il +0 -169
- package/runtime/ted_tools/virtuoso/skill/schematic/generator/sch_example.json +0 -56
- package/runtime/ted_tools/virtuoso/skill/schematic/index.il +0 -9
- package/runtime/ted_tools/virtuoso/skill/schematic/schematic.il +0 -575
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/cc_config.il +0 -48
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/circuit_type.il +0 -95
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/context.il +0 -44
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/run_and_update.il +0 -169
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/shell/propmpt_generate_code.sh +0 -112
- package/runtime/ted_tools/virtuoso/skill/schematic/ui/shell/propmpt_optiomize.sh +0 -133
- package/runtime/ted_tools/virtuoso/skill/server/index.il +0 -157
- package/runtime/ted_tools/virtuoso/skill/simulation/index.il +0 -1
- package/runtime/ted_tools/virtuoso/skill/simulation/measure.il +0 -103
- package/runtime/ted_tools/virtuoso/skill/types/schematic.ts +0 -104
- package/runtime/ted_tools/virtuoso/skill/utils.il +0 -255
- package/runtime/ted_tools/virtuoso/skill/waveform/wave_y_utils.il +0 -67
- package/runtime/ted_utils/.devops/ci/config.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/hh130.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/hh180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/hl55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/ics55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/pku3.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s180bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s180bcdepi.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s180mm.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s180mse.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s55_6m.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s65.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/s90bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/sharp180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t12.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t22.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_10/t65.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/hh130.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/hh180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/hl55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/ics55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/pku3.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s180bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s180bcdepi.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s180mm.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s180mse.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s55_6m.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s65.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/s90bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/sharp180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t12.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t22.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_30/t65.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/hh130.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/hh180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/hl55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/ics55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/pku3.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s180bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s180bcdepi.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s180mm.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s180mse.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s55.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s55_6m.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s65.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/s90bcd.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/sharp180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t12.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t180.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t22.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t28.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t40.yaml +0 -3
- package/runtime/ted_utils/.devops/ci/lvl_5/t65.yaml +0 -3
- package/runtime/ted_utils/__init__.py +0 -336
- package/runtime/ted_utils/conftest.py +0 -32
- package/runtime/ted_utils/requirements.txt +0 -4
- package/runtime/ted_utils/sh/__init__.py +0 -0
- package/runtime/ted_utils/sh/python/__init__.py +0 -0
- package/runtime/ted_utils/sh/python/check_format.py +0 -15
- package/runtime/ted_utils/sh/python/check_pkg.py +0 -250
- package/runtime/ted_utils/sh/rust/__init__.py +0 -0
- package/runtime/ted_utils/sh/rust/check_rustfmt.py +0 -26
- package/runtime/ted_utils/sh/so/__init__.py +0 -0
- package/runtime/ted_utils/sh/so/annotations.py +0 -99
- package/runtime/ted_utils/sh/so/compile.py +0 -688
- package/runtime/ted_utils/sh/so/generate_interface.py +0 -916
- package/runtime/ted_utils/sh/so/open_init.py +0 -56
- package/runtime/ted_utils/src/__init__.py +0 -42
- package/runtime/ted_utils/src/assemble_config.py +0 -134
- package/runtime/ted_utils/src/cexpr.py +0 -112
- package/runtime/ted_utils/src/cn.py +0 -9
- package/runtime/ted_utils/src/common.py +0 -2199
- package/runtime/ted_utils/src/config/__init__.py +0 -1
- package/runtime/ted_utils/src/config/citest/__init__.py +0 -0
- package/runtime/ted_utils/src/config/citest/conftest_config.py +0 -127
- package/runtime/ted_utils/src/config/core/__init__.py +0 -23
- package/runtime/ted_utils/src/config/core/basic.py +0 -468
- package/runtime/ted_utils/src/config/core/extra.py +0 -46
- package/runtime/ted_utils/src/config/default_userconfig.yaml +0 -9
- package/runtime/ted_utils/src/config/userconfig.py +0 -212
- package/runtime/ted_utils/src/configs/__init__.py +0 -0
- package/runtime/ted_utils/src/configs/ted/__init__.py +0 -44
- package/runtime/ted_utils/src/configs/ted/ssh.py +0 -23
- package/runtime/ted_utils/src/const.py +0 -250
- package/runtime/ted_utils/src/dsl/chipletData.py +0 -159
- package/runtime/ted_utils/src/envs.py +0 -17
- package/runtime/ted_utils/src/fastapi/__init__.py +0 -0
- package/runtime/ted_utils/src/fastapi/model.py +0 -59
- package/runtime/ted_utils/src/file_parser.py +0 -25
- package/runtime/ted_utils/src/fmt.py +0 -33
- package/runtime/ted_utils/src/gds/__init__.py +0 -1
- package/runtime/ted_utils/src/gds/mod.py +0 -302
- package/runtime/ted_utils/src/gds/tgds.py +0 -122
- package/runtime/ted_utils/src/index_queue.py +0 -22
- package/runtime/ted_utils/src/interval.py +0 -126
- package/runtime/ted_utils/src/iter_util.py +0 -10
- package/runtime/ted_utils/src/layer.py +0 -47
- package/runtime/ted_utils/src/md/__init__.py +0 -0
- package/runtime/ted_utils/src/md/add_captions_post.py +0 -463
- package/runtime/ted_utils/src/md/add_cover_and_toc.py +0 -199
- package/runtime/ted_utils/src/md/add_cover_toc_xml.py +0 -299
- package/runtime/ted_utils/src/md/add_cover_toc_xml_v2.py +0 -457
- package/runtime/ted_utils/src/md/add_table_borders_post.py +0 -195
- package/runtime/ted_utils/src/md/config_loader.py +0 -174
- package/runtime/ted_utils/src/md/markdown.py +0 -339
- package/runtime/ted_utils/src/md/md2doc_config.yaml +0 -69
- package/runtime/ted_utils/src/md/refresh_docx_fields.py +0 -59
- package/runtime/ted_utils/src/md/template/lo_update_fields_macro.template +0 -27
- package/runtime/ted_utils/src/md/template/styles.yaml +0 -7
- package/runtime/ted_utils/src/md/update_fields_libreoffice.py +0 -78
- package/runtime/ted_utils/src/md/update_toc.py +0 -241
- package/runtime/ted_utils/src/network.py +0 -15
- package/runtime/ted_utils/src/num_util.py +0 -302
- package/runtime/ted_utils/src/observer.py +0 -150
- package/runtime/ted_utils/src/parser/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/common.py +0 -241
- package/runtime/ted_utils/src/parser/def_parser.py +0 -280
- package/runtime/ted_utils/src/parser/drf_const.py +0 -45
- package/runtime/ted_utils/src/parser/drf_parser.py +0 -326
- package/runtime/ted_utils/src/parser/pdk_layermap_parser.py +0 -81
- package/runtime/ted_utils/src/parser/pdk_techfile_parser.py +0 -130
- package/runtime/ted_utils/src/parser/reader.py +0 -104
- package/runtime/ted_utils/src/parser/route/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/route/setting.py +0 -40
- package/runtime/ted_utils/src/parser/sim_yaml.py +0 -87
- package/runtime/ted_utils/src/parser/string.py +0 -44
- package/runtime/ted_utils/src/parser/tools/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/tools/controller/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/tools/controller/config/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/tools/controller/config/config.py +0 -10
- package/runtime/ted_utils/src/parser/virtuoso/__init__.py +0 -0
- package/runtime/ted_utils/src/parser/virtuoso/cds_lib.py +0 -98
- package/runtime/ted_utils/src/path.py +0 -25
- package/runtime/ted_utils/src/process_pool_runner.py +0 -527
- package/runtime/ted_utils/src/python/__init__.py +0 -5
- package/runtime/ted_utils/src/python/cover/__init__.py +0 -0
- package/runtime/ted_utils/src/python/cover/refactor_log.py +0 -157
- package/runtime/ted_utils/src/python/file.py +0 -19
- package/runtime/ted_utils/src/python/fmt.py +0 -220
- package/runtime/ted_utils/src/python/pytest/__init__.py +0 -0
- package/runtime/ted_utils/src/python/pytest/const.py +0 -5
- package/runtime/ted_utils/src/python/pytest/extract_testcase.py +0 -121
- package/runtime/ted_utils/src/python/pytest/isolated.py +0 -50
- package/runtime/ted_utils/src/python/syntax_tree.py +0 -135
- package/runtime/ted_utils/src/python/tdict.py +0 -8
- package/runtime/ted_utils/src/python/ted_inspect.py +0 -89
- package/runtime/ted_utils/src/python/tlist.py +0 -35
- package/runtime/ted_utils/src/python/tstr.py +0 -9
- package/runtime/ted_utils/src/repr/__init__.py +0 -2
- package/runtime/ted_utils/src/repr/report.py +0 -10
- package/runtime/ted_utils/src/repr/repr.py +0 -19
- package/runtime/ted_utils/src/result.py +0 -58
- package/runtime/ted_utils/src/rust/__init__.py +0 -0
- package/runtime/ted_utils/src/rust/fmt.py +0 -122
- package/runtime/ted_utils/src/server/__init__.py +0 -0
- package/runtime/ted_utils/src/server/info.py +0 -10
- package/runtime/ted_utils/src/server/shell.py +0 -63
- package/runtime/ted_utils/src/shell.py +0 -44
- package/runtime/ted_utils/src/skill/__init__.py +0 -4
- package/runtime/ted_utils/src/skill/enhance/__init__.py +0 -1
- package/runtime/ted_utils/src/skill/enhance/func.py +0 -126
- package/runtime/ted_utils/src/skill/wrap/__init__.py +0 -0
- package/runtime/ted_utils/src/skill/wrap/basic.py +0 -46
- package/runtime/ted_utils/src/skill/wrap/dict.py +0 -37
- package/runtime/ted_utils/src/skill/wrap/expr.py +0 -32
- package/runtime/ted_utils/src/skill/wrap/index.py +0 -8
- package/runtime/ted_utils/src/skill/wrap/list.py +0 -21
- package/runtime/ted_utils/src/skill/wrap/middle.py +0 -35
- package/runtime/ted_utils/src/types.py +0 -51
- package/runtime/typing_extensions-4.15.0.dist-info/METADATA +0 -72
- package/runtime/typing_extensions-4.15.0.dist-info/RECORD +0 -5
- package/runtime/typing_extensions-4.15.0.dist-info/WHEEL +0 -4
- package/runtime/typing_extensions-4.15.0.dist-info/licenses/LICENSE +0 -279
- package/runtime/typing_extensions.py +0 -4317
- package/runtime/yaml/__init__.py +0 -390
- package/runtime/yaml/_yaml.cpython-39-x86_64-linux-gnu.so +0 -0
- package/runtime/yaml/composer.py +0 -139
- package/runtime/yaml/constructor.py +0 -748
- package/runtime/yaml/cyaml.py +0 -101
- package/runtime/yaml/dumper.py +0 -62
- package/runtime/yaml/emitter.py +0 -1137
- package/runtime/yaml/error.py +0 -75
- package/runtime/yaml/events.py +0 -86
- package/runtime/yaml/loader.py +0 -63
- package/runtime/yaml/nodes.py +0 -49
- package/runtime/yaml/parser.py +0 -589
- package/runtime/yaml/reader.py +0 -185
- package/runtime/yaml/representer.py +0 -389
- package/runtime/yaml/resolver.py +0 -227
- package/runtime/yaml/scanner.py +0 -1435
- package/runtime/yaml/serializer.py +0 -111
- 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.
|
|
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)
|
package/runtime/cli.ps1
ADDED
package/runtime/cli.sh
ADDED
|
@@ -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)
|