@ontos-ai/knowhere-claw 0.2.0 → 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/__tests__/channel-route.test.d.ts +1 -0
- package/dist/__tests__/ingest-tool.test.d.ts +1 -0
- package/dist/__tests__/kg-service-test-helper.d.ts +2 -0
- package/dist/__tests__/kg-service.test.d.ts +1 -0
- package/dist/__tests__/read-result-file-tool.test.d.ts +1 -0
- package/dist/__tests__/tracker-progress.test.d.ts +1 -0
- package/dist/_virtual/_rolldown/runtime.js +1 -35
- package/dist/channel-delivery.d.ts +21 -0
- package/dist/client.d.ts +33 -0
- package/dist/client.js +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/connect-builder.d.ts +48 -0
- package/dist/connect-builder.js +1 -2
- package/dist/error-message.d.ts +1 -0
- package/dist/graph-builder.d.ts +75 -0
- package/dist/graph-builder.js +9 -5
- package/dist/index.d.ts +9 -0
- package/dist/kg-service.d.ts +38 -0
- package/dist/kg-service.js +39 -33
- package/dist/parser.d.ts +16 -0
- package/dist/parser.js +1 -1
- package/dist/session.d.ts +11 -0
- package/dist/store.d.ts +79 -0
- package/dist/text.d.ts +10 -0
- package/dist/tools.d.ts +10 -0
- package/dist/tracker-progress.d.ts +10 -0
- package/dist/types.d.ts +320 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +4 -3
- 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,155 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_align } from "../../../wide-align@1.1.5/node_modules/wide-align/align.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_error } from "./error.js";
|
|
6
|
-
import { require_template_item } from "./template-item.js";
|
|
7
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js
|
|
8
|
-
var require_render_template = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9
|
-
var align = require_align();
|
|
10
|
-
var validate = require_aproba();
|
|
11
|
-
var wideTruncate = require_wide_truncate();
|
|
12
|
-
var error = require_error();
|
|
13
|
-
var TemplateItem = require_template_item();
|
|
14
|
-
function renderValueWithValues(values) {
|
|
15
|
-
return function(item) {
|
|
16
|
-
return renderValue(item, values);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
var renderTemplate = module.exports = function(width, template, values) {
|
|
20
|
-
var rendered = prepareItems(width, template, values).map(renderValueWithValues(values)).join("");
|
|
21
|
-
return align.left(wideTruncate(rendered, width), width);
|
|
22
|
-
};
|
|
23
|
-
function preType(item) {
|
|
24
|
-
return "pre" + (item.type[0].toUpperCase() + item.type.slice(1));
|
|
25
|
-
}
|
|
26
|
-
function postType(item) {
|
|
27
|
-
return "post" + (item.type[0].toUpperCase() + item.type.slice(1));
|
|
28
|
-
}
|
|
29
|
-
function hasPreOrPost(item, values) {
|
|
30
|
-
if (!item.type) return;
|
|
31
|
-
return values[preType(item)] || values[postType(item)];
|
|
32
|
-
}
|
|
33
|
-
function generatePreAndPost(baseItem, parentValues) {
|
|
34
|
-
var item = Object.assign({}, baseItem);
|
|
35
|
-
var values = Object.create(parentValues);
|
|
36
|
-
var template = [];
|
|
37
|
-
var pre = preType(item);
|
|
38
|
-
var post = postType(item);
|
|
39
|
-
if (values[pre]) {
|
|
40
|
-
template.push({ value: values[pre] });
|
|
41
|
-
values[pre] = null;
|
|
42
|
-
}
|
|
43
|
-
item.minLength = null;
|
|
44
|
-
item.length = null;
|
|
45
|
-
item.maxLength = null;
|
|
46
|
-
template.push(item);
|
|
47
|
-
values[item.type] = values[item.type];
|
|
48
|
-
if (values[post]) {
|
|
49
|
-
template.push({ value: values[post] });
|
|
50
|
-
values[post] = null;
|
|
51
|
-
}
|
|
52
|
-
return function($1, $2, length) {
|
|
53
|
-
return renderTemplate(length, template, values);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function prepareItems(width, template, values) {
|
|
57
|
-
function cloneAndObjectify(item, index, arr) {
|
|
58
|
-
var cloned = new TemplateItem(item, width);
|
|
59
|
-
var type = cloned.type;
|
|
60
|
-
if (cloned.value == null) if (!(type in values)) if (cloned.default == null) throw new error.MissingTemplateValue(cloned, values);
|
|
61
|
-
else cloned.value = cloned.default;
|
|
62
|
-
else cloned.value = values[type];
|
|
63
|
-
if (cloned.value == null || cloned.value === "") return null;
|
|
64
|
-
cloned.index = index;
|
|
65
|
-
cloned.first = index === 0;
|
|
66
|
-
cloned.last = index === arr.length - 1;
|
|
67
|
-
if (hasPreOrPost(cloned, values)) cloned.value = generatePreAndPost(cloned, values);
|
|
68
|
-
return cloned;
|
|
69
|
-
}
|
|
70
|
-
var output = template.map(cloneAndObjectify).filter(function(item) {
|
|
71
|
-
return item != null;
|
|
72
|
-
});
|
|
73
|
-
var remainingSpace = width;
|
|
74
|
-
var variableCount = output.length;
|
|
75
|
-
function consumeSpace(length) {
|
|
76
|
-
if (length > remainingSpace) length = remainingSpace;
|
|
77
|
-
remainingSpace -= length;
|
|
78
|
-
}
|
|
79
|
-
function finishSizing(item, length) {
|
|
80
|
-
if (item.finished) throw new error.Internal("Tried to finish template item that was already finished");
|
|
81
|
-
if (length === Infinity) throw new error.Internal("Length of template item cannot be infinity");
|
|
82
|
-
if (length != null) item.length = length;
|
|
83
|
-
item.minLength = null;
|
|
84
|
-
item.maxLength = null;
|
|
85
|
-
--variableCount;
|
|
86
|
-
item.finished = true;
|
|
87
|
-
if (item.length == null) item.length = item.getBaseLength();
|
|
88
|
-
if (item.length == null) throw new error.Internal("Finished template items must have a length");
|
|
89
|
-
consumeSpace(item.getLength());
|
|
90
|
-
}
|
|
91
|
-
output.forEach(function(item) {
|
|
92
|
-
if (!item.kerning) return;
|
|
93
|
-
var prevPadRight = item.first ? 0 : output[item.index - 1].padRight;
|
|
94
|
-
if (!item.first && prevPadRight < item.kerning) item.padLeft = item.kerning - prevPadRight;
|
|
95
|
-
if (!item.last) item.padRight = item.kerning;
|
|
96
|
-
});
|
|
97
|
-
output.forEach(function(item) {
|
|
98
|
-
if (item.getBaseLength() == null) return;
|
|
99
|
-
finishSizing(item);
|
|
100
|
-
});
|
|
101
|
-
var resized = 0;
|
|
102
|
-
var resizing;
|
|
103
|
-
var hunkSize;
|
|
104
|
-
do {
|
|
105
|
-
resizing = false;
|
|
106
|
-
hunkSize = Math.round(remainingSpace / variableCount);
|
|
107
|
-
output.forEach(function(item) {
|
|
108
|
-
if (item.finished) return;
|
|
109
|
-
if (!item.maxLength) return;
|
|
110
|
-
if (item.getMaxLength() < hunkSize) {
|
|
111
|
-
finishSizing(item, item.maxLength);
|
|
112
|
-
resizing = true;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
} while (resizing && resized++ < output.length);
|
|
116
|
-
if (resizing) throw new error.Internal("Resize loop iterated too many times while determining maxLength");
|
|
117
|
-
resized = 0;
|
|
118
|
-
do {
|
|
119
|
-
resizing = false;
|
|
120
|
-
hunkSize = Math.round(remainingSpace / variableCount);
|
|
121
|
-
output.forEach(function(item) {
|
|
122
|
-
if (item.finished) return;
|
|
123
|
-
if (!item.minLength) return;
|
|
124
|
-
if (item.getMinLength() >= hunkSize) {
|
|
125
|
-
finishSizing(item, item.minLength);
|
|
126
|
-
resizing = true;
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
} while (resizing && resized++ < output.length);
|
|
130
|
-
if (resizing) throw new error.Internal("Resize loop iterated too many times while determining minLength");
|
|
131
|
-
hunkSize = Math.round(remainingSpace / variableCount);
|
|
132
|
-
output.forEach(function(item) {
|
|
133
|
-
if (item.finished) return;
|
|
134
|
-
finishSizing(item, hunkSize);
|
|
135
|
-
});
|
|
136
|
-
return output;
|
|
137
|
-
}
|
|
138
|
-
function renderFunction(item, values, length) {
|
|
139
|
-
validate("OON", arguments);
|
|
140
|
-
if (item.type) return item.value(values, values[item.type + "Theme"] || {}, length);
|
|
141
|
-
else return item.value(values, {}, length);
|
|
142
|
-
}
|
|
143
|
-
function renderValue(item, values) {
|
|
144
|
-
var length = item.getBaseLength();
|
|
145
|
-
var value = typeof item.value === "function" ? renderFunction(item, values, length) : item.value;
|
|
146
|
-
if (value == null || value === "") return "";
|
|
147
|
-
var alignWith = align[item.align] || align.left;
|
|
148
|
-
var leftPadding = item.padLeft ? align.left("", item.padLeft) : "";
|
|
149
|
-
var rightPadding = item.padRight ? align.right("", item.padRight) : "";
|
|
150
|
-
return leftPadding + alignWith(wideTruncate(String(value), length), length) + rightPadding;
|
|
151
|
-
}
|
|
152
|
-
}));
|
|
153
|
-
//#endregion
|
|
154
|
-
export default require_render_template();
|
|
155
|
-
export { require_render_template };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_process } from "./process.js";
|
|
3
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js
|
|
4
|
-
var require_set_immediate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var process = require_process();
|
|
6
|
-
try {
|
|
7
|
-
module.exports = setImmediate;
|
|
8
|
-
} catch (ex) {
|
|
9
|
-
module.exports = process.nextTick;
|
|
10
|
-
}
|
|
11
|
-
}));
|
|
12
|
-
//#endregion
|
|
13
|
-
export default require_set_immediate();
|
|
14
|
-
export { require_set_immediate };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js
|
|
3
|
-
var require_set_interval = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = setInterval;
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default require_set_interval();
|
|
8
|
-
export { require_set_interval };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js
|
|
3
|
-
var require_spin = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
-
module.exports = function spin(spinstr, spun) {
|
|
5
|
-
return spinstr[spun % spinstr.length];
|
|
6
|
-
};
|
|
7
|
-
}));
|
|
8
|
-
//#endregion
|
|
9
|
-
export default require_spin();
|
|
10
|
-
export { require_spin };
|
|
@@ -1,58 +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
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js
|
|
4
|
-
var require_template_item = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var stringWidth = require_string_width();
|
|
6
|
-
module.exports = TemplateItem;
|
|
7
|
-
function isPercent(num) {
|
|
8
|
-
if (typeof num !== "string") return false;
|
|
9
|
-
return num.slice(-1) === "%";
|
|
10
|
-
}
|
|
11
|
-
function percent(num) {
|
|
12
|
-
return Number(num.slice(0, -1)) / 100;
|
|
13
|
-
}
|
|
14
|
-
function TemplateItem(values, outputLength) {
|
|
15
|
-
this.overallOutputLength = outputLength;
|
|
16
|
-
this.finished = false;
|
|
17
|
-
this.type = null;
|
|
18
|
-
this.value = null;
|
|
19
|
-
this.length = null;
|
|
20
|
-
this.maxLength = null;
|
|
21
|
-
this.minLength = null;
|
|
22
|
-
this.kerning = null;
|
|
23
|
-
this.align = "left";
|
|
24
|
-
this.padLeft = 0;
|
|
25
|
-
this.padRight = 0;
|
|
26
|
-
this.index = null;
|
|
27
|
-
this.first = null;
|
|
28
|
-
this.last = null;
|
|
29
|
-
if (typeof values === "string") this.value = values;
|
|
30
|
-
else for (var prop in values) this[prop] = values[prop];
|
|
31
|
-
if (isPercent(this.length)) this.length = Math.round(this.overallOutputLength * percent(this.length));
|
|
32
|
-
if (isPercent(this.minLength)) this.minLength = Math.round(this.overallOutputLength * percent(this.minLength));
|
|
33
|
-
if (isPercent(this.maxLength)) this.maxLength = Math.round(this.overallOutputLength * percent(this.maxLength));
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
TemplateItem.prototype = {};
|
|
37
|
-
TemplateItem.prototype.getBaseLength = function() {
|
|
38
|
-
var length = this.length;
|
|
39
|
-
if (length == null && typeof this.value === "string" && this.maxLength == null && this.minLength == null) length = stringWidth(this.value);
|
|
40
|
-
return length;
|
|
41
|
-
};
|
|
42
|
-
TemplateItem.prototype.getLength = function() {
|
|
43
|
-
var length = this.getBaseLength();
|
|
44
|
-
if (length == null) return null;
|
|
45
|
-
return length + this.padLeft + this.padRight;
|
|
46
|
-
};
|
|
47
|
-
TemplateItem.prototype.getMaxLength = function() {
|
|
48
|
-
if (this.maxLength == null) return null;
|
|
49
|
-
return this.maxLength + this.padLeft + this.padRight;
|
|
50
|
-
};
|
|
51
|
-
TemplateItem.prototype.getMinLength = function() {
|
|
52
|
-
if (this.minLength == null) return null;
|
|
53
|
-
return this.minLength + this.padLeft + this.padRight;
|
|
54
|
-
};
|
|
55
|
-
}));
|
|
56
|
-
//#endregion
|
|
57
|
-
export default require_template_item();
|
|
58
|
-
export { require_template_item };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_object_assign } from "../../../object-assign@4.1.1/node_modules/object-assign/index.js";
|
|
3
|
-
import { require_base_theme } from "./base-theme.js";
|
|
4
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js
|
|
5
|
-
var require_theme_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
var objectAssign = require_object_assign();
|
|
7
|
-
module.exports = function() {
|
|
8
|
-
return ThemeSetProto.newThemeSet();
|
|
9
|
-
};
|
|
10
|
-
var ThemeSetProto = {};
|
|
11
|
-
ThemeSetProto.baseTheme = require_base_theme();
|
|
12
|
-
ThemeSetProto.newTheme = function(parent, theme) {
|
|
13
|
-
if (!theme) {
|
|
14
|
-
theme = parent;
|
|
15
|
-
parent = this.baseTheme;
|
|
16
|
-
}
|
|
17
|
-
return objectAssign({}, parent, theme);
|
|
18
|
-
};
|
|
19
|
-
ThemeSetProto.getThemeNames = function() {
|
|
20
|
-
return Object.keys(this.themes);
|
|
21
|
-
};
|
|
22
|
-
ThemeSetProto.addTheme = function(name, parent, theme) {
|
|
23
|
-
this.themes[name] = this.newTheme(parent, theme);
|
|
24
|
-
};
|
|
25
|
-
ThemeSetProto.addToAllThemes = function(theme) {
|
|
26
|
-
var themes = this.themes;
|
|
27
|
-
Object.keys(themes).forEach(function(name) {
|
|
28
|
-
objectAssign(themes[name], theme);
|
|
29
|
-
});
|
|
30
|
-
objectAssign(this.baseTheme, theme);
|
|
31
|
-
};
|
|
32
|
-
ThemeSetProto.getTheme = function(name) {
|
|
33
|
-
if (!this.themes[name]) throw this.newMissingThemeError(name);
|
|
34
|
-
return this.themes[name];
|
|
35
|
-
};
|
|
36
|
-
ThemeSetProto.setDefault = function(opts, name) {
|
|
37
|
-
if (name == null) {
|
|
38
|
-
name = opts;
|
|
39
|
-
opts = {};
|
|
40
|
-
}
|
|
41
|
-
var platform = opts.platform == null ? "fallback" : opts.platform;
|
|
42
|
-
var hasUnicode = !!opts.hasUnicode;
|
|
43
|
-
var hasColor = !!opts.hasColor;
|
|
44
|
-
if (!this.defaults[platform]) this.defaults[platform] = {
|
|
45
|
-
true: {},
|
|
46
|
-
false: {}
|
|
47
|
-
};
|
|
48
|
-
this.defaults[platform][hasUnicode][hasColor] = name;
|
|
49
|
-
};
|
|
50
|
-
ThemeSetProto.getDefault = function(opts) {
|
|
51
|
-
if (!opts) opts = {};
|
|
52
|
-
var platformName = opts.platform || process.platform;
|
|
53
|
-
var platform = this.defaults[platformName] || this.defaults.fallback;
|
|
54
|
-
var hasUnicode = !!opts.hasUnicode;
|
|
55
|
-
var hasColor = !!opts.hasColor;
|
|
56
|
-
if (!platform) throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor);
|
|
57
|
-
if (!platform[hasUnicode][hasColor]) {
|
|
58
|
-
if (hasUnicode && hasColor && platform[!hasUnicode][hasColor]) hasUnicode = false;
|
|
59
|
-
else if (hasUnicode && hasColor && platform[hasUnicode][!hasColor]) hasColor = false;
|
|
60
|
-
else if (hasUnicode && hasColor && platform[!hasUnicode][!hasColor]) {
|
|
61
|
-
hasUnicode = false;
|
|
62
|
-
hasColor = false;
|
|
63
|
-
} else if (hasUnicode && !hasColor && platform[!hasUnicode][hasColor]) hasUnicode = false;
|
|
64
|
-
else if (!hasUnicode && hasColor && platform[hasUnicode][!hasColor]) hasColor = false;
|
|
65
|
-
else if (platform === this.defaults.fallback) throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor);
|
|
66
|
-
}
|
|
67
|
-
if (platform[hasUnicode][hasColor]) return this.getTheme(platform[hasUnicode][hasColor]);
|
|
68
|
-
else return this.getDefault(objectAssign({}, opts, { platform: "fallback" }));
|
|
69
|
-
};
|
|
70
|
-
ThemeSetProto.newMissingThemeError = function newMissingThemeError(name) {
|
|
71
|
-
var err = /* @__PURE__ */ new Error("Could not find a gauge theme named \"" + name + "\"");
|
|
72
|
-
Error.captureStackTrace.call(err, newMissingThemeError);
|
|
73
|
-
err.theme = name;
|
|
74
|
-
err.code = "EMISSINGTHEME";
|
|
75
|
-
return err;
|
|
76
|
-
};
|
|
77
|
-
ThemeSetProto.newMissingDefaultThemeError = function newMissingDefaultThemeError(platformName, hasUnicode, hasColor) {
|
|
78
|
-
var err = /* @__PURE__ */ new Error("Could not find a gauge theme for your platform/unicode/color use combo:\n platform = " + platformName + "\n hasUnicode = " + hasUnicode + "\n hasColor = " + hasColor);
|
|
79
|
-
Error.captureStackTrace.call(err, newMissingDefaultThemeError);
|
|
80
|
-
err.platform = platformName;
|
|
81
|
-
err.hasUnicode = hasUnicode;
|
|
82
|
-
err.hasColor = hasColor;
|
|
83
|
-
err.code = "EMISSINGTHEME";
|
|
84
|
-
return err;
|
|
85
|
-
};
|
|
86
|
-
ThemeSetProto.newThemeSet = function() {
|
|
87
|
-
var themeset = function(opts) {
|
|
88
|
-
return themeset.getDefault(opts);
|
|
89
|
-
};
|
|
90
|
-
return objectAssign(themeset, ThemeSetProto, {
|
|
91
|
-
themes: objectAssign({}, this.themes),
|
|
92
|
-
baseTheme: objectAssign({}, this.baseTheme),
|
|
93
|
-
defaults: JSON.parse(JSON.stringify(this.defaults || {}))
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
}));
|
|
97
|
-
//#endregion
|
|
98
|
-
export default require_theme_set();
|
|
99
|
-
export { require_theme_set };
|
|
@@ -1,67 +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_theme_set } from "./theme-set.js";
|
|
4
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js
|
|
5
|
-
var require_themes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
var color = require_console_control_strings().color;
|
|
7
|
-
var themes = module.exports = new (require_theme_set())();
|
|
8
|
-
themes.addTheme("ASCII", {
|
|
9
|
-
preProgressbar: "[",
|
|
10
|
-
postProgressbar: "]",
|
|
11
|
-
progressbarTheme: {
|
|
12
|
-
complete: "#",
|
|
13
|
-
remaining: "."
|
|
14
|
-
},
|
|
15
|
-
activityIndicatorTheme: "-\\|/",
|
|
16
|
-
preSubsection: ">"
|
|
17
|
-
});
|
|
18
|
-
themes.addTheme("colorASCII", themes.getTheme("ASCII"), { progressbarTheme: {
|
|
19
|
-
preComplete: color("bgBrightWhite", "brightWhite"),
|
|
20
|
-
complete: "#",
|
|
21
|
-
postComplete: color("reset"),
|
|
22
|
-
preRemaining: color("bgBrightBlack", "brightBlack"),
|
|
23
|
-
remaining: ".",
|
|
24
|
-
postRemaining: color("reset")
|
|
25
|
-
} });
|
|
26
|
-
themes.addTheme("brailleSpinner", {
|
|
27
|
-
preProgressbar: "⸨",
|
|
28
|
-
postProgressbar: "⸩",
|
|
29
|
-
progressbarTheme: {
|
|
30
|
-
complete: "#",
|
|
31
|
-
remaining: "⠂"
|
|
32
|
-
},
|
|
33
|
-
activityIndicatorTheme: "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏",
|
|
34
|
-
preSubsection: ">"
|
|
35
|
-
});
|
|
36
|
-
themes.addTheme("colorBrailleSpinner", themes.getTheme("brailleSpinner"), { progressbarTheme: {
|
|
37
|
-
preComplete: color("bgBrightWhite", "brightWhite"),
|
|
38
|
-
complete: "#",
|
|
39
|
-
postComplete: color("reset"),
|
|
40
|
-
preRemaining: color("bgBrightBlack", "brightBlack"),
|
|
41
|
-
remaining: "⠂",
|
|
42
|
-
postRemaining: color("reset")
|
|
43
|
-
} });
|
|
44
|
-
themes.setDefault({}, "ASCII");
|
|
45
|
-
themes.setDefault({ hasColor: true }, "colorASCII");
|
|
46
|
-
themes.setDefault({
|
|
47
|
-
platform: "darwin",
|
|
48
|
-
hasUnicode: true
|
|
49
|
-
}, "brailleSpinner");
|
|
50
|
-
themes.setDefault({
|
|
51
|
-
platform: "darwin",
|
|
52
|
-
hasUnicode: true,
|
|
53
|
-
hasColor: true
|
|
54
|
-
}, "colorBrailleSpinner");
|
|
55
|
-
themes.setDefault({
|
|
56
|
-
platform: "linux",
|
|
57
|
-
hasUnicode: true
|
|
58
|
-
}, "brailleSpinner");
|
|
59
|
-
themes.setDefault({
|
|
60
|
-
platform: "linux",
|
|
61
|
-
hasUnicode: true,
|
|
62
|
-
hasColor: true
|
|
63
|
-
}, "colorBrailleSpinner");
|
|
64
|
-
}));
|
|
65
|
-
//#endregion
|
|
66
|
-
export default require_themes();
|
|
67
|
-
export { require_themes };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_strip_ansi } from "../../../strip-ansi@6.0.1/node_modules/strip-ansi/index.js";
|
|
3
|
-
import { require_string_width } from "../../../string-width@4.2.3/node_modules/string-width/index.js";
|
|
4
|
-
//#region node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js
|
|
5
|
-
var require_wide_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
var stringWidth = require_string_width();
|
|
7
|
-
var stripAnsi = require_strip_ansi();
|
|
8
|
-
module.exports = wideTruncate;
|
|
9
|
-
function wideTruncate(str, target) {
|
|
10
|
-
if (stringWidth(str) === 0) return str;
|
|
11
|
-
if (target <= 0) return "";
|
|
12
|
-
if (stringWidth(str) <= target) return str;
|
|
13
|
-
var noAnsi = stripAnsi(str);
|
|
14
|
-
var ansiSize = str.length + noAnsi.length;
|
|
15
|
-
var truncated = str.slice(0, target + ansiSize);
|
|
16
|
-
while (stringWidth(truncated) > target) truncated = truncated.slice(0, -1);
|
|
17
|
-
return truncated;
|
|
18
|
-
}
|
|
19
|
-
}));
|
|
20
|
-
//#endregion
|
|
21
|
-
export default require_wide_truncate();
|
|
22
|
-
export { require_wide_truncate };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_minimatch } from "../../../minimatch@3.1.5/node_modules/minimatch/minimatch.js";
|
|
3
|
-
import { require_path_is_absolute } from "../../../path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js";
|
|
4
|
-
//#region node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js
|
|
5
|
-
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
-
exports.setopts = setopts;
|
|
7
|
-
exports.ownProp = ownProp;
|
|
8
|
-
exports.makeAbs = makeAbs;
|
|
9
|
-
exports.finish = finish;
|
|
10
|
-
exports.mark = mark;
|
|
11
|
-
exports.isIgnored = isIgnored;
|
|
12
|
-
exports.childrenIgnored = childrenIgnored;
|
|
13
|
-
function ownProp(obj, field) {
|
|
14
|
-
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
15
|
-
}
|
|
16
|
-
var fs = __require("fs");
|
|
17
|
-
var path = __require("path");
|
|
18
|
-
var minimatch = require_minimatch();
|
|
19
|
-
var isAbsolute = require_path_is_absolute();
|
|
20
|
-
var Minimatch = minimatch.Minimatch;
|
|
21
|
-
function alphasort(a, b) {
|
|
22
|
-
return a.localeCompare(b, "en");
|
|
23
|
-
}
|
|
24
|
-
function setupIgnores(self, options) {
|
|
25
|
-
self.ignore = options.ignore || [];
|
|
26
|
-
if (!Array.isArray(self.ignore)) self.ignore = [self.ignore];
|
|
27
|
-
if (self.ignore.length) self.ignore = self.ignore.map(ignoreMap);
|
|
28
|
-
}
|
|
29
|
-
function ignoreMap(pattern) {
|
|
30
|
-
var gmatcher = null;
|
|
31
|
-
if (pattern.slice(-3) === "/**") gmatcher = new Minimatch(pattern.replace(/(\/\*\*)+$/, ""), { dot: true });
|
|
32
|
-
return {
|
|
33
|
-
matcher: new Minimatch(pattern, { dot: true }),
|
|
34
|
-
gmatcher
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function setopts(self, pattern, options) {
|
|
38
|
-
if (!options) options = {};
|
|
39
|
-
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
|
40
|
-
if (options.noglobstar) throw new Error("base matching requires globstar");
|
|
41
|
-
pattern = "**/" + pattern;
|
|
42
|
-
}
|
|
43
|
-
self.silent = !!options.silent;
|
|
44
|
-
self.pattern = pattern;
|
|
45
|
-
self.strict = options.strict !== false;
|
|
46
|
-
self.realpath = !!options.realpath;
|
|
47
|
-
self.realpathCache = options.realpathCache || Object.create(null);
|
|
48
|
-
self.follow = !!options.follow;
|
|
49
|
-
self.dot = !!options.dot;
|
|
50
|
-
self.mark = !!options.mark;
|
|
51
|
-
self.nodir = !!options.nodir;
|
|
52
|
-
if (self.nodir) self.mark = true;
|
|
53
|
-
self.sync = !!options.sync;
|
|
54
|
-
self.nounique = !!options.nounique;
|
|
55
|
-
self.nonull = !!options.nonull;
|
|
56
|
-
self.nosort = !!options.nosort;
|
|
57
|
-
self.nocase = !!options.nocase;
|
|
58
|
-
self.stat = !!options.stat;
|
|
59
|
-
self.noprocess = !!options.noprocess;
|
|
60
|
-
self.absolute = !!options.absolute;
|
|
61
|
-
self.fs = options.fs || fs;
|
|
62
|
-
self.maxLength = options.maxLength || Infinity;
|
|
63
|
-
self.cache = options.cache || Object.create(null);
|
|
64
|
-
self.statCache = options.statCache || Object.create(null);
|
|
65
|
-
self.symlinks = options.symlinks || Object.create(null);
|
|
66
|
-
setupIgnores(self, options);
|
|
67
|
-
self.changedCwd = false;
|
|
68
|
-
var cwd = process.cwd();
|
|
69
|
-
if (!ownProp(options, "cwd")) self.cwd = cwd;
|
|
70
|
-
else {
|
|
71
|
-
self.cwd = path.resolve(options.cwd);
|
|
72
|
-
self.changedCwd = self.cwd !== cwd;
|
|
73
|
-
}
|
|
74
|
-
self.root = options.root || path.resolve(self.cwd, "/");
|
|
75
|
-
self.root = path.resolve(self.root);
|
|
76
|
-
if (process.platform === "win32") self.root = self.root.replace(/\\/g, "/");
|
|
77
|
-
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
78
|
-
if (process.platform === "win32") self.cwdAbs = self.cwdAbs.replace(/\\/g, "/");
|
|
79
|
-
self.nomount = !!options.nomount;
|
|
80
|
-
options.nonegate = true;
|
|
81
|
-
options.nocomment = true;
|
|
82
|
-
options.allowWindowsEscape = false;
|
|
83
|
-
self.minimatch = new Minimatch(pattern, options);
|
|
84
|
-
self.options = self.minimatch.options;
|
|
85
|
-
}
|
|
86
|
-
function finish(self) {
|
|
87
|
-
var nou = self.nounique;
|
|
88
|
-
var all = nou ? [] : Object.create(null);
|
|
89
|
-
for (var i = 0, l = self.matches.length; i < l; i++) {
|
|
90
|
-
var matches = self.matches[i];
|
|
91
|
-
if (!matches || Object.keys(matches).length === 0) {
|
|
92
|
-
if (self.nonull) {
|
|
93
|
-
var literal = self.minimatch.globSet[i];
|
|
94
|
-
if (nou) all.push(literal);
|
|
95
|
-
else all[literal] = true;
|
|
96
|
-
}
|
|
97
|
-
} else {
|
|
98
|
-
var m = Object.keys(matches);
|
|
99
|
-
if (nou) all.push.apply(all, m);
|
|
100
|
-
else m.forEach(function(m) {
|
|
101
|
-
all[m] = true;
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (!nou) all = Object.keys(all);
|
|
106
|
-
if (!self.nosort) all = all.sort(alphasort);
|
|
107
|
-
if (self.mark) {
|
|
108
|
-
for (var i = 0; i < all.length; i++) all[i] = self._mark(all[i]);
|
|
109
|
-
if (self.nodir) all = all.filter(function(e) {
|
|
110
|
-
var notDir = !/\/$/.test(e);
|
|
111
|
-
var c = self.cache[e] || self.cache[makeAbs(self, e)];
|
|
112
|
-
if (notDir && c) notDir = c !== "DIR" && !Array.isArray(c);
|
|
113
|
-
return notDir;
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
if (self.ignore.length) all = all.filter(function(m) {
|
|
117
|
-
return !isIgnored(self, m);
|
|
118
|
-
});
|
|
119
|
-
self.found = all;
|
|
120
|
-
}
|
|
121
|
-
function mark(self, p) {
|
|
122
|
-
var abs = makeAbs(self, p);
|
|
123
|
-
var c = self.cache[abs];
|
|
124
|
-
var m = p;
|
|
125
|
-
if (c) {
|
|
126
|
-
var isDir = c === "DIR" || Array.isArray(c);
|
|
127
|
-
var slash = p.slice(-1) === "/";
|
|
128
|
-
if (isDir && !slash) m += "/";
|
|
129
|
-
else if (!isDir && slash) m = m.slice(0, -1);
|
|
130
|
-
if (m !== p) {
|
|
131
|
-
var mabs = makeAbs(self, m);
|
|
132
|
-
self.statCache[mabs] = self.statCache[abs];
|
|
133
|
-
self.cache[mabs] = self.cache[abs];
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return m;
|
|
137
|
-
}
|
|
138
|
-
function makeAbs(self, f) {
|
|
139
|
-
var abs = f;
|
|
140
|
-
if (f.charAt(0) === "/") abs = path.join(self.root, f);
|
|
141
|
-
else if (isAbsolute(f) || f === "") abs = f;
|
|
142
|
-
else if (self.changedCwd) abs = path.resolve(self.cwd, f);
|
|
143
|
-
else abs = path.resolve(f);
|
|
144
|
-
if (process.platform === "win32") abs = abs.replace(/\\/g, "/");
|
|
145
|
-
return abs;
|
|
146
|
-
}
|
|
147
|
-
function isIgnored(self, path) {
|
|
148
|
-
if (!self.ignore.length) return false;
|
|
149
|
-
return self.ignore.some(function(item) {
|
|
150
|
-
return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path));
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function childrenIgnored(self, path) {
|
|
154
|
-
if (!self.ignore.length) return false;
|
|
155
|
-
return self.ignore.some(function(item) {
|
|
156
|
-
return !!(item.gmatcher && item.gmatcher.match(path));
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}));
|
|
160
|
-
//#endregion
|
|
161
|
-
export default require_common();
|
|
162
|
-
export { require_common };
|