@ontos-ai/knowhere-claw 0.2.1 → 0.2.2
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/dist/_virtual/_rolldown/runtime.js +1 -35
- package/dist/client.js +1 -1
- package/dist/graph-builder.js +8 -4
- package/dist/kg-service.js +25 -28
- package/dist/parser.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -1
- package/dist/node_modules/.pnpm/@knowhere-ai_sdk@0.1.1/node_modules/@knowhere-ai/sdk/dist/index.js +0 -717
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -212
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -35
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.js +0 -2609
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -142
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -103
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -199
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.js +0 -67
- package/dist/node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js +0 -59
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +0 -11
- package/dist/node_modules/.pnpm/aproba@2.1.0/node_modules/aproba/index.js +0 -119
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/index.js +0 -13
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-base.js +0 -16
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-group.js +0 -98
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -37
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js +0 -83
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/fetch.js +0 -170
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/xhr.js +0 -106
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js +0 -57
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js +0 -90
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/Axios.js +0 -174
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosError.js +0 -70
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/AxiosHeaders.js +0 -204
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js +0 -60
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js +0 -52
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js +0 -81
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js +0 -25
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js +0 -107
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -50
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js +0 -40
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/composeSignals.js +0 -39
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/cookies.js +0 -31
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js +0 -36
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js +0 -29
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js +0 -38
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js +0 -151
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/trackStream.js +0 -69
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/validator.js +0 -76
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/browser/index.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/common/utils.js +0 -46
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js +0 -698
- package/dist/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -53
- package/dist/node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js +0 -132
- package/dist/node_modules/.pnpm/color-support@1.1.3/node_modules/color-support/browser.js +0 -18
- package/dist/node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js +0 -19
- package/dist/node_modules/.pnpm/console-control-strings@1.1.0/node_modules/console-control-strings/index.js +0 -104
- package/dist/node_modules/.pnpm/delegates@1.0.0/node_modules/delegates/index.js +0 -104
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js +0 -221
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js +0 -26
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js +0 -48
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js +0 -24
- package/dist/node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js +0 -10
- package/dist/node_modules/.pnpm/fflate@0.8.2/node_modules/fflate/esm/browser.js +0 -426
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js +0 -120
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js +0 -100
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js +0 -43
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js +0 -53
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -89
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -35
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js +0 -81
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js +0 -113
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js +0 -29
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js +0 -22
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js +0 -20
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -33
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js +0 -17
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js +0 -56
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js +0 -49
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js +0 -30
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js +0 -18
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js +0 -27
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js +0 -15
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js +0 -131
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js +0 -34
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js +0 -51
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js +0 -171
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js +0 -21
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js +0 -27
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js +0 -9
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js +0 -224
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js +0 -48
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js +0 -46
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js +0 -155
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js +0 -14
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js +0 -8
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js +0 -10
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js +0 -58
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js +0 -99
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js +0 -67
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js +0 -22
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js +0 -162
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js +0 -451
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js +0 -280
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +0 -20
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +0 -362
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +0 -92
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +0 -255
- package/dist/node_modules/.pnpm/has-unicode@2.0.1/node_modules/has-unicode/index.js +0 -14
- package/dist/node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js +0 -45
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js +0 -14
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js +0 -68
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js +0 -19
- package/dist/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +0 -3110
- package/dist/node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js +0 -578
- package/dist/node_modules/.pnpm/nodejieba@2.6.0/node_modules/nodejieba/index.js +0 -46
- package/dist/node_modules/.pnpm/nopt@5.0.0/node_modules/nopt/lib/nopt.js +0 -330
- package/dist/node_modules/.pnpm/npmlog@5.0.1/node_modules/npmlog/log.js +0 -305
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/.pnpm/once@1.4.0/node_modules/once/once.js +0 -44
- package/dist/node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js +0 -88
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js +0 -19
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js +0 -666
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js +0 -89
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js +0 -423
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -172
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -243
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -77
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -87
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -10
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -80
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js +0 -21
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -8
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js +0 -23
- package/dist/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js +0 -229
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -79
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -282
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -186
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -34
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -14
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -99
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -8
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -36
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -84
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -45
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -64
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -35
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -102
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -11
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -17
- package/dist/node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js +0 -12
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +0 -130
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +0 -16
- package/dist/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js +0 -30
- package/dist/node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js +0 -10
- package/dist/node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js +0 -26
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +0 -59
- package/dist/node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js +0 -52
- package/dist/node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js +0 -26
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js
|
|
3
|
-
var require_old = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
var pathModule = __require("path");
|
|
5
|
-
var isWindows = process.platform === "win32";
|
|
6
|
-
var fs = __require("fs");
|
|
7
|
-
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
8
|
-
function rethrow() {
|
|
9
|
-
var callback;
|
|
10
|
-
if (DEBUG) {
|
|
11
|
-
var backtrace = /* @__PURE__ */ new Error();
|
|
12
|
-
callback = debugCallback;
|
|
13
|
-
} else callback = missingCallback;
|
|
14
|
-
return callback;
|
|
15
|
-
function debugCallback(err) {
|
|
16
|
-
if (err) {
|
|
17
|
-
backtrace.message = err.message;
|
|
18
|
-
err = backtrace;
|
|
19
|
-
missingCallback(err);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function missingCallback(err) {
|
|
23
|
-
if (err) {
|
|
24
|
-
if (process.throwDeprecation) throw err;
|
|
25
|
-
else if (!process.noDeprecation) {
|
|
26
|
-
var msg = "fs: missing callback " + (err.stack || err.message);
|
|
27
|
-
if (process.traceDeprecation) console.trace(msg);
|
|
28
|
-
else console.error(msg);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function maybeCallback(cb) {
|
|
34
|
-
return typeof cb === "function" ? cb : rethrow();
|
|
35
|
-
}
|
|
36
|
-
pathModule.normalize;
|
|
37
|
-
if (isWindows) var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
|
38
|
-
else var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
|
39
|
-
if (isWindows) var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
40
|
-
else var splitRootRe = /^[\/]*/;
|
|
41
|
-
exports.realpathSync = function realpathSync(p, cache) {
|
|
42
|
-
p = pathModule.resolve(p);
|
|
43
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) return cache[p];
|
|
44
|
-
var original = p, seenLinks = {}, knownHard = {};
|
|
45
|
-
var pos;
|
|
46
|
-
var current;
|
|
47
|
-
var base;
|
|
48
|
-
var previous;
|
|
49
|
-
start();
|
|
50
|
-
function start() {
|
|
51
|
-
var m = splitRootRe.exec(p);
|
|
52
|
-
pos = m[0].length;
|
|
53
|
-
current = m[0];
|
|
54
|
-
base = m[0];
|
|
55
|
-
previous = "";
|
|
56
|
-
if (isWindows && !knownHard[base]) {
|
|
57
|
-
fs.lstatSync(base);
|
|
58
|
-
knownHard[base] = true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
while (pos < p.length) {
|
|
62
|
-
nextPartRe.lastIndex = pos;
|
|
63
|
-
var result = nextPartRe.exec(p);
|
|
64
|
-
previous = current;
|
|
65
|
-
current += result[0];
|
|
66
|
-
base = previous + result[1];
|
|
67
|
-
pos = nextPartRe.lastIndex;
|
|
68
|
-
if (knownHard[base] || cache && cache[base] === base) continue;
|
|
69
|
-
var resolvedLink;
|
|
70
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) resolvedLink = cache[base];
|
|
71
|
-
else {
|
|
72
|
-
var stat = fs.lstatSync(base);
|
|
73
|
-
if (!stat.isSymbolicLink()) {
|
|
74
|
-
knownHard[base] = true;
|
|
75
|
-
if (cache) cache[base] = base;
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
var linkTarget = null;
|
|
79
|
-
if (!isWindows) {
|
|
80
|
-
var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
|
|
81
|
-
if (seenLinks.hasOwnProperty(id)) linkTarget = seenLinks[id];
|
|
82
|
-
}
|
|
83
|
-
if (linkTarget === null) {
|
|
84
|
-
fs.statSync(base);
|
|
85
|
-
linkTarget = fs.readlinkSync(base);
|
|
86
|
-
}
|
|
87
|
-
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
88
|
-
if (cache) cache[base] = resolvedLink;
|
|
89
|
-
if (!isWindows) seenLinks[id] = linkTarget;
|
|
90
|
-
}
|
|
91
|
-
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
92
|
-
start();
|
|
93
|
-
}
|
|
94
|
-
if (cache) cache[original] = p;
|
|
95
|
-
return p;
|
|
96
|
-
};
|
|
97
|
-
exports.realpath = function realpath(p, cache, cb) {
|
|
98
|
-
if (typeof cb !== "function") {
|
|
99
|
-
cb = maybeCallback(cache);
|
|
100
|
-
cache = null;
|
|
101
|
-
}
|
|
102
|
-
p = pathModule.resolve(p);
|
|
103
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) return process.nextTick(cb.bind(null, null, cache[p]));
|
|
104
|
-
var original = p, seenLinks = {}, knownHard = {};
|
|
105
|
-
var pos;
|
|
106
|
-
var current;
|
|
107
|
-
var base;
|
|
108
|
-
var previous;
|
|
109
|
-
start();
|
|
110
|
-
function start() {
|
|
111
|
-
var m = splitRootRe.exec(p);
|
|
112
|
-
pos = m[0].length;
|
|
113
|
-
current = m[0];
|
|
114
|
-
base = m[0];
|
|
115
|
-
previous = "";
|
|
116
|
-
if (isWindows && !knownHard[base]) fs.lstat(base, function(err) {
|
|
117
|
-
if (err) return cb(err);
|
|
118
|
-
knownHard[base] = true;
|
|
119
|
-
LOOP();
|
|
120
|
-
});
|
|
121
|
-
else process.nextTick(LOOP);
|
|
122
|
-
}
|
|
123
|
-
function LOOP() {
|
|
124
|
-
if (pos >= p.length) {
|
|
125
|
-
if (cache) cache[original] = p;
|
|
126
|
-
return cb(null, p);
|
|
127
|
-
}
|
|
128
|
-
nextPartRe.lastIndex = pos;
|
|
129
|
-
var result = nextPartRe.exec(p);
|
|
130
|
-
previous = current;
|
|
131
|
-
current += result[0];
|
|
132
|
-
base = previous + result[1];
|
|
133
|
-
pos = nextPartRe.lastIndex;
|
|
134
|
-
if (knownHard[base] || cache && cache[base] === base) return process.nextTick(LOOP);
|
|
135
|
-
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) return gotResolvedLink(cache[base]);
|
|
136
|
-
return fs.lstat(base, gotStat);
|
|
137
|
-
}
|
|
138
|
-
function gotStat(err, stat) {
|
|
139
|
-
if (err) return cb(err);
|
|
140
|
-
if (!stat.isSymbolicLink()) {
|
|
141
|
-
knownHard[base] = true;
|
|
142
|
-
if (cache) cache[base] = base;
|
|
143
|
-
return process.nextTick(LOOP);
|
|
144
|
-
}
|
|
145
|
-
if (!isWindows) {
|
|
146
|
-
var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
|
|
147
|
-
if (seenLinks.hasOwnProperty(id)) return gotTarget(null, seenLinks[id], base);
|
|
148
|
-
}
|
|
149
|
-
fs.stat(base, function(err) {
|
|
150
|
-
if (err) return cb(err);
|
|
151
|
-
fs.readlink(base, function(err, target) {
|
|
152
|
-
if (!isWindows) seenLinks[id] = target;
|
|
153
|
-
gotTarget(err, target);
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
function gotTarget(err, target, base) {
|
|
158
|
-
if (err) return cb(err);
|
|
159
|
-
var resolvedLink = pathModule.resolve(previous, target);
|
|
160
|
-
if (cache) cache[base] = resolvedLink;
|
|
161
|
-
gotResolvedLink(resolvedLink);
|
|
162
|
-
}
|
|
163
|
-
function gotResolvedLink(resolvedLink) {
|
|
164
|
-
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
165
|
-
start();
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
}));
|
|
169
|
-
//#endregion
|
|
170
|
-
export default require_old();
|
|
171
|
-
export { require_old };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_spin } from "./spin.js";
|
|
3
|
-
import { require_progress_bar } from "./progress-bar.js";
|
|
4
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js
|
|
5
|
-
var require_base_theme = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
var spin = require_spin();
|
|
7
|
-
var progressBar = require_progress_bar();
|
|
8
|
-
module.exports = {
|
|
9
|
-
activityIndicator: function(values, theme, width) {
|
|
10
|
-
if (values.spun == null) return;
|
|
11
|
-
return spin(theme, values.spun);
|
|
12
|
-
},
|
|
13
|
-
progressbar: function(values, theme, width) {
|
|
14
|
-
if (values.completed == null) return;
|
|
15
|
-
return progressBar(theme, width, values.completed);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}));
|
|
19
|
-
//#endregion
|
|
20
|
-
export default require_base_theme();
|
|
21
|
-
export { require_base_theme };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js
|
|
3
|
-
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
-
var util = __require("util");
|
|
5
|
-
var User = exports.User = function User(msg) {
|
|
6
|
-
var err = new Error(msg);
|
|
7
|
-
Error.captureStackTrace(err, User);
|
|
8
|
-
err.code = "EGAUGE";
|
|
9
|
-
return err;
|
|
10
|
-
};
|
|
11
|
-
exports.MissingTemplateValue = function MissingTemplateValue(item, values) {
|
|
12
|
-
var err = new User(util.format("Missing template value \"%s\"", item.type));
|
|
13
|
-
Error.captureStackTrace(err, MissingTemplateValue);
|
|
14
|
-
err.template = item;
|
|
15
|
-
err.values = values;
|
|
16
|
-
return err;
|
|
17
|
-
};
|
|
18
|
-
exports.Internal = function Internal(msg) {
|
|
19
|
-
var err = new Error(msg);
|
|
20
|
-
Error.captureStackTrace(err, Internal);
|
|
21
|
-
err.code = "EGAUGEINTERNAL";
|
|
22
|
-
return err;
|
|
23
|
-
};
|
|
24
|
-
}));
|
|
25
|
-
//#endregion
|
|
26
|
-
export default require_error();
|
|
27
|
-
export { require_error };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_browser } from "../../../color-support@1.1.3/node_modules/color-support/browser.js";
|
|
3
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js
|
|
4
|
-
var require_has_color = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
module.exports = require_browser()().hasBasic;
|
|
6
|
-
}));
|
|
7
|
-
//#endregion
|
|
8
|
-
export default require_has_color();
|
|
9
|
-
export { require_has_color };
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_plumbing } from "./plumbing.js";
|
|
3
|
-
import { require_has_unicode } from "../../../has-unicode@2.0.1/node_modules/has-unicode/index.js";
|
|
4
|
-
import { require_has_color } from "./has-color.js";
|
|
5
|
-
import { require_signal_exit } from "../../../signal-exit@3.0.7/node_modules/signal-exit/index.js";
|
|
6
|
-
import { require_themes } from "./themes.js";
|
|
7
|
-
import { require_set_interval } from "./set-interval.js";
|
|
8
|
-
import { require_process } from "./process.js";
|
|
9
|
-
import { require_set_immediate } from "./set-immediate.js";
|
|
10
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js
|
|
11
|
-
var require_gauge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12
|
-
var Plumbing = require_plumbing();
|
|
13
|
-
var hasUnicode = require_has_unicode();
|
|
14
|
-
var hasColor = require_has_color();
|
|
15
|
-
var onExit = require_signal_exit();
|
|
16
|
-
var defaultThemes = require_themes();
|
|
17
|
-
var setInterval = require_set_interval();
|
|
18
|
-
var process = require_process();
|
|
19
|
-
var setImmediate = require_set_immediate();
|
|
20
|
-
module.exports = Gauge;
|
|
21
|
-
function callWith(obj, method) {
|
|
22
|
-
return function() {
|
|
23
|
-
return method.call(obj);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function Gauge(arg1, arg2) {
|
|
27
|
-
var options, writeTo;
|
|
28
|
-
if (arg1 && arg1.write) {
|
|
29
|
-
writeTo = arg1;
|
|
30
|
-
options = arg2 || {};
|
|
31
|
-
} else if (arg2 && arg2.write) {
|
|
32
|
-
writeTo = arg2;
|
|
33
|
-
options = arg1 || {};
|
|
34
|
-
} else {
|
|
35
|
-
writeTo = process.stderr;
|
|
36
|
-
options = arg1 || arg2 || {};
|
|
37
|
-
}
|
|
38
|
-
this._status = {
|
|
39
|
-
spun: 0,
|
|
40
|
-
section: "",
|
|
41
|
-
subsection: ""
|
|
42
|
-
};
|
|
43
|
-
this._paused = false;
|
|
44
|
-
this._disabled = true;
|
|
45
|
-
this._showing = false;
|
|
46
|
-
this._onScreen = false;
|
|
47
|
-
this._needsRedraw = false;
|
|
48
|
-
this._hideCursor = options.hideCursor == null ? true : options.hideCursor;
|
|
49
|
-
this._fixedFramerate = options.fixedFramerate == null ? !/^v0\.8\./.test(process.version) : options.fixedFramerate;
|
|
50
|
-
this._lastUpdateAt = null;
|
|
51
|
-
this._updateInterval = options.updateInterval == null ? 50 : options.updateInterval;
|
|
52
|
-
this._themes = options.themes || defaultThemes;
|
|
53
|
-
this._theme = options.theme;
|
|
54
|
-
var theme = this._computeTheme(options.theme);
|
|
55
|
-
var template = options.template || [
|
|
56
|
-
{
|
|
57
|
-
type: "progressbar",
|
|
58
|
-
length: 20
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
type: "activityIndicator",
|
|
62
|
-
kerning: 1,
|
|
63
|
-
length: 1
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
type: "section",
|
|
67
|
-
kerning: 1,
|
|
68
|
-
default: ""
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
type: "subsection",
|
|
72
|
-
kerning: 1,
|
|
73
|
-
default: ""
|
|
74
|
-
}
|
|
75
|
-
];
|
|
76
|
-
this.setWriteTo(writeTo, options.tty);
|
|
77
|
-
this._gauge = new (options.Plumbing || Plumbing)(theme, template, this.getWidth());
|
|
78
|
-
this._$$doRedraw = callWith(this, this._doRedraw);
|
|
79
|
-
this._$$handleSizeChange = callWith(this, this._handleSizeChange);
|
|
80
|
-
this._cleanupOnExit = options.cleanupOnExit == null || options.cleanupOnExit;
|
|
81
|
-
this._removeOnExit = null;
|
|
82
|
-
if (options.enabled || options.enabled == null && this._tty && this._tty.isTTY) this.enable();
|
|
83
|
-
else this.disable();
|
|
84
|
-
}
|
|
85
|
-
Gauge.prototype = {};
|
|
86
|
-
Gauge.prototype.isEnabled = function() {
|
|
87
|
-
return !this._disabled;
|
|
88
|
-
};
|
|
89
|
-
Gauge.prototype.setTemplate = function(template) {
|
|
90
|
-
this._gauge.setTemplate(template);
|
|
91
|
-
if (this._showing) this._requestRedraw();
|
|
92
|
-
};
|
|
93
|
-
Gauge.prototype._computeTheme = function(theme) {
|
|
94
|
-
if (!theme) theme = {};
|
|
95
|
-
if (typeof theme === "string") theme = this._themes.getTheme(theme);
|
|
96
|
-
else if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)) {
|
|
97
|
-
var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode;
|
|
98
|
-
var useColor = theme.hasColor == null ? hasColor : theme.hasColor;
|
|
99
|
-
theme = this._themes.getDefault({
|
|
100
|
-
hasUnicode: useUnicode,
|
|
101
|
-
hasColor: useColor,
|
|
102
|
-
platform: theme.platform
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return theme;
|
|
106
|
-
};
|
|
107
|
-
Gauge.prototype.setThemeset = function(themes) {
|
|
108
|
-
this._themes = themes;
|
|
109
|
-
this.setTheme(this._theme);
|
|
110
|
-
};
|
|
111
|
-
Gauge.prototype.setTheme = function(theme) {
|
|
112
|
-
this._gauge.setTheme(this._computeTheme(theme));
|
|
113
|
-
if (this._showing) this._requestRedraw();
|
|
114
|
-
this._theme = theme;
|
|
115
|
-
};
|
|
116
|
-
Gauge.prototype._requestRedraw = function() {
|
|
117
|
-
this._needsRedraw = true;
|
|
118
|
-
if (!this._fixedFramerate) this._doRedraw();
|
|
119
|
-
};
|
|
120
|
-
Gauge.prototype.getWidth = function() {
|
|
121
|
-
return (this._tty && this._tty.columns || 80) - 1;
|
|
122
|
-
};
|
|
123
|
-
Gauge.prototype.setWriteTo = function(writeTo, tty) {
|
|
124
|
-
var enabled = !this._disabled;
|
|
125
|
-
if (enabled) this.disable();
|
|
126
|
-
this._writeTo = writeTo;
|
|
127
|
-
this._tty = tty || writeTo === process.stderr && process.stdout.isTTY && process.stdout || writeTo.isTTY && writeTo || this._tty;
|
|
128
|
-
if (this._gauge) this._gauge.setWidth(this.getWidth());
|
|
129
|
-
if (enabled) this.enable();
|
|
130
|
-
};
|
|
131
|
-
Gauge.prototype.enable = function() {
|
|
132
|
-
if (!this._disabled) return;
|
|
133
|
-
this._disabled = false;
|
|
134
|
-
if (this._tty) this._enableEvents();
|
|
135
|
-
if (this._showing) this.show();
|
|
136
|
-
};
|
|
137
|
-
Gauge.prototype.disable = function() {
|
|
138
|
-
if (this._disabled) return;
|
|
139
|
-
if (this._showing) {
|
|
140
|
-
this._lastUpdateAt = null;
|
|
141
|
-
this._showing = false;
|
|
142
|
-
this._doRedraw();
|
|
143
|
-
this._showing = true;
|
|
144
|
-
}
|
|
145
|
-
this._disabled = true;
|
|
146
|
-
if (this._tty) this._disableEvents();
|
|
147
|
-
};
|
|
148
|
-
Gauge.prototype._enableEvents = function() {
|
|
149
|
-
if (this._cleanupOnExit) this._removeOnExit = onExit(callWith(this, this.disable));
|
|
150
|
-
this._tty.on("resize", this._$$handleSizeChange);
|
|
151
|
-
if (this._fixedFramerate) {
|
|
152
|
-
this.redrawTracker = setInterval(this._$$doRedraw, this._updateInterval);
|
|
153
|
-
if (this.redrawTracker.unref) this.redrawTracker.unref();
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
Gauge.prototype._disableEvents = function() {
|
|
157
|
-
this._tty.removeListener("resize", this._$$handleSizeChange);
|
|
158
|
-
if (this._fixedFramerate) clearInterval(this.redrawTracker);
|
|
159
|
-
if (this._removeOnExit) this._removeOnExit();
|
|
160
|
-
};
|
|
161
|
-
Gauge.prototype.hide = function(cb) {
|
|
162
|
-
if (this._disabled) return cb && process.nextTick(cb);
|
|
163
|
-
if (!this._showing) return cb && process.nextTick(cb);
|
|
164
|
-
this._showing = false;
|
|
165
|
-
this._doRedraw();
|
|
166
|
-
cb && setImmediate(cb);
|
|
167
|
-
};
|
|
168
|
-
Gauge.prototype.show = function(section, completed) {
|
|
169
|
-
this._showing = true;
|
|
170
|
-
if (typeof section === "string") this._status.section = section;
|
|
171
|
-
else if (typeof section === "object") {
|
|
172
|
-
var sectionKeys = Object.keys(section);
|
|
173
|
-
for (var ii = 0; ii < sectionKeys.length; ++ii) {
|
|
174
|
-
var key = sectionKeys[ii];
|
|
175
|
-
this._status[key] = section[key];
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
if (completed != null) this._status.completed = completed;
|
|
179
|
-
if (this._disabled) return;
|
|
180
|
-
this._requestRedraw();
|
|
181
|
-
};
|
|
182
|
-
Gauge.prototype.pulse = function(subsection) {
|
|
183
|
-
this._status.subsection = subsection || "";
|
|
184
|
-
this._status.spun++;
|
|
185
|
-
if (this._disabled) return;
|
|
186
|
-
if (!this._showing) return;
|
|
187
|
-
this._requestRedraw();
|
|
188
|
-
};
|
|
189
|
-
Gauge.prototype._handleSizeChange = function() {
|
|
190
|
-
this._gauge.setWidth(this._tty.columns - 1);
|
|
191
|
-
this._requestRedraw();
|
|
192
|
-
};
|
|
193
|
-
Gauge.prototype._doRedraw = function() {
|
|
194
|
-
if (this._disabled || this._paused) return;
|
|
195
|
-
if (!this._fixedFramerate) {
|
|
196
|
-
var now = Date.now();
|
|
197
|
-
if (this._lastUpdateAt && now - this._lastUpdateAt < this._updateInterval) return;
|
|
198
|
-
this._lastUpdateAt = now;
|
|
199
|
-
}
|
|
200
|
-
if (!this._showing && this._onScreen) {
|
|
201
|
-
this._onScreen = false;
|
|
202
|
-
var result = this._gauge.hide();
|
|
203
|
-
if (this._hideCursor) result += this._gauge.showCursor();
|
|
204
|
-
return this._writeTo.write(result);
|
|
205
|
-
}
|
|
206
|
-
if (!this._showing && !this._onScreen) return;
|
|
207
|
-
if (this._showing && !this._onScreen) {
|
|
208
|
-
this._onScreen = true;
|
|
209
|
-
this._needsRedraw = true;
|
|
210
|
-
if (this._hideCursor) this._writeTo.write(this._gauge.hideCursor());
|
|
211
|
-
}
|
|
212
|
-
if (!this._needsRedraw) return;
|
|
213
|
-
if (!this._writeTo.write(this._gauge.show(this._status))) {
|
|
214
|
-
this._paused = true;
|
|
215
|
-
this._writeTo.on("drain", callWith(this, function() {
|
|
216
|
-
this._paused = false;
|
|
217
|
-
this._doRedraw();
|
|
218
|
-
}));
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}));
|
|
222
|
-
//#endregion
|
|
223
|
-
export default require_gauge();
|
|
224
|
-
export { require_gauge };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_console_control_strings } from "../../../console-control-strings@1.1.0/node_modules/console-control-strings/index.js";
|
|
3
|
-
import { require_aproba } from "../../../aproba@2.1.0/node_modules/aproba/index.js";
|
|
4
|
-
import { require_render_template } from "./render-template.js";
|
|
5
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js
|
|
6
|
-
var require_plumbing = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
-
var consoleControl = require_console_control_strings();
|
|
8
|
-
var renderTemplate = require_render_template();
|
|
9
|
-
var validate = require_aproba();
|
|
10
|
-
var Plumbing = module.exports = function(theme, template, width) {
|
|
11
|
-
if (!width) width = 80;
|
|
12
|
-
validate("OAN", [
|
|
13
|
-
theme,
|
|
14
|
-
template,
|
|
15
|
-
width
|
|
16
|
-
]);
|
|
17
|
-
this.showing = false;
|
|
18
|
-
this.theme = theme;
|
|
19
|
-
this.width = width;
|
|
20
|
-
this.template = template;
|
|
21
|
-
};
|
|
22
|
-
Plumbing.prototype = {};
|
|
23
|
-
Plumbing.prototype.setTheme = function(theme) {
|
|
24
|
-
validate("O", [theme]);
|
|
25
|
-
this.theme = theme;
|
|
26
|
-
};
|
|
27
|
-
Plumbing.prototype.setTemplate = function(template) {
|
|
28
|
-
validate("A", [template]);
|
|
29
|
-
this.template = template;
|
|
30
|
-
};
|
|
31
|
-
Plumbing.prototype.setWidth = function(width) {
|
|
32
|
-
validate("N", [width]);
|
|
33
|
-
this.width = width;
|
|
34
|
-
};
|
|
35
|
-
Plumbing.prototype.hide = function() {
|
|
36
|
-
return consoleControl.gotoSOL() + consoleControl.eraseLine();
|
|
37
|
-
};
|
|
38
|
-
Plumbing.prototype.hideCursor = consoleControl.hideCursor;
|
|
39
|
-
Plumbing.prototype.showCursor = consoleControl.showCursor;
|
|
40
|
-
Plumbing.prototype.show = function(status) {
|
|
41
|
-
var values = Object.create(this.theme);
|
|
42
|
-
for (var key in status) values[key] = status[key];
|
|
43
|
-
return renderTemplate(this.width, this.template, values).trim() + consoleControl.color("reset") + consoleControl.eraseLine() + consoleControl.gotoSOL();
|
|
44
|
-
};
|
|
45
|
-
}));
|
|
46
|
-
//#endregion
|
|
47
|
-
export default require_plumbing();
|
|
48
|
-
export { require_plumbing };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js
|
|
3
|
-
var require_process = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = process;
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default require_process();
|
|
8
|
-
export { require_process };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_string_width } from "../../../string-width@4.2.3/node_modules/string-width/index.js";
|
|
3
|
-
import { require_aproba } from "../../../aproba@2.1.0/node_modules/aproba/index.js";
|
|
4
|
-
import { require_wide_truncate } from "./wide-truncate.js";
|
|
5
|
-
import { require_render_template } from "./render-template.js";
|
|
6
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js
|
|
7
|
-
var require_progress_bar = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
|
-
var validate = require_aproba();
|
|
9
|
-
var renderTemplate = require_render_template();
|
|
10
|
-
var wideTruncate = require_wide_truncate();
|
|
11
|
-
var stringWidth = require_string_width();
|
|
12
|
-
module.exports = function(theme, width, completed) {
|
|
13
|
-
validate("ONN", [
|
|
14
|
-
theme,
|
|
15
|
-
width,
|
|
16
|
-
completed
|
|
17
|
-
]);
|
|
18
|
-
if (completed < 0) completed = 0;
|
|
19
|
-
if (completed > 1) completed = 1;
|
|
20
|
-
if (width <= 0) return "";
|
|
21
|
-
var sofar = Math.round(width * completed);
|
|
22
|
-
var rest = width - sofar;
|
|
23
|
-
return renderTemplate(width, [{
|
|
24
|
-
type: "complete",
|
|
25
|
-
value: repeat(theme.complete, sofar),
|
|
26
|
-
length: sofar
|
|
27
|
-
}, {
|
|
28
|
-
type: "remaining",
|
|
29
|
-
value: repeat(theme.remaining, rest),
|
|
30
|
-
length: rest
|
|
31
|
-
}], theme);
|
|
32
|
-
};
|
|
33
|
-
function repeat(string, width) {
|
|
34
|
-
var result = "";
|
|
35
|
-
var n = width;
|
|
36
|
-
do {
|
|
37
|
-
if (n % 2) result += string;
|
|
38
|
-
n = Math.floor(n / 2);
|
|
39
|
-
string += string;
|
|
40
|
-
} while (n && stringWidth(result) < width);
|
|
41
|
-
return wideTruncate(result, width);
|
|
42
|
-
}
|
|
43
|
-
}));
|
|
44
|
-
//#endregion
|
|
45
|
-
export default require_progress_bar();
|
|
46
|
-
export { require_progress_bar };
|