@cloudbase/manager-node 4.3.2 → 4.3.4
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/lib/agent/index.js +70 -0
- package/lib/agent/type.js +2 -0
- package/lib/cloudrun/index.js +4 -36
- package/lib/environment.js +5 -0
- package/lib/function/index.js +9 -1
- package/lib/index.js +3 -0
- package/lib/utils/index.js +60 -3
- package/package.json +1 -1
- package/types/agent/index.d.ts +20 -0
- package/types/agent/type.d.ts +22 -0
- package/types/cloudrun/index.d.ts +3 -0
- package/types/environment.d.ts +3 -0
- package/types/index.d.ts +2 -0
- package/types/utils/index.d.ts +26 -2
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
- package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
- package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
- package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
- package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +0 -63
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
- package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentService = void 0;
|
|
13
|
+
const cloudrun_1 = require("../cloudrun");
|
|
14
|
+
const utils_1 = require("../utils");
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
/**
|
|
17
|
+
* Agent 管理类
|
|
18
|
+
*/
|
|
19
|
+
class AgentService {
|
|
20
|
+
constructor(environment) {
|
|
21
|
+
this.environment = environment;
|
|
22
|
+
this.tcbService = new utils_1.CloudService(environment.cloudBaseContext, 'tcb', '2018-06-08');
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 创建函数型 Agent
|
|
26
|
+
* @param {string} [cwd=process.cwd()] 工作目录
|
|
27
|
+
* @param {ICreateFunctionAgentParams} agentInfo Agent 信息
|
|
28
|
+
* @returns {Promise<{ BotId: string; RequestId: string }>} Agent 创建结果
|
|
29
|
+
*/
|
|
30
|
+
async createFunctionAgent(cwd = process.cwd(), agentInfo) {
|
|
31
|
+
const { BotId } = agentInfo;
|
|
32
|
+
const targetPath = path_1.default.join(cwd);
|
|
33
|
+
const envConfig = this.environment.lazyEnvironmentConfig;
|
|
34
|
+
/**
|
|
35
|
+
* 判断 params.IbotId 的数据格式是否为 ibot-xxx-xxx 的格式
|
|
36
|
+
*/
|
|
37
|
+
if (!/^ibot-[a-z0-9_]+-[a-z0-9_]+$/.test(BotId)) {
|
|
38
|
+
throw new Error('BotId格式应为"ibot-xxx-xxx",其中 xxx 仅支持小写字母、数字或下划线');
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 获取函数型云托管服务的名称:ibot-xxx-xxx 中的 ibot-xxx
|
|
42
|
+
*/
|
|
43
|
+
const serverName = BotId.split('-').slice(0, 2).join('-');
|
|
44
|
+
/**
|
|
45
|
+
* 获取部署包上传信息
|
|
46
|
+
*/
|
|
47
|
+
const { UploadUrl: uploadUrl, UploadHeaders: uploadHeaders, PackageName: packageName, PackageVersion: packageVersion } = await this.tcbService.request('DescribeCloudBaseBuildService', {
|
|
48
|
+
EnvId: envConfig.EnvId,
|
|
49
|
+
ServiceName: serverName
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* 上传部署包
|
|
53
|
+
*/
|
|
54
|
+
const zipFile = await (0, cloudrun_1.codeToZip)(targetPath, { installDependency: true });
|
|
55
|
+
await (0, utils_1.upload)({
|
|
56
|
+
url: uploadUrl,
|
|
57
|
+
file: zipFile,
|
|
58
|
+
headers: (uploadHeaders || []).reduce((map, item) => {
|
|
59
|
+
map[item.Key] = item.Value;
|
|
60
|
+
return map;
|
|
61
|
+
}, {}) || {},
|
|
62
|
+
method: 'PUT'
|
|
63
|
+
});
|
|
64
|
+
return this.tcbService.request('CreateBot', Object.assign(Object.assign({}, agentInfo), { EnvId: envConfig.EnvId, PackageName: packageName, PackageVersion: packageVersion }));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.AgentService = AgentService;
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.preLazy)()
|
|
70
|
+
], AgentService.prototype, "createFunctionAgent", null);
|
package/lib/cloudrun/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CloudRunService = void 0;
|
|
13
|
+
exports.codeToZip = codeToZip;
|
|
13
14
|
const archiver_1 = __importDefault(require("archiver"));
|
|
14
15
|
const fs_extra_1 = require("fs-extra");
|
|
15
16
|
const path_1 = __importDefault(require("path"));
|
|
@@ -179,16 +180,14 @@ class CloudRunService {
|
|
|
179
180
|
* 上传部署包
|
|
180
181
|
*/
|
|
181
182
|
const zipFile = await codeToZip(targetPath, { installDependency: true });
|
|
182
|
-
await upload({
|
|
183
|
-
|
|
183
|
+
await (0, utils_1.upload)({
|
|
184
|
+
url: uploadUrl,
|
|
184
185
|
file: zipFile,
|
|
185
|
-
filename: 'file',
|
|
186
186
|
headers: (uploadHeaders || []).reduce((map, item) => {
|
|
187
187
|
map[item.Key] = item.Value;
|
|
188
188
|
return map;
|
|
189
189
|
}, {}) || {},
|
|
190
|
-
method: 'PUT'
|
|
191
|
-
send: (file) => file
|
|
190
|
+
method: 'PUT'
|
|
192
191
|
});
|
|
193
192
|
/**
|
|
194
193
|
* 执行部署
|
|
@@ -336,34 +335,3 @@ async function codeToZip(cwd, options) {
|
|
|
336
335
|
await archive.finalize();
|
|
337
336
|
return bufferPromise;
|
|
338
337
|
}
|
|
339
|
-
function upload({ action, file, method = 'POST', headers = {}, withCredentials = false }) {
|
|
340
|
-
return (0, utils_1.fetchStream)(action, {
|
|
341
|
-
method,
|
|
342
|
-
headers,
|
|
343
|
-
body: file,
|
|
344
|
-
credentials: withCredentials ? 'include' : 'same-origin'
|
|
345
|
-
})
|
|
346
|
-
.then(async (response) => {
|
|
347
|
-
const text = await response.text();
|
|
348
|
-
const dataMeta = {
|
|
349
|
-
data: null,
|
|
350
|
-
context: {
|
|
351
|
-
response,
|
|
352
|
-
file
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
try {
|
|
356
|
-
dataMeta.data = JSON.parse(text);
|
|
357
|
-
}
|
|
358
|
-
catch (e) {
|
|
359
|
-
// If parsing fails, keep data as null
|
|
360
|
-
}
|
|
361
|
-
if (!response.ok) {
|
|
362
|
-
throw new Error(`${response.status} ${response.statusText} HTTP ERROR`);
|
|
363
|
-
}
|
|
364
|
-
return dataMeta;
|
|
365
|
-
})
|
|
366
|
-
.catch(error => {
|
|
367
|
-
throw error; // 或者可以在这里进行错误转换
|
|
368
|
-
});
|
|
369
|
-
}
|
package/lib/environment.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.Environment = void 0;
|
|
|
4
4
|
const database_1 = require("./database");
|
|
5
5
|
const function_1 = require("./function");
|
|
6
6
|
const cloudrun_1 = require("./cloudrun");
|
|
7
|
+
const agent_1 = require("./agent");
|
|
7
8
|
const storage_1 = require("./storage");
|
|
8
9
|
const env_1 = require("./env");
|
|
9
10
|
const common_1 = require("./common");
|
|
@@ -24,6 +25,7 @@ class Environment {
|
|
|
24
25
|
// 拉取当前环境 的环境信息 todo
|
|
25
26
|
this.functionService = new function_1.FunctionService(this);
|
|
26
27
|
this.cloudRunService = new cloudrun_1.CloudRunService(this);
|
|
28
|
+
this.agentService = new agent_1.AgentService(this);
|
|
27
29
|
this.databaseService = new database_1.DatabaseService(this);
|
|
28
30
|
this.storageService = new storage_1.StorageService(this);
|
|
29
31
|
this.envService = new env_1.EnvService(this);
|
|
@@ -67,6 +69,9 @@ class Environment {
|
|
|
67
69
|
getCloudRunService() {
|
|
68
70
|
return this.cloudRunService;
|
|
69
71
|
}
|
|
72
|
+
getAgentService() {
|
|
73
|
+
return this.agentService;
|
|
74
|
+
}
|
|
70
75
|
getEnvService() {
|
|
71
76
|
return this.envService;
|
|
72
77
|
}
|
package/lib/function/index.js
CHANGED
|
@@ -327,8 +327,16 @@ class FunctionService {
|
|
|
327
327
|
* @returns {Promise<IFunctionLogRes>}
|
|
328
328
|
*/
|
|
329
329
|
async getFunctionLogs(options) {
|
|
330
|
-
|
|
330
|
+
let { name, offset = 0, limit = 10, order, orderBy, startTime, endTime, requestId } = options;
|
|
331
331
|
const { namespace } = this.getFunctionConfig();
|
|
332
|
+
if (startTime && !endTime) {
|
|
333
|
+
// 自动补 endTime 为 startTime + 1d
|
|
334
|
+
endTime = (0, utils_1.formatTimeByMs)(new Date(startTime).getTime() + 24 * 3600 * 1000);
|
|
335
|
+
}
|
|
336
|
+
if (endTime && !startTime) {
|
|
337
|
+
// 自动补 startTime 为 endTime - 1d
|
|
338
|
+
startTime = (0, utils_1.formatTimeByMs)(new Date(endTime).getTime() - 24 * 3600 * 1000);
|
|
339
|
+
}
|
|
332
340
|
const params = {
|
|
333
341
|
Namespace: namespace,
|
|
334
342
|
FunctionName: name,
|
package/lib/index.js
CHANGED
|
@@ -49,6 +49,9 @@ class CloudBase {
|
|
|
49
49
|
get cloudrun() {
|
|
50
50
|
return this.currentEnvironment().getCloudRunService();
|
|
51
51
|
}
|
|
52
|
+
get agent() {
|
|
53
|
+
return this.currentEnvironment().getAgentService();
|
|
54
|
+
}
|
|
52
55
|
get storage() {
|
|
53
56
|
return this.currentEnvironment().getStorageService();
|
|
54
57
|
}
|
package/lib/utils/index.js
CHANGED
|
@@ -17,9 +17,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.guid6 = void 0;
|
|
20
|
+
exports.formatTimeByMs = exports.formatTimeValue = exports.guid6 = void 0;
|
|
21
21
|
exports.compressToZip = compressToZip;
|
|
22
22
|
exports.downloadAndExtractRemoteZip = downloadAndExtractRemoteZip;
|
|
23
|
+
exports.upload = upload;
|
|
23
24
|
exports.getRuntime = getRuntime;
|
|
24
25
|
exports.getEnvVar = getEnvVar;
|
|
25
26
|
exports.rsaEncrypt = rsaEncrypt;
|
|
@@ -69,8 +70,8 @@ async function compressToZip(option) {
|
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @param {string} downloadUrl
|
|
73
|
+
* 下载并解压压缩包到指定目录
|
|
74
|
+
* @param {string} downloadUrl 压缩包下载地址
|
|
74
75
|
* @param {string} targetPath 目标路径
|
|
75
76
|
* @returns {Promise<void>}
|
|
76
77
|
* @throws 当下载失败或解压失败时抛出错误
|
|
@@ -126,6 +127,46 @@ async function downloadAndExtractRemoteZip(downloadUrl, targetPath) {
|
|
|
126
127
|
}
|
|
127
128
|
});
|
|
128
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* 将文件上传到指定 URL 地址
|
|
132
|
+
* @param {Object} options - 上传配置项
|
|
133
|
+
* @param {string} options.url - 目标上传地址
|
|
134
|
+
* @param {File|Blob|Buffer} options.file - 要上传的文件对象
|
|
135
|
+
* @param {string} [options.method='POST'] - HTTP 方法,默认为 POST
|
|
136
|
+
* @param {Object} [options.headers={}] - 自定义请求头
|
|
137
|
+
* @param {boolean} [options.withCredentials=false] - 是否携带跨域凭据
|
|
138
|
+
*/
|
|
139
|
+
function upload({ url, file, method = 'POST', headers = {}, withCredentials = false }) {
|
|
140
|
+
return (0, http_request_1.fetchStream)(url, {
|
|
141
|
+
method,
|
|
142
|
+
headers,
|
|
143
|
+
body: file,
|
|
144
|
+
credentials: withCredentials ? 'include' : 'same-origin'
|
|
145
|
+
})
|
|
146
|
+
.then(async (response) => {
|
|
147
|
+
const text = await response.text();
|
|
148
|
+
const dataMeta = {
|
|
149
|
+
data: null,
|
|
150
|
+
context: {
|
|
151
|
+
response,
|
|
152
|
+
file
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
try {
|
|
156
|
+
dataMeta.data = JSON.parse(text);
|
|
157
|
+
}
|
|
158
|
+
catch (e) {
|
|
159
|
+
// If parsing fails, keep data as null
|
|
160
|
+
}
|
|
161
|
+
if (!response.ok) {
|
|
162
|
+
throw new Error(`${response.status} ${response.statusText} HTTP ERROR`);
|
|
163
|
+
}
|
|
164
|
+
return dataMeta;
|
|
165
|
+
})
|
|
166
|
+
.catch(error => {
|
|
167
|
+
throw error; // 或者可以在这里进行错误转换
|
|
168
|
+
});
|
|
169
|
+
}
|
|
129
170
|
function getRuntime() {
|
|
130
171
|
return process.env[constant_1.ENV_NAME.ENV_RUNENV];
|
|
131
172
|
}
|
|
@@ -181,3 +222,19 @@ async function fetchTemplates(types) {
|
|
|
181
222
|
});
|
|
182
223
|
return responseData.data.filter((item) => lodash_1.default.intersection(types, item.funcTypes).length > 0);
|
|
183
224
|
}
|
|
225
|
+
const formatTimeValue = (num) => {
|
|
226
|
+
return num < 10 ? `0${num}` : `${num}`;
|
|
227
|
+
};
|
|
228
|
+
exports.formatTimeValue = formatTimeValue;
|
|
229
|
+
const formatTimeByMs = (ms) => {
|
|
230
|
+
// 毫秒时间戳转换为 2025-07-19 09:00:00这种格式
|
|
231
|
+
const time = new Date(ms);
|
|
232
|
+
const year = time.getFullYear();
|
|
233
|
+
const month = time.getMonth() + 1;
|
|
234
|
+
const date = time.getDate();
|
|
235
|
+
const hour = time.getHours();
|
|
236
|
+
const minute = time.getMinutes();
|
|
237
|
+
const second = time.getSeconds();
|
|
238
|
+
return `${year}-${(0, exports.formatTimeValue)(month)}-${(0, exports.formatTimeValue)(date)} ${(0, exports.formatTimeValue)(hour)}:${(0, exports.formatTimeValue)(minute)}:${(0, exports.formatTimeValue)(second)}`;
|
|
239
|
+
};
|
|
240
|
+
exports.formatTimeByMs = formatTimeByMs;
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Environment } from '../environment';
|
|
2
|
+
import { ICreateFunctionAgentParams } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Agent 管理类
|
|
5
|
+
*/
|
|
6
|
+
export declare class AgentService {
|
|
7
|
+
private environment;
|
|
8
|
+
private tcbService;
|
|
9
|
+
constructor(environment: Environment);
|
|
10
|
+
/**
|
|
11
|
+
* 创建函数型 Agent
|
|
12
|
+
* @param {string} [cwd=process.cwd()] 工作目录
|
|
13
|
+
* @param {ICreateFunctionAgentParams} agentInfo Agent 信息
|
|
14
|
+
* @returns {Promise<{ BotId: string; RequestId: string }>} Agent 创建结果
|
|
15
|
+
*/
|
|
16
|
+
createFunctionAgent(cwd: string, agentInfo: ICreateFunctionAgentParams): Promise<{
|
|
17
|
+
BotId: string;
|
|
18
|
+
RequestId: string;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ICreateFunctionAgentParams {
|
|
2
|
+
/**
|
|
3
|
+
* 智能体名称
|
|
4
|
+
* @example "hello"
|
|
5
|
+
*/
|
|
6
|
+
Name: string;
|
|
7
|
+
/**
|
|
8
|
+
* 智能体ID
|
|
9
|
+
* @example "ibot-aaa-bbb"
|
|
10
|
+
*/
|
|
11
|
+
BotId: string;
|
|
12
|
+
/**
|
|
13
|
+
* 智能体简介
|
|
14
|
+
* @example "这是一个智能体"
|
|
15
|
+
*/
|
|
16
|
+
Introduction?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 智能体头像
|
|
19
|
+
* @example "https://picsum.photos/200"
|
|
20
|
+
*/
|
|
21
|
+
Avatar?: string;
|
|
22
|
+
}
|
package/types/environment.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DatabaseService } from './database';
|
|
2
2
|
import { FunctionService } from './function';
|
|
3
3
|
import { CloudRunService } from './cloudrun';
|
|
4
|
+
import { AgentService } from './agent';
|
|
4
5
|
import { StorageService } from './storage';
|
|
5
6
|
import { EnvService } from './env';
|
|
6
7
|
import { CommonService } from './common';
|
|
@@ -19,6 +20,7 @@ export declare class Environment {
|
|
|
19
20
|
private envType?;
|
|
20
21
|
private functionService;
|
|
21
22
|
private cloudRunService;
|
|
23
|
+
private agentService;
|
|
22
24
|
private databaseService;
|
|
23
25
|
private storageService;
|
|
24
26
|
private envService;
|
|
@@ -35,6 +37,7 @@ export declare class Environment {
|
|
|
35
37
|
getDatabaseService(): DatabaseService;
|
|
36
38
|
getFunctionService(): FunctionService;
|
|
37
39
|
getCloudRunService(): CloudRunService;
|
|
40
|
+
getAgentService(): AgentService;
|
|
38
41
|
getEnvService(): EnvService;
|
|
39
42
|
getHostingService(): HostingService;
|
|
40
43
|
getThirdService(): ThirdService;
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnvService } from './env';
|
|
2
2
|
import { FunctionService } from './function';
|
|
3
3
|
import { CloudRunService } from './cloudrun';
|
|
4
|
+
import { AgentService } from './agent';
|
|
4
5
|
import { StorageService } from './storage';
|
|
5
6
|
import { DatabaseService } from './database';
|
|
6
7
|
import { CommonService } from './common';
|
|
@@ -39,6 +40,7 @@ declare class CloudBase {
|
|
|
39
40
|
currentEnvironment(): Environment;
|
|
40
41
|
get functions(): FunctionService;
|
|
41
42
|
get cloudrun(): CloudRunService;
|
|
43
|
+
get agent(): AgentService;
|
|
42
44
|
get storage(): StorageService;
|
|
43
45
|
get database(): DatabaseService;
|
|
44
46
|
get hosting(): HostingService;
|
package/types/utils/index.d.ts
CHANGED
|
@@ -14,13 +14,35 @@ interface IZipOption {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function compressToZip(option: IZipOption): Promise<unknown>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param {string} downloadUrl
|
|
17
|
+
* 下载并解压压缩包到指定目录
|
|
18
|
+
* @param {string} downloadUrl 压缩包下载地址
|
|
19
19
|
* @param {string} targetPath 目标路径
|
|
20
20
|
* @returns {Promise<void>}
|
|
21
21
|
* @throws 当下载失败或解压失败时抛出错误
|
|
22
22
|
*/
|
|
23
23
|
export declare function downloadAndExtractRemoteZip(downloadUrl: string, targetPath: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* 将文件上传到指定 URL 地址
|
|
26
|
+
* @param {Object} options - 上传配置项
|
|
27
|
+
* @param {string} options.url - 目标上传地址
|
|
28
|
+
* @param {File|Blob|Buffer} options.file - 要上传的文件对象
|
|
29
|
+
* @param {string} [options.method='POST'] - HTTP 方法,默认为 POST
|
|
30
|
+
* @param {Object} [options.headers={}] - 自定义请求头
|
|
31
|
+
* @param {boolean} [options.withCredentials=false] - 是否携带跨域凭据
|
|
32
|
+
*/
|
|
33
|
+
export declare function upload({ url, file, method, headers, withCredentials }: {
|
|
34
|
+
url: string;
|
|
35
|
+
file: File | Blob | Buffer;
|
|
36
|
+
method?: string;
|
|
37
|
+
headers?: Record<string, any>;
|
|
38
|
+
withCredentials?: boolean;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
data: any;
|
|
41
|
+
context: {
|
|
42
|
+
response: import("node-fetch").Response;
|
|
43
|
+
file: Buffer | File | Blob;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
24
46
|
export declare function getRuntime(): string;
|
|
25
47
|
export declare function getEnvVar(envName: string): string;
|
|
26
48
|
export declare function rsaEncrypt(data: string): string;
|
|
@@ -33,3 +55,5 @@ export declare function upperCaseObjKey(object: any): any;
|
|
|
33
55
|
* @returns
|
|
34
56
|
*/
|
|
35
57
|
export declare function fetchTemplates(types: ('scfFunc' | 'tcbrFunc' | 'tcbrContainer')[]): Promise<ITemplate[]>;
|
|
58
|
+
export declare const formatTimeValue: (num: any) => string;
|
|
59
|
+
export declare const formatTimeByMs: (ms: number) => string;
|
|
File without changes
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
language: objective-c
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
env:
|
|
5
|
-
global:
|
|
6
|
-
- secure: "gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U="
|
|
7
|
-
- secure: "jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0="
|
|
8
|
-
matrix:
|
|
9
|
-
- NODE_VERSION="v13"
|
|
10
|
-
- NODE_VERSION="v12"
|
|
11
|
-
- NODE_VERSION="v11"
|
|
12
|
-
- NODE_VERSION="v10"
|
|
13
|
-
- NODE_VERSION="v9"
|
|
14
|
-
- NODE_VERSION="v8"
|
|
15
|
-
- NODE_VERSION="v7"
|
|
16
|
-
- NODE_VERSION="v6"
|
|
17
|
-
|
|
18
|
-
before_install:
|
|
19
|
-
|
|
20
|
-
- echo $TRAVIS_OS_NAME
|
|
21
|
-
|
|
22
|
-
# commit
|
|
23
|
-
# ------------------------
|
|
24
|
-
# The commit message is used to determine the whether to manually
|
|
25
|
-
# invoke a binary publish
|
|
26
|
-
|
|
27
|
-
- COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
|
|
28
|
-
|
|
29
|
-
# node
|
|
30
|
-
# ------------------------
|
|
31
|
-
|
|
32
|
-
- export PATH=./node_modules/.bin/:$PATH
|
|
33
|
-
- rm -rf ~/.nvm && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
|
|
34
|
-
- source ~/.nvm/nvm.sh
|
|
35
|
-
- nvm install $NODE_VERSION
|
|
36
|
-
- nvm use $NODE_VERSION
|
|
37
|
-
- npm install -g npm@3
|
|
38
|
-
- node --version
|
|
39
|
-
- npm --version
|
|
40
|
-
- nvm --version
|
|
41
|
-
|
|
42
|
-
# publish dependencies
|
|
43
|
-
# ------------------------
|
|
44
|
-
|
|
45
|
-
- npm install node-gyp -g
|
|
46
|
-
- npm install aws-sdk
|
|
47
|
-
|
|
48
|
-
install:
|
|
49
|
-
|
|
50
|
-
# in the first instance we build from source to create the initial binary
|
|
51
|
-
# which can then be used to create a package
|
|
52
|
-
|
|
53
|
-
- npm install --build-from-source
|
|
54
|
-
- npm test
|
|
55
|
-
|
|
56
|
-
before_script:
|
|
57
|
-
|
|
58
|
-
# Detemine if a publish is required.
|
|
59
|
-
#
|
|
60
|
-
# a) we are building a tag
|
|
61
|
-
# b) we put [publish binary] in the commit message
|
|
62
|
-
|
|
63
|
-
- PUBLISH_BINARY=false
|
|
64
|
-
|
|
65
|
-
- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi; # a
|
|
66
|
-
- if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then PUBLISH_BINARY=true; fi; # b
|
|
67
|
-
|
|
68
|
-
# package & publish
|
|
69
|
-
# ------------------------
|
|
70
|
-
|
|
71
|
-
- if [[ $PUBLISH_BINARY == true ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi;
|
|
72
|
-
|
|
73
|
-
# clean-up
|
|
74
|
-
# ------------------------
|
|
75
|
-
|
|
76
|
-
- ./node_modules/.bin/node-pre-gyp clean
|
|
77
|
-
- node-gyp clean
|
|
78
|
-
|
|
79
|
-
script:
|
|
80
|
-
|
|
81
|
-
# validate
|
|
82
|
-
# ------------------------
|
|
83
|
-
# Post publishing a release verify that installing will pull down latest
|
|
84
|
-
# binary from remote host
|
|
85
|
-
|
|
86
|
-
- INSTALL_RESULT=0
|
|
87
|
-
- if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi;
|
|
88
|
-
|
|
89
|
-
- ./node_modules/.bin/node-pre-gyp clean
|
|
90
|
-
|
|
91
|
-
# failure?
|
|
92
|
-
# ------------------------
|
|
93
|
-
# if install returned non zero (errored) then we first unpublish and then
|
|
94
|
-
# call false so travis will bail at this line.
|
|
95
|
-
|
|
96
|
-
- if [[ $INSTALL_RESULT != 0 ]]; then ./node_modules/.bin/node-pre-gyp unpublish; fi;
|
|
97
|
-
- if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi;
|
|
98
|
-
|
|
99
|
-
after_success:
|
|
100
|
-
|
|
101
|
-
# display all published binaries
|
|
102
|
-
|
|
103
|
-
- npm run node-pre-gyp info
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
If you are NOT on OS X and have come here to file an issue about compatibility problems,
|
|
2
|
-
please stop and go to #115 for your answer.
|
|
3
|
-
|
|
4
|
-
You can look through many other similar closed issues as well if you're interested:
|
|
5
|
-
https://github.com/strongloop/fsevents/search?utf8=%E2%9C%93&q=%22notsup%22+OR+%22EBADPLATFORM%22&type=Issues.
|
|
6
|
-
|
|
7
|
-
If you are here to report an issue observed while using this module on OS X, please delete
|
|
8
|
-
all this pre-filled text then go ahead and submit your report.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
-----------
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2010-2014 Philipp Dunkel
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in
|
|
14
|
-
all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
THE SOFTWARE.
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# fsevents [](https://nodei.co/npm/fsevents/)
|
|
2
|
-
|
|
3
|
-
Native access to OS X FSEvents in [Node.js](http://nodejs.org/)
|
|
4
|
-
|
|
5
|
-
The FSEvents API in OS X allows applications to register for notifications of
|
|
6
|
-
changes to a given directory tree. It is a very fast and lightweight alternative
|
|
7
|
-
to kqueue.
|
|
8
|
-
|
|
9
|
-
This is a low-level library. For a cross-compatible file watching module that
|
|
10
|
-
uses fsevents, check out [Chokidar](https://www.npmjs.com/package/chokidar).
|
|
11
|
-
|
|
12
|
-
* [Module Site & GitHub](https://github.com/strongloop/fsevents)
|
|
13
|
-
* [NPM Page](https://npmjs.org/package/fsevents)
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
$ npm install fsevents
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
var fsevents = require('fsevents');
|
|
23
|
-
var watcher = fsevents(__dirname);
|
|
24
|
-
watcher.on('fsevent', function(path, flags, id) { }); // RAW Event as emitted by OS-X
|
|
25
|
-
watcher.on('change', function(path, info) { }); // Common Event for all changes
|
|
26
|
-
watcher.start() // To start observation
|
|
27
|
-
watcher.stop() // To end observation
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Events
|
|
31
|
-
|
|
32
|
-
* *fsevent* - RAW Event as emitted by OS-X
|
|
33
|
-
* *change* - Common Event for all changes
|
|
34
|
-
* *created* - A File-System-Item has been created
|
|
35
|
-
* *deleted* - A File-System-Item has been deleted
|
|
36
|
-
* *modified* - A File-System-Item has been modified
|
|
37
|
-
* *moved-out* - A File-System-Item has been moved away from this location
|
|
38
|
-
* *moved-in* - A File-System-Item has been moved into this location
|
|
39
|
-
|
|
40
|
-
All events except *fsevent* take an *info* object as the second parameter of the callback. The structure of this object is:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
{
|
|
44
|
-
"event": "<event-type>",
|
|
45
|
-
"id": <eventi-id>,
|
|
46
|
-
"path": "<path-that-this-is-about>",
|
|
47
|
-
"type": "<file|directory|symlink>",
|
|
48
|
-
"changes": {
|
|
49
|
-
"inode": true, // Has the iNode Meta-Information changed
|
|
50
|
-
"finder": false, // Has the Finder Meta-Data changed
|
|
51
|
-
"access": false, // Have the access permissions changed
|
|
52
|
-
"xattrs": false // Have the xAttributes changed
|
|
53
|
-
},
|
|
54
|
-
"flags": <raw-flags>
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## MIT License
|
|
59
|
-
|
|
60
|
-
Copyright (C) 2010-2014 Philipp Dunkel
|
|
61
|
-
|
|
62
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
63
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
64
|
-
in the Software without restriction, including without limitation the rights
|
|
65
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
66
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
67
|
-
furnished to do so, subject to the following conditions:
|
|
68
|
-
|
|
69
|
-
The above copyright notice and this permission notice shall be included in
|
|
70
|
-
all copies or substantial portions of the Software.
|
|
71
|
-
|
|
72
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
73
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
74
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
75
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
76
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
77
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
78
|
-
THE SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"targets": [
|
|
3
|
-
{ "target_name": "" }
|
|
4
|
-
],
|
|
5
|
-
"conditions": [
|
|
6
|
-
['OS=="mac"', {
|
|
7
|
-
"targets": [{
|
|
8
|
-
"target_name": "fse",
|
|
9
|
-
"sources": ["fsevents.cc"],
|
|
10
|
-
"xcode_settings": {
|
|
11
|
-
"OTHER_LDFLAGS": [
|
|
12
|
-
"-framework CoreFoundation -framework CoreServices"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"include_dirs": [
|
|
16
|
-
"<!(node -e \"require('nan')\")"
|
|
17
|
-
]
|
|
18
|
-
}]
|
|
19
|
-
}]
|
|
20
|
-
]
|
|
21
|
-
}
|