@kubb/agent 4.28.1 → 4.29.0
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +378 -642
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +4 -6
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +4 -6
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@kubb/fabric-core/dist/{defaultParser-BD_N68Bo.js → defaultParser-C1atU7yU.js} +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/{getRelativePath-C4Au07ON.js → getRelativePath-BcieQL5M.js} +1 -2
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +8 -9
- package/.output/server/node_modules/@kubb/fabric-core/dist/{Root-BQX3eHqb.js → onProcessExit-CF200hsz.js} +109 -190
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +3 -4
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +2 -3
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +58 -298
- package/.output/server/node_modules/@kubb/fabric-core/package.json +8 -18
- package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js} +1 -5
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +39 -41
- package/.output/server/node_modules/@kubb/react-fabric/dist/{jsx-runtime-CQFBnRKx.js → jsx-runtime-Dm7PKVbc.js} +6 -24
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +5 -4
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +3 -3
- package/.output/server/node_modules/@kubb/react-fabric/dist/{react--draJ5Pm.js → react-D652OKii.js} +31 -91
- package/.output/server/node_modules/@kubb/react-fabric/dist/{reactPlugin-DqJsInTf.js → reactPlugin-BkDkx1cs.js} +410 -1650
- package/.output/server/node_modules/@kubb/react-fabric/package.json +8 -11
- package/.output/server/node_modules/empathic/access.js +39 -0
- package/.output/server/node_modules/empathic/access.mjs +34 -0
- package/.output/server/node_modules/empathic/find.js +81 -0
- package/.output/server/node_modules/empathic/find.mjs +76 -0
- package/.output/server/node_modules/empathic/package.json +49 -0
- package/.output/server/node_modules/empathic/package.mjs +52 -0
- package/.output/server/node_modules/empathic/resolve.js +31 -0
- package/.output/server/node_modules/empathic/resolve.mjs +27 -0
- package/.output/server/node_modules/empathic/walk.js +22 -0
- package/.output/server/node_modules/empathic/walk.mjs +20 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +633 -0
- package/.output/server/node_modules/tinyexec/package.json +61 -0
- package/.output/server/package.json +6 -44
- package/package.json +19 -21
- package/.output/server/node_modules/.nitro/path-key@3.1.1/index.js +0 -16
- package/.output/server/node_modules/.nitro/path-key@3.1.1/package.json +0 -39
- package/.output/server/node_modules/.nitro/path-key@4.0.0/index.js +0 -12
- package/.output/server/node_modules/.nitro/path-key@4.0.0/package.json +0 -41
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/index.js +0 -421
- package/.output/server/node_modules/.nitro/path-to-regexp@3.3.0/package.json +0 -46
- package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-BVHe6Par.js +0 -22
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +0 -89
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +0 -34
- package/.output/server/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +0 -6
- package/.output/server/node_modules/@sec-ant/readable-stream/package.json +0 -98
- package/.output/server/node_modules/@sindresorhus/merge-streams/index.js +0 -265
- package/.output/server/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/.output/server/node_modules/balanced-match/index.js +0 -62
- package/.output/server/node_modules/balanced-match/package.json +0 -48
- package/.output/server/node_modules/brace-expansion/index.js +0 -201
- package/.output/server/node_modules/brace-expansion/package.json +0 -50
- package/.output/server/node_modules/bytes/index.js +0 -159
- package/.output/server/node_modules/bytes/package.json +0 -39
- package/.output/server/node_modules/concat-map/index.js +0 -13
- package/.output/server/node_modules/concat-map/package.json +0 -59
- package/.output/server/node_modules/content-disposition/index.js +0 -445
- package/.output/server/node_modules/content-disposition/package.json +0 -39
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/execa/index.js +0 -28
- package/.output/server/node_modules/execa/lib/arguments/command.js +0 -20
- package/.output/server/node_modules/execa/lib/arguments/cwd.js +0 -39
- package/.output/server/node_modules/execa/lib/arguments/encoding-option.js +0 -50
- package/.output/server/node_modules/execa/lib/arguments/escape.js +0 -88
- package/.output/server/node_modules/execa/lib/arguments/fd-options.js +0 -108
- package/.output/server/node_modules/execa/lib/arguments/file-url.js +0 -25
- package/.output/server/node_modules/execa/lib/arguments/options.js +0 -96
- package/.output/server/node_modules/execa/lib/arguments/shell.js +0 -11
- package/.output/server/node_modules/execa/lib/arguments/specific.js +0 -111
- package/.output/server/node_modules/execa/lib/convert/add.js +0 -15
- package/.output/server/node_modules/execa/lib/convert/concurrent.js +0 -33
- package/.output/server/node_modules/execa/lib/convert/duplex.js +0 -69
- package/.output/server/node_modules/execa/lib/convert/iterable.js +0 -34
- package/.output/server/node_modules/execa/lib/convert/readable.js +0 -113
- package/.output/server/node_modules/execa/lib/convert/shared.js +0 -46
- package/.output/server/node_modules/execa/lib/convert/writable.js +0 -90
- package/.output/server/node_modules/execa/lib/io/contents.js +0 -116
- package/.output/server/node_modules/execa/lib/io/input-sync.js +0 -44
- package/.output/server/node_modules/execa/lib/io/iterate.js +0 -110
- package/.output/server/node_modules/execa/lib/io/max-buffer.js +0 -89
- package/.output/server/node_modules/execa/lib/io/output-async.js +0 -80
- package/.output/server/node_modules/execa/lib/io/output-sync.js +0 -135
- package/.output/server/node_modules/execa/lib/io/pipeline.js +0 -48
- package/.output/server/node_modules/execa/lib/io/strip-newline.js +0 -12
- package/.output/server/node_modules/execa/lib/ipc/array.js +0 -4
- package/.output/server/node_modules/execa/lib/ipc/buffer-messages.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/forward.js +0 -56
- package/.output/server/node_modules/execa/lib/ipc/get-each.js +0 -89
- package/.output/server/node_modules/execa/lib/ipc/get-one.js +0 -69
- package/.output/server/node_modules/execa/lib/ipc/graceful.js +0 -72
- package/.output/server/node_modules/execa/lib/ipc/incoming.js +0 -79
- package/.output/server/node_modules/execa/lib/ipc/ipc-input.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/methods.js +0 -49
- package/.output/server/node_modules/execa/lib/ipc/outgoing.js +0 -47
- package/.output/server/node_modules/execa/lib/ipc/reference.js +0 -44
- package/.output/server/node_modules/execa/lib/ipc/send.js +0 -91
- package/.output/server/node_modules/execa/lib/ipc/strict.js +0 -113
- package/.output/server/node_modules/execa/lib/ipc/validation.js +0 -111
- package/.output/server/node_modules/execa/lib/methods/bind.js +0 -23
- package/.output/server/node_modules/execa/lib/methods/command.js +0 -43
- package/.output/server/node_modules/execa/lib/methods/create.js +0 -65
- package/.output/server/node_modules/execa/lib/methods/main-async.js +0 -194
- package/.output/server/node_modules/execa/lib/methods/main-sync.js +0 -163
- package/.output/server/node_modules/execa/lib/methods/node.js +0 -51
- package/.output/server/node_modules/execa/lib/methods/parameters.js +0 -31
- package/.output/server/node_modules/execa/lib/methods/promise.js +0 -15
- package/.output/server/node_modules/execa/lib/methods/script.js +0 -22
- package/.output/server/node_modules/execa/lib/methods/template.js +0 -153
- package/.output/server/node_modules/execa/lib/pipe/abort.js +0 -20
- package/.output/server/node_modules/execa/lib/pipe/pipe-arguments.js +0 -91
- package/.output/server/node_modules/execa/lib/pipe/sequence.js +0 -24
- package/.output/server/node_modules/execa/lib/pipe/setup.js +0 -72
- package/.output/server/node_modules/execa/lib/pipe/streaming.js +0 -51
- package/.output/server/node_modules/execa/lib/pipe/throw.js +0 -58
- package/.output/server/node_modules/execa/lib/resolve/all-async.js +0 -46
- package/.output/server/node_modules/execa/lib/resolve/all-sync.js +0 -33
- package/.output/server/node_modules/execa/lib/resolve/exit-async.js +0 -54
- package/.output/server/node_modules/execa/lib/resolve/exit-sync.js +0 -25
- package/.output/server/node_modules/execa/lib/resolve/stdio.js +0 -47
- package/.output/server/node_modules/execa/lib/resolve/wait-stream.js +0 -96
- package/.output/server/node_modules/execa/lib/resolve/wait-subprocess.js +0 -146
- package/.output/server/node_modules/execa/lib/return/duration.js +0 -8
- package/.output/server/node_modules/execa/lib/return/early-error.js +0 -60
- package/.output/server/node_modules/execa/lib/return/final-error.js +0 -40
- package/.output/server/node_modules/execa/lib/return/message.js +0 -157
- package/.output/server/node_modules/execa/lib/return/reject.js +0 -13
- package/.output/server/node_modules/execa/lib/return/result.js +0 -186
- package/.output/server/node_modules/execa/lib/stdio/direction.js +0 -76
- package/.output/server/node_modules/execa/lib/stdio/duplicate.js +0 -116
- package/.output/server/node_modules/execa/lib/stdio/handle-async.js +0 -52
- package/.output/server/node_modules/execa/lib/stdio/handle-sync.js +0 -57
- package/.output/server/node_modules/execa/lib/stdio/handle.js +0 -214
- package/.output/server/node_modules/execa/lib/stdio/input-option.js +0 -50
- package/.output/server/node_modules/execa/lib/stdio/native.js +0 -106
- package/.output/server/node_modules/execa/lib/stdio/stdio-option.js +0 -60
- package/.output/server/node_modules/execa/lib/stdio/type.js +0 -173
- package/.output/server/node_modules/execa/lib/terminate/cancel.js +0 -20
- package/.output/server/node_modules/execa/lib/terminate/cleanup.js +0 -16
- package/.output/server/node_modules/execa/lib/terminate/graceful.js +0 -71
- package/.output/server/node_modules/execa/lib/terminate/kill.js +0 -93
- package/.output/server/node_modules/execa/lib/terminate/signal.js +0 -70
- package/.output/server/node_modules/execa/lib/terminate/timeout.js +0 -21
- package/.output/server/node_modules/execa/lib/transform/encoding-transform.js +0 -51
- package/.output/server/node_modules/execa/lib/transform/generator.js +0 -107
- package/.output/server/node_modules/execa/lib/transform/normalize.js +0 -111
- package/.output/server/node_modules/execa/lib/transform/object-mode.js +0 -41
- package/.output/server/node_modules/execa/lib/transform/run-async.js +0 -60
- package/.output/server/node_modules/execa/lib/transform/run-sync.js +0 -50
- package/.output/server/node_modules/execa/lib/transform/split.js +0 -110
- package/.output/server/node_modules/execa/lib/transform/validate.js +0 -43
- package/.output/server/node_modules/execa/lib/utils/abort-signal.js +0 -8
- package/.output/server/node_modules/execa/lib/utils/deferred.js +0 -7
- package/.output/server/node_modules/execa/lib/utils/max-listeners.js +0 -14
- package/.output/server/node_modules/execa/lib/utils/standard-stream.js +0 -6
- package/.output/server/node_modules/execa/lib/utils/uint-array.js +0 -69
- package/.output/server/node_modules/execa/lib/verbose/complete.js +0 -24
- package/.output/server/node_modules/execa/lib/verbose/custom.js +0 -26
- package/.output/server/node_modules/execa/lib/verbose/default.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/error.js +0 -13
- package/.output/server/node_modules/execa/lib/verbose/info.js +0 -39
- package/.output/server/node_modules/execa/lib/verbose/ipc.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/log.js +0 -54
- package/.output/server/node_modules/execa/lib/verbose/output.js +0 -60
- package/.output/server/node_modules/execa/lib/verbose/start.js +0 -15
- package/.output/server/node_modules/execa/lib/verbose/values.js +0 -33
- package/.output/server/node_modules/execa/package.json +0 -105
- package/.output/server/node_modules/figures/index.js +0 -292
- package/.output/server/node_modules/figures/package.json +0 -49
- package/.output/server/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
- package/.output/server/node_modules/fs-extra/lib/copy/copy.js +0 -180
- package/.output/server/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/.output/server/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/.output/server/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/.output/server/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/.output/server/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/.output/server/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/.output/server/node_modules/fs-extra/lib/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/index.js +0 -16
- package/.output/server/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/.output/server/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/.output/server/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/.output/server/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/.output/server/node_modules/fs-extra/lib/move/index.js +0 -7
- package/.output/server/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/.output/server/node_modules/fs-extra/lib/move/move.js +0 -59
- package/.output/server/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/.output/server/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/.output/server/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/.output/server/node_modules/fs-extra/lib/util/async.js +0 -29
- package/.output/server/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/.output/server/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/.output/server/node_modules/fs-extra/package.json +0 -71
- package/.output/server/node_modules/get-stream/package.json +0 -60
- package/.output/server/node_modules/get-stream/source/array-buffer.js +0 -84
- package/.output/server/node_modules/get-stream/source/array.js +0 -32
- package/.output/server/node_modules/get-stream/source/buffer.js +0 -19
- package/.output/server/node_modules/get-stream/source/contents.js +0 -121
- package/.output/server/node_modules/get-stream/source/exports.js +0 -5
- package/.output/server/node_modules/get-stream/source/index.js +0 -13
- package/.output/server/node_modules/get-stream/source/stream.js +0 -65
- package/.output/server/node_modules/get-stream/source/string.js +0 -41
- package/.output/server/node_modules/get-stream/source/utils.js +0 -11
- package/.output/server/node_modules/graceful-fs/clone.js +0 -23
- package/.output/server/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/.output/server/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/.output/server/node_modules/graceful-fs/package.json +0 -53
- package/.output/server/node_modules/graceful-fs/polyfills.js +0 -355
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -70
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -16
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -34
- package/.output/server/node_modules/human-signals/package.json +0 -66
- package/.output/server/node_modules/is-plain-obj/index.js +0 -8
- package/.output/server/node_modules/is-plain-obj/package.json +0 -41
- package/.output/server/node_modules/is-stream/index.js +0 -37
- package/.output/server/node_modules/is-stream/package.json +0 -48
- package/.output/server/node_modules/is-unicode-supported/index.js +0 -21
- package/.output/server/node_modules/is-unicode-supported/package.json +0 -47
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/js-runtime/dist/index.js +0 -5
- package/.output/server/node_modules/js-runtime/package.json +0 -72
- package/.output/server/node_modules/jsonfile/index.js +0 -88
- package/.output/server/node_modules/jsonfile/package.json +0 -40
- package/.output/server/node_modules/jsonfile/utils.js +0 -14
- package/.output/server/node_modules/mime-db/db.json +0 -7088
- package/.output/server/node_modules/mime-db/index.js +0 -11
- package/.output/server/node_modules/mime-db/package.json +0 -57
- package/.output/server/node_modules/mime-types/index.js +0 -188
- package/.output/server/node_modules/mime-types/package.json +0 -43
- package/.output/server/node_modules/minimatch/minimatch.js +0 -947
- package/.output/server/node_modules/minimatch/package.json +0 -33
- package/.output/server/node_modules/natural-orderby/dist/main.js +0 -19
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.development.js +0 -420
- package/.output/server/node_modules/natural-orderby/dist/umd/natural-orderby.production.min.js +0 -11
- package/.output/server/node_modules/natural-orderby/package.json +0 -119
- package/.output/server/node_modules/npm-run-path/index.js +0 -55
- package/.output/server/node_modules/npm-run-path/package.json +0 -52
- package/.output/server/node_modules/parse-ms/index.js +0 -45
- package/.output/server/node_modules/parse-ms/package.json +0 -47
- package/.output/server/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
- package/.output/server/node_modules/path-is-inside/package.json +0 -27
- package/.output/server/node_modules/pretty-ms/index.js +0 -149
- package/.output/server/node_modules/pretty-ms/package.json +0 -55
- package/.output/server/node_modules/range-parser/index.js +0 -158
- package/.output/server/node_modules/range-parser/package.json +0 -40
- package/.output/server/node_modules/serve-handler/package.json +0 -68
- package/.output/server/node_modules/serve-handler/src/directory.js +0 -16
- package/.output/server/node_modules/serve-handler/src/error.js +0 -10
- package/.output/server/node_modules/serve-handler/src/glob-slash.js +0 -9
- package/.output/server/node_modules/serve-handler/src/index.js +0 -769
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/.output/server/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/.output/server/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/.output/server/node_modules/signal-exit/package.json +0 -106
- package/.output/server/node_modules/string-argv/index.js +0 -41
- package/.output/server/node_modules/string-argv/package.json +0 -51
- package/.output/server/node_modules/strip-final-newline/index.js +0 -26
- package/.output/server/node_modules/strip-final-newline/package.json +0 -49
- package/.output/server/node_modules/unicorn-magic/default.js +0 -14
- package/.output/server/node_modules/unicorn-magic/node.js +0 -49
- package/.output/server/node_modules/unicorn-magic/package.json +0 -62
- package/.output/server/node_modules/universalify/index.js +0 -24
- package/.output/server/node_modules/universalify/package.json +0 -34
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
- package/.output/server/node_modules/yoctocolors/base.js +0 -94
- package/.output/server/node_modules/yoctocolors/index.js +0 -2
- package/.output/server/node_modules/yoctocolors/package.json +0 -69
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/dist/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/path-to-regexp@8.3.0 → path-to-regexp}/package.json +0 -0
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import http from "node:http";
|
|
8
|
-
import handler from "serve-handler";
|
|
9
|
-
import { spawn } from "node:child_process";
|
|
1
|
+
import { l as TreeNode, n as Root, p as createFile, t as onProcessExit } from "./onProcessExit-CF200hsz.js";
|
|
2
|
+
import { t as getRelativePath } from "./getRelativePath-BcieQL5M.js";
|
|
3
|
+
import path, { dirname, relative, resolve } from "node:path";
|
|
4
|
+
import { rmSync } from "node:fs";
|
|
5
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
6
|
+
import { styleText } from "node:util";
|
|
10
7
|
import * as clack from "@clack/prompts";
|
|
11
|
-
import pc from "picocolors";
|
|
12
|
-
import { WebSocket, WebSocketServer } from "ws";
|
|
13
8
|
|
|
14
9
|
//#region src/plugins/definePlugin.ts
|
|
15
10
|
/**
|
|
@@ -58,8 +53,7 @@ function getBarrelFiles({ files, root, mode }) {
|
|
|
58
53
|
const treeNode = TreeNode.fromFiles(files, root);
|
|
59
54
|
if (!treeNode) return [];
|
|
60
55
|
treeNode.forEach((node) => {
|
|
61
|
-
|
|
62
|
-
if (!(node === null || node === void 0 ? void 0 : node.children) || !((_node$parent = node.parent) === null || _node$parent === void 0 ? void 0 : _node$parent.data.path)) return;
|
|
56
|
+
if (!node?.children || !node.parent?.data.path) return;
|
|
63
57
|
const parentPath = node.parent.data.path;
|
|
64
58
|
const barrelPath = path.join(parentPath, "index.ts");
|
|
65
59
|
let barrelFile = cachedFiles.get(barrelPath);
|
|
@@ -100,16 +94,13 @@ function getBarrelFiles({ files, root, mode }) {
|
|
|
100
94
|
}
|
|
101
95
|
});
|
|
102
96
|
const result = [...cachedFiles.values()];
|
|
103
|
-
if (mode === "all") return result.map((file) => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
...
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}))
|
|
111
|
-
};
|
|
112
|
-
});
|
|
97
|
+
if (mode === "all") return result.map((file) => ({
|
|
98
|
+
...file,
|
|
99
|
+
exports: file.exports?.map((e) => ({
|
|
100
|
+
...e,
|
|
101
|
+
name: void 0
|
|
102
|
+
}))
|
|
103
|
+
}));
|
|
113
104
|
return result;
|
|
114
105
|
}
|
|
115
106
|
const barrelPlugin = definePlugin({
|
|
@@ -141,8 +132,7 @@ const barrelPlugin = definePlugin({
|
|
|
141
132
|
for (const file of barrelFiles) fileTypeCache.set(file, file.sources.every((source) => source.isTypeOnly));
|
|
142
133
|
const exports = [];
|
|
143
134
|
for (const file of barrelFiles) {
|
|
144
|
-
|
|
145
|
-
const containsOnlyTypes = (_fileTypeCache$get = fileTypeCache.get(file)) !== null && _fileTypeCache$get !== void 0 ? _fileTypeCache$get : false;
|
|
135
|
+
const containsOnlyTypes = fileTypeCache.get(file) ?? false;
|
|
146
136
|
for (const source of file.sources) {
|
|
147
137
|
if (!file.path || !source.isIndexable) continue;
|
|
148
138
|
exports.push({
|
|
@@ -173,24 +163,24 @@ const barrelPlugin = definePlugin({
|
|
|
173
163
|
//#region src/plugins/fsPlugin.ts
|
|
174
164
|
async function write(path, data, options = {}) {
|
|
175
165
|
if (typeof Bun !== "undefined") {
|
|
176
|
-
if (!data ||
|
|
166
|
+
if (!data || data?.trim() === "") return;
|
|
177
167
|
await Bun.write(resolve(path), data.trim());
|
|
178
|
-
if (options
|
|
168
|
+
if (options?.sanity) {
|
|
179
169
|
const savedData = await Bun.file(resolve(path)).text();
|
|
180
|
-
if (
|
|
170
|
+
if (savedData?.toString() !== data?.toString()) throw new Error(`Sanity check failed for ${path}\n\nData[${data.length}]:\n${data}\n\nSaved[${savedData.length}]:\n${savedData}\n`);
|
|
181
171
|
return savedData;
|
|
182
172
|
}
|
|
183
173
|
return data;
|
|
184
174
|
}
|
|
185
|
-
if (!data ||
|
|
175
|
+
if (!data || data?.trim() === "") return;
|
|
186
176
|
try {
|
|
187
|
-
|
|
188
|
-
if ((oldContent === null || oldContent === void 0 ? void 0 : oldContent.toString()) === (data === null || data === void 0 ? void 0 : data.toString())) return;
|
|
177
|
+
if ((await readFile(resolve(path), { encoding: "utf-8" }))?.toString() === data?.toString()) return;
|
|
189
178
|
} catch (_err) {}
|
|
190
|
-
await
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
179
|
+
await mkdir(dirname(resolve(path)), { recursive: true });
|
|
180
|
+
await writeFile(resolve(path), data.trim(), { encoding: "utf-8" });
|
|
181
|
+
if (options?.sanity) {
|
|
182
|
+
const savedData = await readFile(resolve(path), { encoding: "utf-8" });
|
|
183
|
+
if (savedData?.toString() !== data?.toString()) throw new Error(`Sanity check failed for ${path}\n\nData[${data.length}]:\n${data}\n\nSaved[${savedData.length}]:\n${savedData}\n`);
|
|
194
184
|
return savedData;
|
|
195
185
|
}
|
|
196
186
|
return data;
|
|
@@ -198,7 +188,10 @@ async function write(path, data, options = {}) {
|
|
|
198
188
|
const fsPlugin = definePlugin({
|
|
199
189
|
name: "fs",
|
|
200
190
|
install(ctx, options = {}) {
|
|
201
|
-
if (options.clean)
|
|
191
|
+
if (options.clean) rmSync(options.clean.path, {
|
|
192
|
+
recursive: true,
|
|
193
|
+
force: true
|
|
194
|
+
});
|
|
202
195
|
ctx.on("file:processing:update", async ({ file, source }) => {
|
|
203
196
|
if (options.onBeforeWrite) await options.onBeforeWrite(file.path, source);
|
|
204
197
|
await write(file.path, source, { sanity: false });
|
|
@@ -219,24 +212,22 @@ const fsPlugin = definePlugin({
|
|
|
219
212
|
|
|
220
213
|
//#endregion
|
|
221
214
|
//#region src/plugins/fsxPlugin/Runtime.ts
|
|
222
|
-
var _options = /* @__PURE__ */ new WeakMap();
|
|
223
|
-
var _renderPromise = /* @__PURE__ */ new WeakMap();
|
|
224
215
|
var Runtime = class {
|
|
216
|
+
#options;
|
|
217
|
+
exitPromise;
|
|
225
218
|
constructor(options) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
_classPrivateFieldInitSpec(this, _renderPromise, Promise.resolve());
|
|
229
|
-
_defineProperty(this, "resolveExitPromise", () => {});
|
|
230
|
-
_defineProperty(this, "rejectExitPromise", () => {});
|
|
231
|
-
_defineProperty(this, "unsubscribeExit", () => {});
|
|
232
|
-
_classPrivateFieldSet2(_options, this, options);
|
|
233
|
-
this.unsubscribeExit = onExit((code) => {
|
|
219
|
+
this.#options = options;
|
|
220
|
+
this.unsubscribeExit = onProcessExit((code) => {
|
|
234
221
|
this.unmount(code);
|
|
235
|
-
}
|
|
222
|
+
});
|
|
236
223
|
}
|
|
237
224
|
get fileManager() {
|
|
238
|
-
return
|
|
225
|
+
return this.#options.fileManager;
|
|
239
226
|
}
|
|
227
|
+
#renderPromise = Promise.resolve();
|
|
228
|
+
resolveExitPromise = () => {};
|
|
229
|
+
rejectExitPromise = () => {};
|
|
230
|
+
unsubscribeExit = () => {};
|
|
240
231
|
onError(error) {
|
|
241
232
|
throw error;
|
|
242
233
|
}
|
|
@@ -246,7 +237,7 @@ var Runtime = class {
|
|
|
246
237
|
}, 0);
|
|
247
238
|
}
|
|
248
239
|
async render(node) {
|
|
249
|
-
const treeNode =
|
|
240
|
+
const treeNode = this.#options.treeNode || new TreeNode({
|
|
250
241
|
type: "Root",
|
|
251
242
|
props: {}
|
|
252
243
|
});
|
|
@@ -257,22 +248,20 @@ var Runtime = class {
|
|
|
257
248
|
onError: this.onError.bind(this)
|
|
258
249
|
};
|
|
259
250
|
try {
|
|
260
|
-
var _element;
|
|
261
251
|
treeNode.data.props = props;
|
|
262
252
|
const element = Root({
|
|
263
253
|
...props,
|
|
264
254
|
children: node
|
|
265
255
|
});
|
|
266
|
-
await
|
|
267
|
-
return
|
|
256
|
+
await this.#renderPromise;
|
|
257
|
+
return element()?.toString() || "";
|
|
268
258
|
} catch (e) {
|
|
269
259
|
props.onError(e);
|
|
270
260
|
return "";
|
|
271
261
|
}
|
|
272
262
|
}
|
|
273
263
|
unmount(error) {
|
|
274
|
-
|
|
275
|
-
if ((_classPrivateFieldGet2$1 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet2$1 === void 0 ? void 0 : _classPrivateFieldGet2$1.debug) console.log("Unmount", error);
|
|
264
|
+
if (this.#options?.debug) console.log("Unmount", error);
|
|
276
265
|
this.unsubscribeExit();
|
|
277
266
|
if (error instanceof Error) {
|
|
278
267
|
this.rejectExitPromise(error);
|
|
@@ -311,146 +300,8 @@ const fsxPlugin = definePlugin({
|
|
|
311
300
|
}
|
|
312
301
|
});
|
|
313
302
|
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region src/utils/open.ts
|
|
316
|
-
const spawnBin = (bin, args) => {
|
|
317
|
-
return new Promise((resolve) => {
|
|
318
|
-
spawn(bin, args, {
|
|
319
|
-
detached: true,
|
|
320
|
-
shell: false,
|
|
321
|
-
windowsHide: true
|
|
322
|
-
}).on("close", (code) => {
|
|
323
|
-
resolve(!code);
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
|
-
async function open(path, options) {
|
|
328
|
-
const app = options === null || options === void 0 ? void 0 : options.app;
|
|
329
|
-
if (process.platform === "win32") return spawnBin("cmd.exe", [
|
|
330
|
-
"/c",
|
|
331
|
-
"start",
|
|
332
|
-
app || "",
|
|
333
|
-
path.replace(/[&^]/g, "^$&")
|
|
334
|
-
]);
|
|
335
|
-
if (process.platform === "linux") return spawnBin(app || "xdg-open", [path]);
|
|
336
|
-
if (process.platform === "darwin") return spawnBin("open", app ? [
|
|
337
|
-
"-a",
|
|
338
|
-
app,
|
|
339
|
-
path
|
|
340
|
-
] : [path]);
|
|
341
|
-
throw new Error(`Unsupported platform, could not open "${path}"`);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
//#endregion
|
|
345
|
-
//#region src/plugins/graphPlugin.ts
|
|
346
|
-
function getGraph({ files, root }) {
|
|
347
|
-
const treeNode = TreeNode.fromFiles(files, root);
|
|
348
|
-
if (!treeNode) return;
|
|
349
|
-
return TreeNode.toGraph(treeNode);
|
|
350
|
-
}
|
|
351
|
-
const html = `
|
|
352
|
-
<!DOCTYPE html>
|
|
353
|
-
<html lang="en">
|
|
354
|
-
<head>
|
|
355
|
-
<meta charset="UTF-8" />
|
|
356
|
-
<title>File Graph</title>
|
|
357
|
-
<script type="module">
|
|
358
|
-
import { Network } from 'https://cdn.jsdelivr.net/npm/vis-network/standalone/esm/vis-network.min.js'
|
|
359
|
-
|
|
360
|
-
async function main() {
|
|
361
|
-
const res = await fetch('./graph.json')
|
|
362
|
-
const { nodes, edges } = await res.json()
|
|
363
|
-
const container = document.getElementById('graph')
|
|
364
|
-
|
|
365
|
-
const network = new Network(
|
|
366
|
-
container,
|
|
367
|
-
{ nodes, edges },
|
|
368
|
-
{
|
|
369
|
-
layout: { hierarchical: { direction: 'UD', sortMethod: 'directed' } },
|
|
370
|
-
nodes: { shape: 'box', font: { face: 'monospace' } },
|
|
371
|
-
edges: { arrows: 'to' },
|
|
372
|
-
physics: false,
|
|
373
|
-
},
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
main()
|
|
378
|
-
<\/script>
|
|
379
|
-
<style>
|
|
380
|
-
html, body, #graph { height: 100%; margin: 0; }
|
|
381
|
-
</style>
|
|
382
|
-
</head>
|
|
383
|
-
<body>
|
|
384
|
-
<div id="graph"></div>
|
|
385
|
-
</body>
|
|
386
|
-
</html>
|
|
387
|
-
`;
|
|
388
|
-
async function serve(root) {
|
|
389
|
-
const server = http.createServer((req, res) => {
|
|
390
|
-
return handler(req, res, {
|
|
391
|
-
public: root,
|
|
392
|
-
cleanUrls: true
|
|
393
|
-
});
|
|
394
|
-
});
|
|
395
|
-
server.listen(0, async () => {
|
|
396
|
-
const { port } = server.address();
|
|
397
|
-
console.log(`Running on http://localhost:${port}/graph.html`);
|
|
398
|
-
await open(`http://localhost:${port}/graph.html`);
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
const graphPlugin = definePlugin({
|
|
402
|
-
name: "graph",
|
|
403
|
-
install(ctx, options) {
|
|
404
|
-
if (!options) throw new Error("Graph plugin requires options.root and options.mode");
|
|
405
|
-
ctx.on("files:writing:start", async (files) => {
|
|
406
|
-
const root = options.root;
|
|
407
|
-
const graph = getGraph({
|
|
408
|
-
files,
|
|
409
|
-
root
|
|
410
|
-
});
|
|
411
|
-
if (!graph) return;
|
|
412
|
-
const graphFile = createFile({
|
|
413
|
-
baseName: "graph.json",
|
|
414
|
-
path: path.join(root, "graph.json"),
|
|
415
|
-
sources: [{
|
|
416
|
-
name: "graph",
|
|
417
|
-
value: JSON.stringify(graph, null, 2)
|
|
418
|
-
}],
|
|
419
|
-
imports: [],
|
|
420
|
-
exports: []
|
|
421
|
-
});
|
|
422
|
-
const graphHtmlFile = createFile({
|
|
423
|
-
baseName: "graph.html",
|
|
424
|
-
path: path.join(root, "graph.html"),
|
|
425
|
-
sources: [{
|
|
426
|
-
name: "graph",
|
|
427
|
-
value: html
|
|
428
|
-
}],
|
|
429
|
-
imports: [],
|
|
430
|
-
exports: []
|
|
431
|
-
});
|
|
432
|
-
await ctx.addFile(graphFile, graphHtmlFile);
|
|
433
|
-
if (options.open) await serve(root);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
|
|
438
303
|
//#endregion
|
|
439
304
|
//#region src/plugins/loggerPlugin.ts
|
|
440
|
-
function normalizeAddress(address) {
|
|
441
|
-
return {
|
|
442
|
-
host: address.address === "::" ? "127.0.0.1" : address.address,
|
|
443
|
-
port: address.port
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function serializeFile(file) {
|
|
447
|
-
return {
|
|
448
|
-
path: file.path,
|
|
449
|
-
baseName: file.baseName,
|
|
450
|
-
name: "name" in file ? file.name : void 0,
|
|
451
|
-
extname: "extname" in file ? file.extname : void 0
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
305
|
function pluralize(word, count) {
|
|
455
306
|
return `${count} ${word}${count === 1 ? "" : "s"}`;
|
|
456
307
|
}
|
|
@@ -458,7 +309,7 @@ const DEFAULT_PROGRESS_BAR_SIZE = 30;
|
|
|
458
309
|
const loggerPlugin = definePlugin({
|
|
459
310
|
name: "logger",
|
|
460
311
|
install(ctx, options = {}) {
|
|
461
|
-
const {
|
|
312
|
+
const { progress = true } = options;
|
|
462
313
|
const state = {
|
|
463
314
|
spinner: clack.spinner(),
|
|
464
315
|
isSpinning: false,
|
|
@@ -467,70 +318,24 @@ const loggerPlugin = definePlugin({
|
|
|
467
318
|
function formatPath(path) {
|
|
468
319
|
return relative(process.cwd(), path);
|
|
469
320
|
}
|
|
470
|
-
let server;
|
|
471
|
-
let wss;
|
|
472
|
-
const broadcast = (event, payload) => {
|
|
473
|
-
if (!wss) return;
|
|
474
|
-
const message = JSON.stringify({
|
|
475
|
-
event,
|
|
476
|
-
payload
|
|
477
|
-
});
|
|
478
|
-
for (const client of wss.clients) if (client.readyState === WebSocket.OPEN) client.send(message);
|
|
479
|
-
};
|
|
480
|
-
if (websocket) {
|
|
481
|
-
const { host = "127.0.0.1", port = 0 } = typeof websocket === "boolean" ? {} : websocket;
|
|
482
|
-
server = http.createServer();
|
|
483
|
-
wss = new WebSocketServer({ server });
|
|
484
|
-
server.listen(port, host, () => {
|
|
485
|
-
const addressInfo = server === null || server === void 0 ? void 0 : server.address();
|
|
486
|
-
if (addressInfo && typeof addressInfo === "object") {
|
|
487
|
-
const { host: resolvedHost, port: resolvedPort } = normalizeAddress(addressInfo);
|
|
488
|
-
const url = `ws://${resolvedHost}:${resolvedPort}`;
|
|
489
|
-
clack.log.info(`${pc.blue("ℹ")} Logger websocket listening on ${url}`);
|
|
490
|
-
broadcast("websocket:ready", { url });
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
wss.on("connection", (socket) => {
|
|
494
|
-
clack.log.info(`${pc.blue("ℹ")} Logger websocket client connected`);
|
|
495
|
-
socket.send(JSON.stringify({
|
|
496
|
-
event: "welcome",
|
|
497
|
-
payload: {
|
|
498
|
-
message: "Connected to Fabric log stream",
|
|
499
|
-
timestamp: Date.now()
|
|
500
|
-
}
|
|
501
|
-
}));
|
|
502
|
-
});
|
|
503
|
-
wss.on("error", (error) => {
|
|
504
|
-
clack.log.error(`${pc.red("✗")} Logger websocket error: ${error.message}`);
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
321
|
ctx.on("lifecycle:start", async () => {
|
|
508
|
-
clack.intro(`${
|
|
509
|
-
broadcast("lifecycle:start", { timestamp: Date.now() });
|
|
322
|
+
clack.intro(`${styleText("blue", "Fabric")} ${styleText("dim", "Starting run")}`);
|
|
510
323
|
});
|
|
511
324
|
ctx.on("lifecycle:render", async () => {
|
|
512
|
-
clack.log.info(`${
|
|
513
|
-
broadcast("lifecycle:render", { timestamp: Date.now() });
|
|
325
|
+
clack.log.info(`${styleText("blue", "ℹ")} Rendering application graph`);
|
|
514
326
|
});
|
|
515
327
|
ctx.on("files:added", async (files) => {
|
|
516
328
|
if (!files.length) return;
|
|
517
|
-
clack.log.info(`${
|
|
518
|
-
broadcast("files:added", { files: files.map(serializeFile) });
|
|
329
|
+
clack.log.info(`${styleText("blue", "ℹ")} Queued ${pluralize("file", files.length)}`);
|
|
519
330
|
});
|
|
520
331
|
ctx.on("file:resolve:path", async (file) => {
|
|
521
|
-
clack.log.step(`Resolving path for ${
|
|
522
|
-
broadcast("file:resolve:path", { file: serializeFile(file) });
|
|
332
|
+
clack.log.step(`Resolving path for ${styleText("dim", formatPath(file.path))}`);
|
|
523
333
|
});
|
|
524
334
|
ctx.on("file:resolve:name", async (file) => {
|
|
525
|
-
clack.log.step(`Resolving name for ${
|
|
526
|
-
broadcast("file:resolve:name", { file: serializeFile(file) });
|
|
335
|
+
clack.log.step(`Resolving name for ${styleText("dim", formatPath(file.path))}`);
|
|
527
336
|
});
|
|
528
337
|
ctx.on("files:processing:start", async (files) => {
|
|
529
|
-
clack.log.step(`Processing ${
|
|
530
|
-
broadcast("files:processing:start", {
|
|
531
|
-
total: files.length,
|
|
532
|
-
timestamp: Date.now()
|
|
533
|
-
});
|
|
338
|
+
clack.log.step(`Processing ${styleText("green", pluralize("file", files.length))}`);
|
|
534
339
|
if (progress) {
|
|
535
340
|
state.progressBar = clack.progress({
|
|
536
341
|
style: "block",
|
|
@@ -541,80 +346,35 @@ const loggerPlugin = definePlugin({
|
|
|
541
346
|
}
|
|
542
347
|
});
|
|
543
348
|
ctx.on("file:processing:start", async (file, index, total) => {
|
|
544
|
-
if (!state.progressBar) clack.log.step(`Processing ${
|
|
545
|
-
broadcast("file:processing:start", {
|
|
546
|
-
index,
|
|
547
|
-
total,
|
|
548
|
-
file: serializeFile(file)
|
|
549
|
-
});
|
|
349
|
+
if (!state.progressBar) clack.log.step(`Processing ${styleText("dim", `[${index + 1}/${total}]`)} ${formatPath(file.path)}`);
|
|
550
350
|
});
|
|
551
351
|
ctx.on("file:processing:update", async ({ processed, total, percentage, file }) => {
|
|
552
|
-
broadcast("file:processing:update", {
|
|
553
|
-
processed,
|
|
554
|
-
total,
|
|
555
|
-
percentage,
|
|
556
|
-
file: serializeFile(file)
|
|
557
|
-
});
|
|
558
352
|
if (state.progressBar) state.progressBar.advance(void 0, `Writing ${formatPath(file.path)}`);
|
|
559
353
|
else {
|
|
560
354
|
const formattedPercentage = Number.isFinite(percentage) ? percentage.toFixed(1) : "0.0";
|
|
561
|
-
clack.log.step(`Progress ${
|
|
355
|
+
clack.log.step(`Progress ${styleText("green", `${formattedPercentage}%`)} ${styleText("dim", `(${processed}/${total})`)} → ${formatPath(file.path)}`);
|
|
562
356
|
}
|
|
563
357
|
});
|
|
564
358
|
ctx.on("file:processing:end", async (file, index, total) => {
|
|
565
|
-
if (state.progressBar) state.progressBar.message(`${
|
|
566
|
-
else clack.log.success(`${
|
|
567
|
-
broadcast("file:processing:end", {
|
|
568
|
-
index,
|
|
569
|
-
total,
|
|
570
|
-
file: serializeFile(file)
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
ctx.on("files:writing:start", async (files) => {
|
|
574
|
-
broadcast("files:writing:start", { files: files.map(serializeFile) });
|
|
575
|
-
});
|
|
576
|
-
ctx.on("files:writing:end", async (files) => {
|
|
577
|
-
broadcast("files:writing:end", { files: files.map(serializeFile) });
|
|
359
|
+
if (state.progressBar) state.progressBar.message(`${styleText("green", "✓")} Finished ${styleText("dim", `[${index + 1}/${total}]`)} ${formatPath(file.path)}`);
|
|
360
|
+
else clack.log.success(`${styleText("green", "✓")} Finished ${styleText("dim", `[${index + 1}/${total}]`)} ${formatPath(file.path)}`);
|
|
578
361
|
});
|
|
579
362
|
ctx.on("files:processing:end", async (files) => {
|
|
580
363
|
if (state.progressBar) {
|
|
581
|
-
state.progressBar.stop(`${
|
|
364
|
+
state.progressBar.stop(`${styleText("green", "✓")} Processed ${pluralize("file", files.length)}`);
|
|
582
365
|
state.progressBar = void 0;
|
|
583
|
-
} else clack.log.success(`${
|
|
584
|
-
broadcast("files:processing:end", {
|
|
585
|
-
total: files.length,
|
|
586
|
-
timestamp: Date.now()
|
|
587
|
-
});
|
|
366
|
+
} else clack.log.success(`${styleText("green", "✓")} Processed ${pluralize("file", files.length)}`);
|
|
588
367
|
});
|
|
589
368
|
ctx.on("lifecycle:end", async () => {
|
|
590
369
|
if (state.progressBar) {
|
|
591
370
|
state.progressBar.stop();
|
|
592
371
|
state.progressBar = void 0;
|
|
593
372
|
}
|
|
594
|
-
clack.outro(`${
|
|
595
|
-
broadcast("lifecycle:end", { timestamp: Date.now() });
|
|
596
|
-
const closures = [];
|
|
597
|
-
if (wss) {
|
|
598
|
-
const wsServer = wss;
|
|
599
|
-
closures.push(new Promise((resolve) => {
|
|
600
|
-
for (const client of wsServer.clients) client.close();
|
|
601
|
-
wsServer.close(() => resolve());
|
|
602
|
-
}));
|
|
603
|
-
}
|
|
604
|
-
if (server) {
|
|
605
|
-
const httpServer = server;
|
|
606
|
-
closures.push(new Promise((resolve) => {
|
|
607
|
-
httpServer.close(() => resolve());
|
|
608
|
-
}));
|
|
609
|
-
}
|
|
610
|
-
if (closures.length) {
|
|
611
|
-
await Promise.allSettled(closures);
|
|
612
|
-
clack.log.info(`${pc.blue("ℹ")} Logger websocket closed`);
|
|
613
|
-
}
|
|
373
|
+
clack.outro(`${styleText("blue", "Fabric")} ${styleText("dim", "completed")}`);
|
|
614
374
|
});
|
|
615
375
|
}
|
|
616
376
|
});
|
|
617
377
|
|
|
618
378
|
//#endregion
|
|
619
|
-
export { barrelPlugin, definePlugin, fsPlugin, fsxPlugin,
|
|
379
|
+
export { barrelPlugin, definePlugin, fsPlugin, fsxPlugin, loggerPlugin };
|
|
620
380
|
//# sourceMappingURL=plugins.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/fabric-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Core functionality for Kubb's fabric - A language-agnostic toolkit providing the foundation for plugin-based code generation with TypeScript support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/kubb-labs/fabric.git",
|
|
21
|
+
"url": "git+https://github.com/kubb-labs/fabric.git",
|
|
22
22
|
"directory": "packages/fabric-core"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"main": "./dist/index.cjs",
|
|
52
52
|
"module": "./dist/index.js",
|
|
53
|
-
"types": "./dist/index.d.
|
|
53
|
+
"types": "./dist/index.d.ts",
|
|
54
54
|
"typesVersions": {
|
|
55
55
|
"*": {
|
|
56
56
|
"parsers": [
|
|
@@ -83,22 +83,12 @@
|
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@clack/prompts": "^1.0.
|
|
87
|
-
"fs-extra": "^11.3.3",
|
|
88
|
-
"natural-orderby": "^5.0.0",
|
|
86
|
+
"@clack/prompts": "^1.0.1",
|
|
89
87
|
"p-limit": "^7.3.0",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"serve-handler": "^6.1.6",
|
|
93
|
-
"signal-exit": "^4.1.0",
|
|
94
|
-
"typescript": "5.9.3",
|
|
95
|
-
"ws": "^8.19.0"
|
|
96
|
-
},
|
|
97
|
-
"devDependencies": {
|
|
98
|
-
"@types/fs-extra": "^11.0.4",
|
|
99
|
-
"@types/serve-handler": "^6.1.4",
|
|
100
|
-
"@types/ws": "^8.18.1"
|
|
88
|
+
"remeda": "^2.33.6",
|
|
89
|
+
"typescript": "5.9.3"
|
|
101
90
|
},
|
|
91
|
+
"devDependencies": {},
|
|
102
92
|
"engines": {
|
|
103
93
|
"node": ">=20"
|
|
104
94
|
},
|
|
@@ -108,7 +98,7 @@
|
|
|
108
98
|
},
|
|
109
99
|
"scripts": {
|
|
110
100
|
"build": "tsdown && size-limit",
|
|
111
|
-
"clean": "
|
|
101
|
+
"clean": "node -e \"require('fs').rmSync('./dist', {recursive:true,force:true})\"",
|
|
112
102
|
"lint": "pnpm biome lint .",
|
|
113
103
|
"lint:fix": "pnpm biome lint --fix --unsafe .",
|
|
114
104
|
"release": "pnpm publish --no-git-check",
|
package/.output/server/node_modules/@kubb/react-fabric/dist/{chunk-DbZtQ4qb.js → chunk-Cnw5r_-A.js}
RENAMED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __name = (target, value) => __defProp(target, "name", {
|
|
5
|
-
value,
|
|
6
|
-
configurable: true
|
|
7
|
-
});
|
|
8
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -44,4 +40,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
40
|
}) : target, mod));
|
|
45
41
|
|
|
46
42
|
//#endregion
|
|
47
|
-
export { __toESM as
|
|
43
|
+
export { __toESM as i, __exportAll as n, __reExport as r, __commonJSMin as t };
|