@ontos-ai/knowhere-claw 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/_virtual/_rolldown/runtime.js +2 -1
- package/dist/config.js +115 -1
- package/dist/connect-builder.js +181 -0
- package/dist/graph-builder.js +204 -0
- package/dist/index.js +15 -3
- package/dist/kg-service.js +249 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +212 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +35 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.js +2609 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +142 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +103 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +199 -0
- package/dist/node_modules/.pnpm/@mapbox_node-pre-gyp@1.0.11/node_modules/@mapbox/node-pre-gyp/package.js +67 -0
- package/dist/node_modules/.pnpm/abbrev@1.1.1/node_modules/abbrev/abbrev.js +59 -0
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +11 -0
- package/dist/node_modules/.pnpm/aproba@2.1.0/node_modules/aproba/index.js +119 -0
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/index.js +13 -0
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-base.js +16 -0
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-group.js +98 -0
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker-stream.js +37 -0
- package/dist/node_modules/.pnpm/are-we-there-yet@2.0.0/node_modules/are-we-there-yet/lib/tracker.js +32 -0
- package/dist/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js +53 -0
- package/dist/node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js +132 -0
- package/dist/node_modules/.pnpm/color-support@1.1.3/node_modules/color-support/browser.js +18 -0
- package/dist/node_modules/.pnpm/concat-map@0.0.1/node_modules/concat-map/index.js +19 -0
- package/dist/node_modules/.pnpm/console-control-strings@1.1.0/node_modules/console-control-strings/index.js +104 -0
- package/dist/node_modules/.pnpm/delegates@1.0.0/node_modules/delegates/index.js +104 -0
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/detect-libc.js +221 -0
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/elf.js +26 -0
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/filesystem.js +48 -0
- package/dist/node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js +24 -0
- package/dist/node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js +10 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy-sync.js +120 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/copy.js +100 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/copy/index.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/empty/index.js +43 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/file.js +53 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/index.js +27 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/link.js +56 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-paths.js +89 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink-type.js +35 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/ensure/symlink.js +81 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/fs/index.js +113 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/index.js +29 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/index.js +22 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/jsonfile.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json-sync.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/json/output-json.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/index.js +20 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js +33 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js +17 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js +56 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js +49 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js +30 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js +18 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js +27 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js +15 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js +131 -0
- package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js +34 -0
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js +51 -0
- package/dist/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js +171 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/base-theme.js +21 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/error.js +27 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/has-color.js +9 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/index.js +224 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/plumbing.js +48 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/process.js +8 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/progress-bar.js +46 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/render-template.js +155 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-immediate.js +14 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/set-interval.js +8 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/spin.js +10 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/template-item.js +58 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/theme-set.js +99 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/themes.js +67 -0
- package/dist/node_modules/.pnpm/gauge@3.0.2/node_modules/gauge/wide-truncate.js +22 -0
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js +162 -0
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js +451 -0
- package/dist/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js +280 -0
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js +20 -0
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js +362 -0
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js +92 -0
- package/dist/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js +255 -0
- package/dist/node_modules/.pnpm/has-unicode@2.0.1/node_modules/has-unicode/index.js +14 -0
- package/dist/node_modules/.pnpm/inflight@1.0.6/node_modules/inflight/inflight.js +45 -0
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +27 -0
- package/dist/node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js +14 -0
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js +68 -0
- package/dist/node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js +19 -0
- package/dist/node_modules/.pnpm/minimatch@3.1.5/node_modules/minimatch/minimatch.js +578 -0
- package/dist/node_modules/.pnpm/nodejieba@2.6.0/node_modules/nodejieba/index.js +46 -0
- package/dist/node_modules/.pnpm/nopt@5.0.0/node_modules/nopt/lib/nopt.js +330 -0
- package/dist/node_modules/.pnpm/npmlog@5.0.1/node_modules/npmlog/log.js +305 -0
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +54 -0
- package/dist/node_modules/.pnpm/once@1.4.0/node_modules/once/once.js +44 -0
- package/dist/node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js +19 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/errors-browser.js +88 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_passthrough.js +19 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_readable.js +666 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_transform.js +89 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/_stream_writable.js +423 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/async_iterator.js +172 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/buffer_list.js +243 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/destroy.js +77 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +87 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from-browser.js +10 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js +80 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/state.js +21 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +8 -0
- package/dist/node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js +23 -0
- package/dist/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js +229 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +79 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +282 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +186 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +14 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +34 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +15 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +22 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +14 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +14 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +99 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +8 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +23 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +36 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +15 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +84 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +15 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +31 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +31 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +45 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +64 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +35 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +102 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +11 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +17 -0
- package/dist/node_modules/.pnpm/set-blocking@2.0.0/node_modules/set-blocking/index.js +12 -0
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js +130 -0
- package/dist/node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js +16 -0
- package/dist/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js +30 -0
- package/dist/node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js +10 -0
- package/dist/node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js +26 -0
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +59 -0
- package/dist/node_modules/.pnpm/wide-align@1.1.5/node_modules/wide-align/align.js +52 -0
- package/dist/node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js +26 -0
- package/dist/tools.js +163 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +15 -6
- package/skills/knowhere/SKILL.md +1 -1
- package/dist/__tests__/channel-route.test.d.ts +0 -1
- package/dist/__tests__/ingest-tool.test.d.ts +0 -1
- package/dist/__tests__/read-result-file-tool.test.d.ts +0 -1
- package/dist/__tests__/tracker-progress.test.d.ts +0 -1
- package/dist/channel-delivery.d.ts +0 -21
- package/dist/client.d.ts +0 -33
- package/dist/config.d.ts +0 -12
- package/dist/error-message.d.ts +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/parser.d.ts +0 -16
- package/dist/session.d.ts +0 -11
- package/dist/store.d.ts +0 -79
- package/dist/text.d.ts +0 -10
- package/dist/tools.d.ts +0 -8
- package/dist/tracker-progress.d.ts +0 -10
- package/dist/types.d.ts +0 -248
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_fs } from "../fs/index.js";
|
|
3
|
+
import { require_utils } from "./utils.js";
|
|
4
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/make-dir.js
|
|
5
|
+
var require_make_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = require_fs();
|
|
7
|
+
const { checkPath } = require_utils();
|
|
8
|
+
const getMode = (options) => {
|
|
9
|
+
const defaults = { mode: 511 };
|
|
10
|
+
if (typeof options === "number") return options;
|
|
11
|
+
return {
|
|
12
|
+
...defaults,
|
|
13
|
+
...options
|
|
14
|
+
}.mode;
|
|
15
|
+
};
|
|
16
|
+
module.exports.makeDir = async (dir, options) => {
|
|
17
|
+
checkPath(dir);
|
|
18
|
+
return fs.mkdir(dir, {
|
|
19
|
+
mode: getMode(options),
|
|
20
|
+
recursive: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
module.exports.makeDirSync = (dir, options) => {
|
|
24
|
+
checkPath(dir);
|
|
25
|
+
return fs.mkdirSync(dir, {
|
|
26
|
+
mode: getMode(options),
|
|
27
|
+
recursive: true
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
}));
|
|
31
|
+
//#endregion
|
|
32
|
+
export default require_make_dir();
|
|
33
|
+
export { require_make_dir };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/mkdirs/utils.js
|
|
3
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
const path = __require("path");
|
|
5
|
+
module.exports.checkPath = function checkPath(pth) {
|
|
6
|
+
if (process.platform === "win32") {
|
|
7
|
+
if (/[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""))) {
|
|
8
|
+
const error = /* @__PURE__ */ new Error(`Path contains invalid characters: ${pth}`);
|
|
9
|
+
error.code = "EINVAL";
|
|
10
|
+
throw error;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}));
|
|
15
|
+
//#endregion
|
|
16
|
+
export default require_utils();
|
|
17
|
+
export { require_utils };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_move as require_move$1 } from "./move.js";
|
|
4
|
+
import { require_move_sync } from "./move-sync.js";
|
|
5
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/index.js
|
|
6
|
+
var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
+
const u = require_universalify().fromPromise;
|
|
8
|
+
module.exports = {
|
|
9
|
+
move: u(require_move$1()),
|
|
10
|
+
moveSync: require_move_sync()
|
|
11
|
+
};
|
|
12
|
+
}));
|
|
13
|
+
//#endregion
|
|
14
|
+
export default require_move();
|
|
15
|
+
export { require_move };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_graceful_fs } from "../../../../../graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js";
|
|
3
|
+
import { require_mkdirs } from "../mkdirs/index.js";
|
|
4
|
+
import { require_stat } from "../util/stat.js";
|
|
5
|
+
import { require_copy } from "../copy/index.js";
|
|
6
|
+
import { require_remove } from "../remove/index.js";
|
|
7
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move-sync.js
|
|
8
|
+
var require_move_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9
|
+
const fs = require_graceful_fs();
|
|
10
|
+
const path = __require("path");
|
|
11
|
+
const copySync = require_copy().copySync;
|
|
12
|
+
const removeSync = require_remove().removeSync;
|
|
13
|
+
const mkdirpSync = require_mkdirs().mkdirpSync;
|
|
14
|
+
const stat = require_stat();
|
|
15
|
+
function moveSync(src, dest, opts) {
|
|
16
|
+
opts = opts || {};
|
|
17
|
+
const overwrite = opts.overwrite || opts.clobber || false;
|
|
18
|
+
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
19
|
+
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
20
|
+
if (!isParentRoot(dest)) mkdirpSync(path.dirname(dest));
|
|
21
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
22
|
+
}
|
|
23
|
+
function isParentRoot(dest) {
|
|
24
|
+
const parent = path.dirname(dest);
|
|
25
|
+
return path.parse(parent).root === parent;
|
|
26
|
+
}
|
|
27
|
+
function doRename(src, dest, overwrite, isChangingCase) {
|
|
28
|
+
if (isChangingCase) return rename(src, dest, overwrite);
|
|
29
|
+
if (overwrite) {
|
|
30
|
+
removeSync(dest);
|
|
31
|
+
return rename(src, dest, overwrite);
|
|
32
|
+
}
|
|
33
|
+
if (fs.existsSync(dest)) throw new Error("dest already exists.");
|
|
34
|
+
return rename(src, dest, overwrite);
|
|
35
|
+
}
|
|
36
|
+
function rename(src, dest, overwrite) {
|
|
37
|
+
try {
|
|
38
|
+
fs.renameSync(src, dest);
|
|
39
|
+
} catch (err) {
|
|
40
|
+
if (err.code !== "EXDEV") throw err;
|
|
41
|
+
return moveAcrossDevice(src, dest, overwrite);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function moveAcrossDevice(src, dest, overwrite) {
|
|
45
|
+
copySync(src, dest, {
|
|
46
|
+
overwrite,
|
|
47
|
+
errorOnExist: true,
|
|
48
|
+
preserveTimestamps: true
|
|
49
|
+
});
|
|
50
|
+
return removeSync(src);
|
|
51
|
+
}
|
|
52
|
+
module.exports = moveSync;
|
|
53
|
+
}));
|
|
54
|
+
//#endregion
|
|
55
|
+
export default require_move_sync();
|
|
56
|
+
export { require_move_sync };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_fs } from "../fs/index.js";
|
|
3
|
+
import { require_mkdirs } from "../mkdirs/index.js";
|
|
4
|
+
import { require_path_exists } from "../path-exists/index.js";
|
|
5
|
+
import { require_stat } from "../util/stat.js";
|
|
6
|
+
import { require_copy } from "../copy/index.js";
|
|
7
|
+
import { require_remove } from "../remove/index.js";
|
|
8
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/move/move.js
|
|
9
|
+
var require_move = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10
|
+
const fs = require_fs();
|
|
11
|
+
const path = __require("path");
|
|
12
|
+
const { copy } = require_copy();
|
|
13
|
+
const { remove } = require_remove();
|
|
14
|
+
const { mkdirp } = require_mkdirs();
|
|
15
|
+
const { pathExists } = require_path_exists();
|
|
16
|
+
const stat = require_stat();
|
|
17
|
+
async function move(src, dest, opts = {}) {
|
|
18
|
+
const overwrite = opts.overwrite || opts.clobber || false;
|
|
19
|
+
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
20
|
+
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
21
|
+
const destParent = path.dirname(dest);
|
|
22
|
+
if (path.parse(destParent).root !== destParent) await mkdirp(destParent);
|
|
23
|
+
return doRename(src, dest, overwrite, isChangingCase);
|
|
24
|
+
}
|
|
25
|
+
async function doRename(src, dest, overwrite, isChangingCase) {
|
|
26
|
+
if (!isChangingCase) {
|
|
27
|
+
if (overwrite) await remove(dest);
|
|
28
|
+
else if (await pathExists(dest)) throw new Error("dest already exists.");
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
await fs.rename(src, dest);
|
|
32
|
+
} catch (err) {
|
|
33
|
+
if (err.code !== "EXDEV") throw err;
|
|
34
|
+
await moveAcrossDevice(src, dest, overwrite);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async function moveAcrossDevice(src, dest, overwrite) {
|
|
38
|
+
await copy(src, dest, {
|
|
39
|
+
overwrite,
|
|
40
|
+
errorOnExist: true,
|
|
41
|
+
preserveTimestamps: true
|
|
42
|
+
});
|
|
43
|
+
return remove(src);
|
|
44
|
+
}
|
|
45
|
+
module.exports = move;
|
|
46
|
+
}));
|
|
47
|
+
//#endregion
|
|
48
|
+
export default require_move();
|
|
49
|
+
export { require_move };
|
package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_fs } from "../fs/index.js";
|
|
4
|
+
import { require_mkdirs } from "../mkdirs/index.js";
|
|
5
|
+
import { require_path_exists } from "../path-exists/index.js";
|
|
6
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/output-file/index.js
|
|
7
|
+
var require_output_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
|
+
const u = require_universalify().fromPromise;
|
|
9
|
+
const fs = require_fs();
|
|
10
|
+
const path = __require("path");
|
|
11
|
+
const mkdir = require_mkdirs();
|
|
12
|
+
const pathExists = require_path_exists().pathExists;
|
|
13
|
+
async function outputFile(file, data, encoding = "utf-8") {
|
|
14
|
+
const dir = path.dirname(file);
|
|
15
|
+
if (!await pathExists(dir)) await mkdir.mkdirs(dir);
|
|
16
|
+
return fs.writeFile(file, data, encoding);
|
|
17
|
+
}
|
|
18
|
+
function outputFileSync(file, ...args) {
|
|
19
|
+
const dir = path.dirname(file);
|
|
20
|
+
if (!fs.existsSync(dir)) mkdir.mkdirsSync(dir);
|
|
21
|
+
fs.writeFileSync(file, ...args);
|
|
22
|
+
}
|
|
23
|
+
module.exports = {
|
|
24
|
+
outputFile: u(outputFile),
|
|
25
|
+
outputFileSync
|
|
26
|
+
};
|
|
27
|
+
}));
|
|
28
|
+
//#endregion
|
|
29
|
+
export default require_output_file();
|
|
30
|
+
export { require_output_file };
|
package/dist/node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_fs } from "../fs/index.js";
|
|
4
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/path-exists/index.js
|
|
5
|
+
var require_path_exists = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const u = require_universalify().fromPromise;
|
|
7
|
+
const fs = require_fs();
|
|
8
|
+
function pathExists(path) {
|
|
9
|
+
return fs.access(path).then(() => true).catch(() => false);
|
|
10
|
+
}
|
|
11
|
+
module.exports = {
|
|
12
|
+
pathExists: u(pathExists),
|
|
13
|
+
pathExistsSync: fs.existsSync
|
|
14
|
+
};
|
|
15
|
+
}));
|
|
16
|
+
//#endregion
|
|
17
|
+
export default require_path_exists();
|
|
18
|
+
export { require_path_exists };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_graceful_fs } from "../../../../../graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js";
|
|
4
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/remove/index.js
|
|
5
|
+
var require_remove = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = require_graceful_fs();
|
|
7
|
+
const u = require_universalify().fromCallback;
|
|
8
|
+
function remove(path, callback) {
|
|
9
|
+
fs.rm(path, {
|
|
10
|
+
recursive: true,
|
|
11
|
+
force: true
|
|
12
|
+
}, callback);
|
|
13
|
+
}
|
|
14
|
+
function removeSync(path) {
|
|
15
|
+
fs.rmSync(path, {
|
|
16
|
+
recursive: true,
|
|
17
|
+
force: true
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
module.exports = {
|
|
21
|
+
remove: u(remove),
|
|
22
|
+
removeSync
|
|
23
|
+
};
|
|
24
|
+
}));
|
|
25
|
+
//#endregion
|
|
26
|
+
export default require_remove();
|
|
27
|
+
export { require_remove };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/async.js
|
|
3
|
+
var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
async function asyncIteratorConcurrentProcess(iterator, fn) {
|
|
5
|
+
const promises = [];
|
|
6
|
+
for await (const item of iterator) promises.push(fn(item).then(() => null, (err) => err ?? /* @__PURE__ */ new Error("unknown error")));
|
|
7
|
+
await Promise.all(promises.map((promise) => promise.then((possibleErr) => {
|
|
8
|
+
if (possibleErr !== null) throw possibleErr;
|
|
9
|
+
})));
|
|
10
|
+
}
|
|
11
|
+
module.exports = { asyncIteratorConcurrentProcess };
|
|
12
|
+
}));
|
|
13
|
+
//#endregion
|
|
14
|
+
export default require_async();
|
|
15
|
+
export { require_async };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_fs } from "../fs/index.js";
|
|
4
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/stat.js
|
|
5
|
+
var require_stat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = require_fs();
|
|
7
|
+
const path = __require("path");
|
|
8
|
+
const u = require_universalify().fromPromise;
|
|
9
|
+
function getStats(src, dest, opts) {
|
|
10
|
+
const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
|
|
11
|
+
return Promise.all([statFunc(src), statFunc(dest).catch((err) => {
|
|
12
|
+
if (err.code === "ENOENT") return null;
|
|
13
|
+
throw err;
|
|
14
|
+
})]).then(([srcStat, destStat]) => ({
|
|
15
|
+
srcStat,
|
|
16
|
+
destStat
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
function getStatsSync(src, dest, opts) {
|
|
20
|
+
let destStat;
|
|
21
|
+
const statFunc = opts.dereference ? (file) => fs.statSync(file, { bigint: true }) : (file) => fs.lstatSync(file, { bigint: true });
|
|
22
|
+
const srcStat = statFunc(src);
|
|
23
|
+
try {
|
|
24
|
+
destStat = statFunc(dest);
|
|
25
|
+
} catch (err) {
|
|
26
|
+
if (err.code === "ENOENT") return {
|
|
27
|
+
srcStat,
|
|
28
|
+
destStat: null
|
|
29
|
+
};
|
|
30
|
+
throw err;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
srcStat,
|
|
34
|
+
destStat
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
async function checkPaths(src, dest, funcName, opts) {
|
|
38
|
+
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
39
|
+
if (destStat) {
|
|
40
|
+
if (areIdentical(srcStat, destStat)) {
|
|
41
|
+
const srcBaseName = path.basename(src);
|
|
42
|
+
const destBaseName = path.basename(dest);
|
|
43
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) return {
|
|
44
|
+
srcStat,
|
|
45
|
+
destStat,
|
|
46
|
+
isChangingCase: true
|
|
47
|
+
};
|
|
48
|
+
throw new Error("Source and destination must not be the same.");
|
|
49
|
+
}
|
|
50
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
51
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
52
|
+
}
|
|
53
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) throw new Error(errMsg(src, dest, funcName));
|
|
54
|
+
return {
|
|
55
|
+
srcStat,
|
|
56
|
+
destStat
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function checkPathsSync(src, dest, funcName, opts) {
|
|
60
|
+
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
61
|
+
if (destStat) {
|
|
62
|
+
if (areIdentical(srcStat, destStat)) {
|
|
63
|
+
const srcBaseName = path.basename(src);
|
|
64
|
+
const destBaseName = path.basename(dest);
|
|
65
|
+
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) return {
|
|
66
|
+
srcStat,
|
|
67
|
+
destStat,
|
|
68
|
+
isChangingCase: true
|
|
69
|
+
};
|
|
70
|
+
throw new Error("Source and destination must not be the same.");
|
|
71
|
+
}
|
|
72
|
+
if (srcStat.isDirectory() && !destStat.isDirectory()) throw new Error(`Cannot overwrite non-directory '${dest}' with directory '${src}'.`);
|
|
73
|
+
if (!srcStat.isDirectory() && destStat.isDirectory()) throw new Error(`Cannot overwrite directory '${dest}' with non-directory '${src}'.`);
|
|
74
|
+
}
|
|
75
|
+
if (srcStat.isDirectory() && isSrcSubdir(src, dest)) throw new Error(errMsg(src, dest, funcName));
|
|
76
|
+
return {
|
|
77
|
+
srcStat,
|
|
78
|
+
destStat
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
82
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
83
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
84
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root) return;
|
|
85
|
+
let destStat;
|
|
86
|
+
try {
|
|
87
|
+
destStat = await fs.stat(destParent, { bigint: true });
|
|
88
|
+
} catch (err) {
|
|
89
|
+
if (err.code === "ENOENT") return;
|
|
90
|
+
throw err;
|
|
91
|
+
}
|
|
92
|
+
if (areIdentical(srcStat, destStat)) throw new Error(errMsg(src, dest, funcName));
|
|
93
|
+
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
94
|
+
}
|
|
95
|
+
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
96
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
97
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
98
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root) return;
|
|
99
|
+
let destStat;
|
|
100
|
+
try {
|
|
101
|
+
destStat = fs.statSync(destParent, { bigint: true });
|
|
102
|
+
} catch (err) {
|
|
103
|
+
if (err.code === "ENOENT") return;
|
|
104
|
+
throw err;
|
|
105
|
+
}
|
|
106
|
+
if (areIdentical(srcStat, destStat)) throw new Error(errMsg(src, dest, funcName));
|
|
107
|
+
return checkParentPathsSync(src, srcStat, destParent, funcName);
|
|
108
|
+
}
|
|
109
|
+
function areIdentical(srcStat, destStat) {
|
|
110
|
+
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
111
|
+
}
|
|
112
|
+
function isSrcSubdir(src, dest) {
|
|
113
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
114
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
115
|
+
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
116
|
+
}
|
|
117
|
+
function errMsg(src, dest, funcName) {
|
|
118
|
+
return `Cannot ${funcName} '${src}' to a subdirectory of itself, '${dest}'.`;
|
|
119
|
+
}
|
|
120
|
+
module.exports = {
|
|
121
|
+
checkPaths: u(checkPaths),
|
|
122
|
+
checkPathsSync,
|
|
123
|
+
checkParentPaths: u(checkParentPaths),
|
|
124
|
+
checkParentPathsSync,
|
|
125
|
+
isSrcSubdir,
|
|
126
|
+
areIdentical
|
|
127
|
+
};
|
|
128
|
+
}));
|
|
129
|
+
//#endregion
|
|
130
|
+
export default require_stat();
|
|
131
|
+
export { require_stat };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_universalify } from "../../../../../universalify@2.0.1/node_modules/universalify/index.js";
|
|
3
|
+
import { require_fs } from "../fs/index.js";
|
|
4
|
+
//#region node_modules/.pnpm/fs-extra@11.3.4/node_modules/fs-extra/lib/util/utimes.js
|
|
5
|
+
var require_utimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = require_fs();
|
|
7
|
+
const u = require_universalify().fromPromise;
|
|
8
|
+
async function utimesMillis(path, atime, mtime) {
|
|
9
|
+
const fd = await fs.open(path, "r+");
|
|
10
|
+
let closeErr = null;
|
|
11
|
+
try {
|
|
12
|
+
await fs.futimes(fd, atime, mtime);
|
|
13
|
+
} finally {
|
|
14
|
+
try {
|
|
15
|
+
await fs.close(fd);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
closeErr = e;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (closeErr) throw closeErr;
|
|
21
|
+
}
|
|
22
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
23
|
+
const fd = fs.openSync(path, "r+");
|
|
24
|
+
fs.futimesSync(fd, atime, mtime);
|
|
25
|
+
return fs.closeSync(fd);
|
|
26
|
+
}
|
|
27
|
+
module.exports = {
|
|
28
|
+
utimesMillis: u(utimesMillis),
|
|
29
|
+
utimesMillisSync
|
|
30
|
+
};
|
|
31
|
+
}));
|
|
32
|
+
//#endregion
|
|
33
|
+
export default require_utimes();
|
|
34
|
+
export { require_utimes };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_old } from "./old.js";
|
|
3
|
+
//#region node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js
|
|
4
|
+
var require_fs_realpath = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
+
module.exports = realpath;
|
|
6
|
+
realpath.realpath = realpath;
|
|
7
|
+
realpath.sync = realpathSync;
|
|
8
|
+
realpath.realpathSync = realpathSync;
|
|
9
|
+
realpath.monkeypatch = monkeypatch;
|
|
10
|
+
realpath.unmonkeypatch = unmonkeypatch;
|
|
11
|
+
var fs = __require("fs");
|
|
12
|
+
var origRealpath = fs.realpath;
|
|
13
|
+
var origRealpathSync = fs.realpathSync;
|
|
14
|
+
var version = process.version;
|
|
15
|
+
var ok = /^v[0-5]\./.test(version);
|
|
16
|
+
var old = require_old();
|
|
17
|
+
function newError(er) {
|
|
18
|
+
return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
|
|
19
|
+
}
|
|
20
|
+
function realpath(p, cache, cb) {
|
|
21
|
+
if (ok) return origRealpath(p, cache, cb);
|
|
22
|
+
if (typeof cache === "function") {
|
|
23
|
+
cb = cache;
|
|
24
|
+
cache = null;
|
|
25
|
+
}
|
|
26
|
+
origRealpath(p, cache, function(er, result) {
|
|
27
|
+
if (newError(er)) old.realpath(p, cache, cb);
|
|
28
|
+
else cb(er, result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function realpathSync(p, cache) {
|
|
32
|
+
if (ok) return origRealpathSync(p, cache);
|
|
33
|
+
try {
|
|
34
|
+
return origRealpathSync(p, cache);
|
|
35
|
+
} catch (er) {
|
|
36
|
+
if (newError(er)) return old.realpathSync(p, cache);
|
|
37
|
+
else throw er;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function monkeypatch() {
|
|
41
|
+
fs.realpath = realpath;
|
|
42
|
+
fs.realpathSync = realpathSync;
|
|
43
|
+
}
|
|
44
|
+
function unmonkeypatch() {
|
|
45
|
+
fs.realpath = origRealpath;
|
|
46
|
+
fs.realpathSync = origRealpathSync;
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
//#endregion
|
|
50
|
+
export default require_fs_realpath();
|
|
51
|
+
export { require_fs_realpath };
|
|
@@ -0,0 +1,171 @@
|
|
|
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 };
|
|
@@ -0,0 +1,21 @@
|
|
|
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 };
|