@highstate/designer 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +20 -5
- package/.output/nitro.json +0 -15
- package/.output/public/_nuxt/BiOpBOhF.js +0 -69
- package/.output/public/_nuxt/Cbvq2xei.js +0 -1
- package/.output/public/_nuxt/DVgDGs8k.js +0 -1
- package/.output/public/_nuxt/builds/latest.json +0 -1
- package/.output/public/_nuxt/builds/meta/8de09a2c-8820-4655-b2f6-51c5fbc626cd.json +0 -1
- package/.output/public/_nuxt/entry.D7UJUp71.css +0 -5
- package/.output/public/_nuxt/error-404.SWzu_puR.css +0 -1
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +0 -1
- package/.output/public/_nuxt/rjBY3mWU.js +0 -1
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +0 -1
- package/.output/server/chunks/_/error-500.mjs +0 -8
- package/.output/server/chunks/_/error-500.mjs.map +0 -1
- package/.output/server/chunks/build/client.manifest.mjs +0 -85
- package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
- package/.output/server/chunks/nitro/nitro.mjs +0 -6161
- package/.output/server/chunks/nitro/nitro.mjs.map +0 -1
- package/.output/server/chunks/routes/api/_trpc_.mjs +0 -1067
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +0 -1
- package/.output/server/chunks/routes/renderer.mjs +0 -341
- package/.output/server/chunks/routes/renderer.mjs.map +0 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
- package/.output/server/index.mjs +0 -7
- package/.output/server/index.mjs.map +0 -1
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +0 -52
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +0 -60
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +0 -50
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +0 -52
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +0 -61
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +0 -47
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +0 -32
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +0 -37
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +0 -77
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +0 -42
- package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14027
- package/.output/server/node_modules/@babel/parser/package.json +0 -50
- package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +0 -31
- package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -174
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -84
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -25
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +0 -136
- package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -134
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -272
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -71
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -584
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -428
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
- package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
- package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
- package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -43
- package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -109
- package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +0 -47
- package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
- package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +0 -41
- package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -52
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
- package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -266
- package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +0 -144
- package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -572
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -153
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -567
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -482
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -182
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -117
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -294
- package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
- package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -144
- package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -249
- package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -349
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -105
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -51
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -88
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -305
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -309
- package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -665
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -202
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -305
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -770
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +0 -1569
- package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -431
- package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
- package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -526
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -92
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -371
- package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
- package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +0 -662
- package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -126
- package/.output/server/node_modules/@grpc/grpc-js/package.json +0 -87
- package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
- package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
- package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
- package/.output/server/node_modules/@grpc/proto-loader/package.json +0 -69
- package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
- package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +0 -138
- package/.output/server/node_modules/@logdna/tail-file/index.js +0 -3
- package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +0 -326
- package/.output/server/node_modules/@logdna/tail-file/package.json +0 -162
- package/.output/server/node_modules/@protobufjs/aspromise/index.js +0 -52
- package/.output/server/node_modules/@protobufjs/aspromise/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/base64/index.js +0 -139
- package/.output/server/node_modules/@protobufjs/base64/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/codegen/index.js +0 -99
- package/.output/server/node_modules/@protobufjs/codegen/package.json +0 -13
- package/.output/server/node_modules/@protobufjs/eventemitter/index.js +0 -76
- package/.output/server/node_modules/@protobufjs/eventemitter/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/fetch/index.js +0 -115
- package/.output/server/node_modules/@protobufjs/fetch/package.json +0 -25
- package/.output/server/node_modules/@protobufjs/float/index.js +0 -335
- package/.output/server/node_modules/@protobufjs/float/package.json +0 -26
- package/.output/server/node_modules/@protobufjs/inquire/index.js +0 -17
- package/.output/server/node_modules/@protobufjs/inquire/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/path/index.js +0 -65
- package/.output/server/node_modules/@protobufjs/path/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/pool/index.js +0 -48
- package/.output/server/node_modules/@protobufjs/pool/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/utf8/index.js +0 -105
- package/.output/server/node_modules/@protobufjs/utf8/package.json +0 -21
- package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +0 -21
- package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +0 -270
- package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +0 -47
- package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +0 -27
- package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +0 -1049
- package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +0 -28
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +0 -130
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +0 -131
- package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +0 -170
- package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +0 -991
- package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +0 -24
- package/.output/server/node_modules/@pulumi/pulumi/errors.js +0 -126
- package/.output/server/node_modules/@pulumi/pulumi/log/index.js +0 -132
- package/.output/server/node_modules/@pulumi/pulumi/metadata.js +0 -46
- package/.output/server/node_modules/@pulumi/pulumi/output.js +0 -677
- package/.output/server/node_modules/@pulumi/pulumi/package.json +0 -93
- package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +0 -631
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +0 -61
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +0 -582
- package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +0 -808
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +0 -158
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +0 -1058
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +0 -510
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +0 -7222
- package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +0 -1159
- package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +0 -11300
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +0 -310
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +0 -7447
- package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +0 -230
- package/.output/server/node_modules/@pulumi/pulumi/resource.js +0 -774
- package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +0 -103
- package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +0 -456
- package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +0 -129
- package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +0 -137
- package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +0 -64
- package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +0 -498
- package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +0 -928
- package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +0 -844
- package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +0 -551
- package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +0 -276
- package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +0 -187
- package/.output/server/node_modules/@pulumi/pulumi/utils.js +0 -89
- package/.output/server/node_modules/@pulumi/pulumi/version.js +0 -17
- package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +0 -279
- package/.output/server/node_modules/@pulumi/query/base.js +0 -34
- package/.output/server/node_modules/@pulumi/query/index.js +0 -87
- package/.output/server/node_modules/@pulumi/query/interfaces.js +0 -24
- package/.output/server/node_modules/@pulumi/query/operators.js +0 -1269
- package/.output/server/node_modules/@pulumi/query/package.json +0 -22
- package/.output/server/node_modules/@pulumi/query/sources.js +0 -81
- package/.output/server/node_modules/@pulumi/query/util.js +0 -23
- package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +0 -78
- package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +0 -54
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +0 -37
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +0 -36
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +0 -42
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +0 -54
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +0 -33
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +0 -635
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +0 -20
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +0 -23
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +0 -230
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +0 -501
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +0 -70
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +0 -20
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +0 -32
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +0 -91
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +0 -38
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +0 -17
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +0 -64
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +0 -12
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +0 -73
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +0 -35
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +0 -102
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +0 -151
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +0 -32
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +0 -71
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +0 -61
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +0 -24
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +0 -66
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +0 -94
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +0 -60
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +0 -48
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +0 -49
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +0 -53
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +0 -167
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +0 -33
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +0 -55
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +0 -13
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +0 -40
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +0 -13
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +0 -89
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +0 -221
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +0 -60
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +0 -36
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +0 -158
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/package.json +0 -106
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +0 -434
- package/.output/server/node_modules/@sindresorhus/is/package.json +0 -96
- package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
- package/.output/server/node_modules/@szmarczak/http-timer/package.json +0 -72
- package/.output/server/node_modules/@trpc/server/dist/http.mjs +0 -7
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -11
- package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +0 -175
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +0 -73
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +0 -78
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +0 -5
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +0 -29
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +0 -224
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +0 -12
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +0 -76
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/isAbortError.mjs +0 -7
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +0 -39
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -569
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +0 -80
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +0 -90
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +0 -40
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +0 -194
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +0 -6
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +0 -176
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +0 -54
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +0 -631
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +0 -355
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +0 -25
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +0 -167
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +0 -15
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +0 -41
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +0 -23
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +0 -23
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +0 -127
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +0 -101
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +0 -83
- package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +0 -289
- package/.output/server/node_modules/@trpc/server/package.json +0 -156
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +0 -197
- package/.output/server/node_modules/@unhead/dom/package.json +0 -40
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +0 -731
- package/.output/server/node_modules/@unhead/shared/package.json +0 -47
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +0 -95
- package/.output/server/node_modules/@unhead/ssr/package.json +0 -40
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
- package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
- package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
- package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
- package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
- package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
- package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
- package/.output/server/node_modules/@vue/shared/package.json +0 -47
- package/.output/server/node_modules/acorn/dist/acorn.mjs +0 -6145
- package/.output/server/node_modules/acorn/package.json +0 -50
- package/.output/server/node_modules/better-lock/dist/better_lock.js +0 -377
- package/.output/server/node_modules/better-lock/dist/errors.js +0 -136
- package/.output/server/node_modules/better-lock/dist/index.js +0 -28
- package/.output/server/node_modules/better-lock/dist/internals.js +0 -75
- package/.output/server/node_modules/better-lock/dist/tools.js +0 -109
- package/.output/server/node_modules/better-lock/package.json +0 -60
- package/.output/server/node_modules/cacheable-lookup/package.json +0 -45
- package/.output/server/node_modules/cacheable-lookup/source/index.js +0 -436
- package/.output/server/node_modules/cacheable-request/package.json +0 -56
- package/.output/server/node_modules/cacheable-request/src/index.js +0 -251
- package/.output/server/node_modules/clone-response/package.json +0 -41
- package/.output/server/node_modules/clone-response/src/index.js +0 -17
- package/.output/server/node_modules/confbox/dist/index.mjs +0 -1
- package/.output/server/node_modules/confbox/dist/json5.mjs +0 -14
- package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +0 -1
- package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +0 -7
- package/.output/server/node_modules/confbox/dist/toml.mjs +0 -239
- package/.output/server/node_modules/confbox/dist/yaml.mjs +0 -32
- package/.output/server/node_modules/confbox/package.json +0 -86
- package/.output/server/node_modules/consola/dist/core.mjs +0 -410
- package/.output/server/node_modules/consola/package.json +0 -101
- 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/decompress-response/index.js +0 -58
- package/.output/server/node_modules/decompress-response/package.json +0 -56
- package/.output/server/node_modules/defer-to-connect/dist/source/index.js +0 -47
- package/.output/server/node_modules/defer-to-connect/package.json +0 -71
- package/.output/server/node_modules/dettle/dist/debounce.js +0 -91
- package/.output/server/node_modules/dettle/dist/index.js +0 -5
- package/.output/server/node_modules/dettle/dist/throttle.js +0 -12
- package/.output/server/node_modules/dettle/package.json +0 -28
- package/.output/server/node_modules/devalue/index.js +0 -3
- package/.output/server/node_modules/devalue/package.json +0 -34
- package/.output/server/node_modules/devalue/src/base64.js +0 -110
- package/.output/server/node_modules/devalue/src/constants.js +0 -6
- package/.output/server/node_modules/devalue/src/parse.js +0 -160
- package/.output/server/node_modules/devalue/src/stringify.js +0 -232
- package/.output/server/node_modules/devalue/src/uneval.js +0 -351
- package/.output/server/node_modules/devalue/src/utils.js +0 -113
- package/.output/server/node_modules/dotenv/config.js +0 -9
- package/.output/server/node_modules/dotenv/lib/cli-options.js +0 -11
- package/.output/server/node_modules/dotenv/lib/env-options.js +0 -24
- package/.output/server/node_modules/dotenv/lib/main.js +0 -361
- package/.output/server/node_modules/dotenv/package.json +0 -61
- package/.output/server/node_modules/end-of-stream/index.js +0 -94
- package/.output/server/node_modules/end-of-stream/package.json +0 -37
- package/.output/server/node_modules/entities/lib/decode.js +0 -536
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/entities/package.json +0 -90
- package/.output/server/node_modules/esprima/dist/esprima.js +0 -6709
- package/.output/server/node_modules/esprima/package.json +0 -112
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
- package/.output/server/node_modules/estree-walker/package.json +0 -37
- package/.output/server/node_modules/execa/index.js +0 -268
- package/.output/server/node_modules/execa/lib/command.js +0 -52
- package/.output/server/node_modules/execa/lib/error.js +0 -88
- package/.output/server/node_modules/execa/lib/kill.js +0 -115
- package/.output/server/node_modules/execa/lib/promise.js +0 -46
- package/.output/server/node_modules/execa/lib/stdio.js +0 -52
- package/.output/server/node_modules/execa/lib/stream.js +0 -97
- package/.output/server/node_modules/execa/package.json +0 -74
- package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +0 -147
- package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +0 -955
- package/.output/server/node_modules/google-protobuf/google-protobuf.js +0 -149
- package/.output/server/node_modules/google-protobuf/package.json +0 -35
- package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
- package/.output/server/node_modules/got/dist/source/as-promise/index.js +0 -176
- package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
- package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
- package/.output/server/node_modules/got/dist/source/as-promise/types.js +0 -42
- package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
- package/.output/server/node_modules/got/dist/source/core/index.js +0 -1505
- package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
- package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
- package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
- package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
- package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
- package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
- package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
- package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
- package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
- package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
- package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
- package/.output/server/node_modules/got/dist/source/create.js +0 -240
- package/.output/server/node_modules/got/dist/source/index.js +0 -132
- package/.output/server/node_modules/got/dist/source/types.js +0 -2
- package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
- package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
- package/.output/server/node_modules/got/package.json +0 -131
- package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
- package/.output/server/node_modules/hookable/package.json +0 -49
- package/.output/server/node_modules/http-cache-semantics/index.js +0 -674
- package/.output/server/node_modules/http-cache-semantics/package.json +0 -18
- package/.output/server/node_modules/http2-wrapper/package.json +0 -54
- package/.output/server/node_modules/http2-wrapper/source/agent.js +0 -670
- package/.output/server/node_modules/http2-wrapper/source/auto.js +0 -149
- package/.output/server/node_modules/http2-wrapper/source/client-request.js +0 -445
- package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +0 -58
- package/.output/server/node_modules/http2-wrapper/source/index.js +0 -28
- package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
- package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +0 -45
- package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
- package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
- package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
- 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 -71
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
- package/.output/server/node_modules/human-signals/package.json +0 -64
- package/.output/server/node_modules/import-meta-resolve/index.js +0 -47
- package/.output/server/node_modules/import-meta-resolve/lib/errors.js +0 -507
- package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +0 -159
- package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +0 -177
- package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +0 -1297
- package/.output/server/node_modules/import-meta-resolve/lib/utils.js +0 -47
- package/.output/server/node_modules/import-meta-resolve/package.json +0 -95
- package/.output/server/node_modules/is-stream/index.js +0 -28
- package/.output/server/node_modules/is-stream/package.json +0 -42
- 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-yaml/index.js +0 -7
- package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
- package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
- package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
- package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
- package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
- package/.output/server/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/.output/server/node_modules/js-yaml/package.json +0 -49
- package/.output/server/node_modules/json-buffer/index.js +0 -58
- package/.output/server/node_modules/json-buffer/package.json +0 -34
- package/.output/server/node_modules/keyv/package.json +0 -57
- package/.output/server/node_modules/keyv/src/index.js +0 -259
- package/.output/server/node_modules/lodash.camelcase/index.js +0 -599
- package/.output/server/node_modules/lodash.camelcase/package.json +0 -19
- package/.output/server/node_modules/long/package.json +0 -50
- package/.output/server/node_modules/long/umd/index.js +0 -1432
- package/.output/server/node_modules/long/umd/package.json +0 -3
- package/.output/server/node_modules/lowercase-keys/index.js +0 -10
- package/.output/server/node_modules/lowercase-keys/package.json +0 -38
- package/.output/server/node_modules/merge-stream/index.js +0 -41
- package/.output/server/node_modules/merge-stream/package.json +0 -19
- package/.output/server/node_modules/mimic-fn/index.js +0 -13
- package/.output/server/node_modules/mimic-fn/package.json +0 -42
- package/.output/server/node_modules/mlly/dist/index.mjs +0 -2606
- package/.output/server/node_modules/mlly/package.json +0 -50
- package/.output/server/node_modules/normalize-url/index.js +0 -216
- package/.output/server/node_modules/normalize-url/package.json +0 -50
- package/.output/server/node_modules/npm-run-path/index.js +0 -47
- package/.output/server/node_modules/npm-run-path/package.json +0 -44
- package/.output/server/node_modules/nypm/dist/index.mjs +0 -306
- package/.output/server/node_modules/nypm/package.json +0 -60
- package/.output/server/node_modules/once/once.js +0 -42
- package/.output/server/node_modules/once/package.json +0 -33
- package/.output/server/node_modules/onetime/index.js +0 -44
- package/.output/server/node_modules/onetime/package.json +0 -43
- package/.output/server/node_modules/p-cancelable/index.js +0 -111
- package/.output/server/node_modules/p-cancelable/package.json +0 -49
- package/.output/server/node_modules/path-key/index.js +0 -16
- package/.output/server/node_modules/path-key/package.json +0 -39
- package/.output/server/node_modules/pathe/dist/index.mjs +0 -1
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
- package/.output/server/node_modules/pathe/package.json +0 -48
- package/.output/server/node_modules/pkg-types/dist/index.mjs +0 -156
- package/.output/server/node_modules/pkg-types/package.json +0 -47
- package/.output/server/node_modules/promise-make-counter/dist/index.js +0 -24
- package/.output/server/node_modules/promise-make-counter/package.json +0 -32
- package/.output/server/node_modules/promise-make-naked/dist/index.js +0 -25
- package/.output/server/node_modules/promise-make-naked/dist/utils.js +0 -4
- package/.output/server/node_modules/promise-make-naked/package.json +0 -27
- package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
- package/.output/server/node_modules/protobufjs/google/protobuf/api.json +0 -118
- package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
- package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
- package/.output/server/node_modules/protobufjs/google/protobuf/type.json +0 -202
- package/.output/server/node_modules/protobufjs/index.js +0 -4
- package/.output/server/node_modules/protobufjs/package.json +0 -112
- package/.output/server/node_modules/protobufjs/src/common.js +0 -399
- package/.output/server/node_modules/protobufjs/src/converter.js +0 -301
- package/.output/server/node_modules/protobufjs/src/decoder.js +0 -129
- package/.output/server/node_modules/protobufjs/src/encoder.js +0 -100
- package/.output/server/node_modules/protobufjs/src/enum.js +0 -198
- package/.output/server/node_modules/protobufjs/src/field.js +0 -377
- package/.output/server/node_modules/protobufjs/src/index-light.js +0 -104
- package/.output/server/node_modules/protobufjs/src/index-minimal.js +0 -36
- package/.output/server/node_modules/protobufjs/src/index.js +0 -12
- package/.output/server/node_modules/protobufjs/src/mapfield.js +0 -126
- package/.output/server/node_modules/protobufjs/src/message.js +0 -139
- package/.output/server/node_modules/protobufjs/src/method.js +0 -160
- package/.output/server/node_modules/protobufjs/src/namespace.js +0 -433
- package/.output/server/node_modules/protobufjs/src/object.js +0 -243
- package/.output/server/node_modules/protobufjs/src/oneof.js +0 -203
- package/.output/server/node_modules/protobufjs/src/parse.js +0 -893
- package/.output/server/node_modules/protobufjs/src/reader.js +0 -416
- package/.output/server/node_modules/protobufjs/src/reader_buffer.js +0 -51
- package/.output/server/node_modules/protobufjs/src/root.js +0 -368
- package/.output/server/node_modules/protobufjs/src/roots.js +0 -18
- package/.output/server/node_modules/protobufjs/src/rpc/service.js +0 -142
- package/.output/server/node_modules/protobufjs/src/rpc.js +0 -36
- package/.output/server/node_modules/protobufjs/src/service.js +0 -167
- package/.output/server/node_modules/protobufjs/src/tokenize.js +0 -416
- package/.output/server/node_modules/protobufjs/src/type.js +0 -589
- package/.output/server/node_modules/protobufjs/src/types.js +0 -196
- package/.output/server/node_modules/protobufjs/src/util/longbits.js +0 -200
- package/.output/server/node_modules/protobufjs/src/util/minimal.js +0 -438
- package/.output/server/node_modules/protobufjs/src/util.js +0 -212
- package/.output/server/node_modules/protobufjs/src/verifier.js +0 -177
- package/.output/server/node_modules/protobufjs/src/wrappers.js +0 -102
- package/.output/server/node_modules/protobufjs/src/writer.js +0 -465
- package/.output/server/node_modules/protobufjs/src/writer_buffer.js +0 -85
- package/.output/server/node_modules/pump/index.js +0 -86
- package/.output/server/node_modules/pump/package.json +0 -24
- package/.output/server/node_modules/quick-lru/index.js +0 -123
- package/.output/server/node_modules/quick-lru/package.json +0 -43
- package/.output/server/node_modules/remeda/dist/chunk-23J5WHPE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-2H7222YL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-2TTHCYUC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3AO76THC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3MWN2VHC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3X47EJDR.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-54BCGHSM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5G3KY7YR.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5K4XWC27.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5LYW332I.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5O3FBXU6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5VD5RID3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6HBEBUDI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6IHL7GXT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6MJCR2TC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-73TZMTEA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7BKSRZNG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7EFS5WOU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7KI2QQIQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7LYAC624.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7ROMSESG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-A3FCILQE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ATQJ6737.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-AWX7RJXY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BLEEZ23Z.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BONXESQ2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BQ7TSIFE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BTFWISLJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BYFE4FDX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C4ACUJGS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C4OSHTCI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-CETFG6TX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-CGDTCOHY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-CGU6DJQK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-COZRMC32.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DAHUGBAA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DAQH7UR3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +0 -2
- package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DUDVLQA2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-E3EM3KJY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-E5GMYZMA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EJCQEWX4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EKGXROMD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EM24PB7A.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ENXBNJ36.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-F6MOVT3B.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FB2ENREB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FFFVS7XT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FJ47D26D.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FTGV3QMT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FW6RZCGF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-G4OU46SC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GJJNKHO2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-H2MMZB4H.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HBSRBOZK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HO4FFX2R.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HQOQUMZV.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-I76XIBD5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ICQWNDYD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-IEE7G5JG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-IFSMCGFE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-IUVYQYF2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JET27MOQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JWKJXNB2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JYNHUNML.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K26VP6CL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K5HTIQFL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K5LCXBBG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KCAOR2LA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KIA3HX3M.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KQINSXIJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KSDEFWLH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LAI77QME.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LFEOZTJ2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LIVAT3FO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LKOWEUPS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-MD7HNZ54.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-MQWMWXZY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NGEN63UD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NMJS7ULY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NP7PEDI6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OC26KGXM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OEI2BOBZ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OYJAL6JK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PJOV2RDB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PWMUXL7T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PZOXR343.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RAAYCPUM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RIKUOZVG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RLZQTLGN.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RTWSSDNQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RU7WR4KH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RUHQUI2Z.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RXDTYBQM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-S23N53O3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-S3CYJTB5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SIBGEYD6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SIQPZPLZ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SOGKZP3K.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-TOHMEB3C.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-U2GFW3LV.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-U54ONDS6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UEZTW4YU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UIZMRUOL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UWLP4KOD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VBBPTWMC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VCURCCIJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VFKB5IBK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VPCXVUT7.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-W2HQ33EO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-W3QI2BKC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WIMS2EYK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WT5BLBHJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WY3JJUR4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WZSGNJRX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-X5E5CJJQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XBEN2OB2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XJHR6NID.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XSF7OVJO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-Y67GVJD3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YL2OFO3L.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ZF7KX2VP.js +0 -1
- package/.output/server/node_modules/remeda/dist/index.js +0 -1
- package/.output/server/node_modules/remeda/package.json +0 -88
- package/.output/server/node_modules/resolve-alpn/index.js +0 -43
- package/.output/server/node_modules/resolve-alpn/package.json +0 -34
- package/.output/server/node_modules/responselike/package.json +0 -39
- package/.output/server/node_modules/responselike/src/index.js +0 -34
- package/.output/server/node_modules/semver/classes/comparator.js +0 -141
- package/.output/server/node_modules/semver/classes/range.js +0 -554
- package/.output/server/node_modules/semver/classes/semver.js +0 -302
- package/.output/server/node_modules/semver/functions/clean.js +0 -6
- package/.output/server/node_modules/semver/functions/cmp.js +0 -52
- package/.output/server/node_modules/semver/functions/coerce.js +0 -60
- package/.output/server/node_modules/semver/functions/compare-build.js +0 -7
- package/.output/server/node_modules/semver/functions/compare-loose.js +0 -3
- package/.output/server/node_modules/semver/functions/compare.js +0 -5
- package/.output/server/node_modules/semver/functions/diff.js +0 -65
- package/.output/server/node_modules/semver/functions/eq.js +0 -3
- package/.output/server/node_modules/semver/functions/gt.js +0 -3
- package/.output/server/node_modules/semver/functions/gte.js +0 -3
- package/.output/server/node_modules/semver/functions/inc.js +0 -19
- package/.output/server/node_modules/semver/functions/lt.js +0 -3
- package/.output/server/node_modules/semver/functions/lte.js +0 -3
- package/.output/server/node_modules/semver/functions/major.js +0 -3
- package/.output/server/node_modules/semver/functions/minor.js +0 -3
- package/.output/server/node_modules/semver/functions/neq.js +0 -3
- package/.output/server/node_modules/semver/functions/parse.js +0 -16
- package/.output/server/node_modules/semver/functions/patch.js +0 -3
- package/.output/server/node_modules/semver/functions/prerelease.js +0 -6
- package/.output/server/node_modules/semver/functions/rcompare.js +0 -3
- package/.output/server/node_modules/semver/functions/rsort.js +0 -3
- package/.output/server/node_modules/semver/functions/satisfies.js +0 -10
- package/.output/server/node_modules/semver/functions/sort.js +0 -3
- package/.output/server/node_modules/semver/functions/valid.js +0 -6
- package/.output/server/node_modules/semver/index.js +0 -89
- package/.output/server/node_modules/semver/internal/constants.js +0 -35
- package/.output/server/node_modules/semver/internal/debug.js +0 -9
- package/.output/server/node_modules/semver/internal/identifiers.js +0 -23
- package/.output/server/node_modules/semver/internal/lrucache.js +0 -40
- package/.output/server/node_modules/semver/internal/parse-options.js +0 -15
- package/.output/server/node_modules/semver/internal/re.js +0 -217
- package/.output/server/node_modules/semver/package.json +0 -77
- package/.output/server/node_modules/semver/preload.js +0 -2
- package/.output/server/node_modules/semver/ranges/gtr.js +0 -4
- package/.output/server/node_modules/semver/ranges/intersects.js +0 -7
- package/.output/server/node_modules/semver/ranges/ltr.js +0 -4
- package/.output/server/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/.output/server/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/.output/server/node_modules/semver/ranges/min-version.js +0 -61
- package/.output/server/node_modules/semver/ranges/outside.js +0 -80
- package/.output/server/node_modules/semver/ranges/simplify.js +0 -47
- package/.output/server/node_modules/semver/ranges/subset.js +0 -247
- package/.output/server/node_modules/semver/ranges/to-comparators.js +0 -8
- package/.output/server/node_modules/semver/ranges/valid.js +0 -11
- 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/index.js +0 -202
- package/.output/server/node_modules/signal-exit/package.json +0 -38
- package/.output/server/node_modules/signal-exit/signals.js +0 -53
- package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
- package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
- package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
- package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
- package/.output/server/node_modules/source-map-js/package.json +0 -71
- package/.output/server/node_modules/source-map-js/source-map.js +0 -8
- package/.output/server/node_modules/strip-final-newline/index.js +0 -16
- package/.output/server/node_modules/strip-final-newline/package.json +0 -40
- package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +0 -19
- package/.output/server/node_modules/stubborn-fs/dist/constants.js +0 -8
- package/.output/server/node_modules/stubborn-fs/dist/handlers.js +0 -36
- package/.output/server/node_modules/stubborn-fs/dist/index.js +0 -53
- package/.output/server/node_modules/stubborn-fs/dist/retryify.js +0 -46
- package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +0 -62
- package/.output/server/node_modules/stubborn-fs/package.json +0 -28
- package/.output/server/node_modules/tiny-readdir/dist/constants.js +0 -9
- package/.output/server/node_modules/tiny-readdir/dist/index.js +0 -185
- package/.output/server/node_modules/tiny-readdir/dist/utils.js +0 -9
- package/.output/server/node_modules/tiny-readdir/package.json +0 -34
- package/.output/server/node_modules/tinyexec/dist/main.js +0 -578
- package/.output/server/node_modules/tinyexec/package.json +0 -66
- package/.output/server/node_modules/tmp/lib/tmp.js +0 -784
- package/.output/server/node_modules/tmp/package.json +0 -56
- package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
- package/.output/server/node_modules/ufo/package.json +0 -47
- package/.output/server/node_modules/unhead/dist/index.mjs +0 -748
- package/.output/server/node_modules/unhead/package.json +0 -46
- package/.output/server/node_modules/upath/build/code/upath.js +0 -171
- package/.output/server/node_modules/upath/package.json +0 -60
- package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/vue/index.js +0 -7
- package/.output/server/node_modules/vue/index.mjs +0 -1
- package/.output/server/node_modules/vue/package.json +0 -112
- package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
- package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
- package/.output/server/node_modules/watcher/dist/constants.js +0 -16
- package/.output/server/node_modules/watcher/dist/enums.js +0 -35
- package/.output/server/node_modules/watcher/dist/lazy_map_set.js +0 -81
- package/.output/server/node_modules/watcher/dist/utils.js +0 -120
- package/.output/server/node_modules/watcher/dist/watcher.js +0 -396
- package/.output/server/node_modules/watcher/dist/watcher_handler.js +0 -248
- package/.output/server/node_modules/watcher/dist/watcher_locker.js +0 -139
- package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +0 -42
- package/.output/server/node_modules/watcher/dist/watcher_poller.js +0 -116
- package/.output/server/node_modules/watcher/dist/watcher_stats.js +0 -29
- package/.output/server/node_modules/watcher/package.json +0 -37
- 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/wrappy/package.json +0 -29
- package/.output/server/node_modules/wrappy/wrappy.js +0 -33
- package/.output/server/node_modules/zod/lib/index.mjs +0 -4382
- package/.output/server/node_modules/zod/package.json +0 -122
- package/.output/server/package.json +0 -1
|
@@ -1,1067 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import { e as eventHandler, r as readBody, t as toWebRequest, d as defineLazyEventHandler } from '../../nitro/nitro.mjs';
|
|
2
|
-
import { resolveResponse } from '@trpc/server/http';
|
|
3
|
-
import { initTRPC, TRPCError } from '@trpc/server';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { createConsola as createConsola$1 } from 'consola/core';
|
|
6
|
-
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import { EventEmitter, on } from 'node:events';
|
|
8
|
-
import { Worker } from 'node:worker_threads';
|
|
9
|
-
import { basename, relative, dirname } from 'node:path';
|
|
10
|
-
import Watcher from 'watcher';
|
|
11
|
-
import { BetterLock } from 'better-lock';
|
|
12
|
-
import { resolve } from 'import-meta-resolve';
|
|
13
|
-
import { readFile, writeFile, mkdir } from 'fs/promises';
|
|
14
|
-
import { pickBy, mapValues, debounce } from 'remeda';
|
|
15
|
-
import { findWorkspaceDir, readPackageJSON } from 'pkg-types';
|
|
16
|
-
import { addDependency } from 'nypm';
|
|
17
|
-
import 'node:http';
|
|
18
|
-
import 'node:https';
|
|
19
|
-
import 'node:fs';
|
|
20
|
-
|
|
21
|
-
// src/server/index.ts
|
|
22
|
-
function getPath(event) {
|
|
23
|
-
const { params } = event.context;
|
|
24
|
-
if (typeof params?.trpc === "string") {
|
|
25
|
-
return params.trpc;
|
|
26
|
-
}
|
|
27
|
-
if (params?.trpc && Array.isArray(params.trpc)) {
|
|
28
|
-
return params.trpc.join("/");
|
|
29
|
-
}
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
function createNuxtApiHandler(opts) {
|
|
33
|
-
return eventHandler(async (event) => {
|
|
34
|
-
const createContext = async (innerOpts) => {
|
|
35
|
-
return await opts.createContext?.(event, innerOpts);
|
|
36
|
-
};
|
|
37
|
-
const { req } = event.node;
|
|
38
|
-
const path = getPath(event);
|
|
39
|
-
if (event.method === "POST") {
|
|
40
|
-
req.body = await readBody(event);
|
|
41
|
-
}
|
|
42
|
-
const httpResponse = await resolveResponse({
|
|
43
|
-
...opts,
|
|
44
|
-
req: toWebRequest(event),
|
|
45
|
-
error: null,
|
|
46
|
-
createContext,
|
|
47
|
-
path,
|
|
48
|
-
onError(o) {
|
|
49
|
-
opts.onError?.({
|
|
50
|
-
...o,
|
|
51
|
-
req
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return httpResponse;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const t = initTRPC.context().create();
|
|
60
|
-
const publicProcedure = t.procedure;
|
|
61
|
-
const router = t.router;
|
|
62
|
-
t.middleware;
|
|
63
|
-
|
|
64
|
-
const stateRouter = router({
|
|
65
|
-
get: publicProcedure.input(
|
|
66
|
-
z.object({
|
|
67
|
-
projectId: z.string()
|
|
68
|
-
})
|
|
69
|
-
).query(async ({ input, ctx }) => {
|
|
70
|
-
const operator = await ctx.operatorManager.get(input.projectId);
|
|
71
|
-
return operator.state;
|
|
72
|
-
}),
|
|
73
|
-
watchCurrentOperation: publicProcedure.input(
|
|
74
|
-
z.object({
|
|
75
|
-
projectId: z.string()
|
|
76
|
-
})
|
|
77
|
-
).subscription(async function* ({ input, ctx, signal }) {
|
|
78
|
-
const operator = await ctx.operatorManager.get(input.projectId);
|
|
79
|
-
yield* operator.watchCurrentOperation(signal);
|
|
80
|
-
}),
|
|
81
|
-
watchInstanceStates: publicProcedure.input(
|
|
82
|
-
z.object({
|
|
83
|
-
projectId: z.string()
|
|
84
|
-
})
|
|
85
|
-
).subscription(async function* ({ input, ctx, signal }) {
|
|
86
|
-
const operator = await ctx.operatorManager.get(input.projectId);
|
|
87
|
-
yield* operator.watchInstanceStates(signal);
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
var __defProp$4 = Object.defineProperty;
|
|
92
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
93
|
-
var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
94
|
-
var _a;
|
|
95
|
-
class LocalPulumiProjectHost {
|
|
96
|
-
constructor() {
|
|
97
|
-
__publicField$4(this, "lock", new BetterLock());
|
|
98
|
-
__publicField$4(this, "password", (_a = process.env.PULUMI_CONFIG_PASSPHRASE) != null ? _a : "");
|
|
99
|
-
}
|
|
100
|
-
hasPassword() {
|
|
101
|
-
return !!this.password;
|
|
102
|
-
}
|
|
103
|
-
setPassword(password) {
|
|
104
|
-
this.password = password;
|
|
105
|
-
}
|
|
106
|
-
async runInline(projectName, stackName, program, fn) {
|
|
107
|
-
return this.lock.acquire(`${projectName}.${stackName}`, async () => {
|
|
108
|
-
const { LocalWorkspace } = await import('@pulumi/pulumi/automation');
|
|
109
|
-
const stack = await LocalWorkspace.createOrSelectStack(
|
|
110
|
-
{
|
|
111
|
-
projectName,
|
|
112
|
-
stackName,
|
|
113
|
-
program
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
projectSettings: {
|
|
117
|
-
name: projectName,
|
|
118
|
-
runtime: "nodejs"
|
|
119
|
-
},
|
|
120
|
-
envVars: { PULUMI_CONFIG_PASSPHRASE: this.password }
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
return await fn(stack);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
async runLocal(projectName, stackName, programPathResolver, fn) {
|
|
127
|
-
return this.lock.acquire(`${projectName}.${stackName}`, async () => {
|
|
128
|
-
const { LocalWorkspace } = await import('@pulumi/pulumi/automation');
|
|
129
|
-
const stack = await LocalWorkspace.createOrSelectStack(
|
|
130
|
-
{
|
|
131
|
-
stackName,
|
|
132
|
-
workDir: await programPathResolver()
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
envVars: { PULUMI_CONFIG_PASSPHRASE: this.password }
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
return await fn(stack);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const instanceStatusSchema = z.enum([
|
|
144
|
-
"not_created",
|
|
145
|
-
"updating",
|
|
146
|
-
"destroying",
|
|
147
|
-
"refreshing",
|
|
148
|
-
"created",
|
|
149
|
-
"error"
|
|
150
|
-
]);
|
|
151
|
-
const instanceStateSchema = z.object({
|
|
152
|
-
key: z.string(),
|
|
153
|
-
parentKey: z.string().optional(),
|
|
154
|
-
status: instanceStatusSchema,
|
|
155
|
-
resources: z.number(),
|
|
156
|
-
totalResources: z.number(),
|
|
157
|
-
error: z.string().optional(),
|
|
158
|
-
message: z.string().optional()
|
|
159
|
-
});
|
|
160
|
-
const operationType = z.enum(["update", "destroy", "recreate", "refresh"]);
|
|
161
|
-
const projectOperation = z.object({
|
|
162
|
-
type: operationType,
|
|
163
|
-
instanceIds: z.array(z.string())
|
|
164
|
-
});
|
|
165
|
-
const projectStateSchema = z.object({
|
|
166
|
-
currentOperation: projectOperation.optional(),
|
|
167
|
-
instances: z.record(instanceStateSchema.optional())
|
|
168
|
-
});
|
|
169
|
-
const positionSchema = z.object({
|
|
170
|
-
x: z.number(),
|
|
171
|
-
y: z.number()
|
|
172
|
-
});
|
|
173
|
-
const outputRefSchema = z.object({
|
|
174
|
-
instanceId: z.string(),
|
|
175
|
-
output: z.string()
|
|
176
|
-
});
|
|
177
|
-
const instanceModelSchema = z.object({
|
|
178
|
-
id: z.string().nanoid(),
|
|
179
|
-
type: z.string(),
|
|
180
|
-
name: z.string(),
|
|
181
|
-
position: positionSchema,
|
|
182
|
-
args: z.record(z.any()),
|
|
183
|
-
inputs: z.record(z.union([outputRefSchema, z.array(outputRefSchema)]))
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
const stringArrayType = z.string().transform((args) => args.split(",").map((arg) => arg.trim()));
|
|
187
|
-
|
|
188
|
-
async function resolveMainLocalProject(projectPath, projectName) {
|
|
189
|
-
if (!projectPath) {
|
|
190
|
-
projectPath = await findWorkspaceDir();
|
|
191
|
-
}
|
|
192
|
-
if (!projectName) {
|
|
193
|
-
const packageJson = await readPackageJSON(projectPath);
|
|
194
|
-
projectName = packageJson.name;
|
|
195
|
-
}
|
|
196
|
-
if (!projectName) {
|
|
197
|
-
projectName = basename(projectPath);
|
|
198
|
-
}
|
|
199
|
-
return [projectPath, projectName];
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
class SecretAccessDeniedError extends Error {
|
|
203
|
-
constructor(projectId, key) {
|
|
204
|
-
super(`Access to the secrets of component "${projectId}.${key}" is denied.`);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
const localSecretBackendConfig = z.object({
|
|
209
|
-
HIGHSTATE_BACKEND_SECRET_PROJECT_PATH: z.string().optional(),
|
|
210
|
-
HIGHSTATE_BACKEND_SECRET_PROJECT_NAME: z.string().optional()
|
|
211
|
-
});
|
|
212
|
-
class LocalSecretBackend {
|
|
213
|
-
constructor(projectPath, projectName, pulumiProjectHost) {
|
|
214
|
-
this.projectPath = projectPath;
|
|
215
|
-
this.projectName = projectName;
|
|
216
|
-
this.pulumiProjectHost = pulumiProjectHost;
|
|
217
|
-
}
|
|
218
|
-
get(projectId, componentKey) {
|
|
219
|
-
return this.pulumiProjectHost.runLocal(
|
|
220
|
-
this.projectName,
|
|
221
|
-
projectId,
|
|
222
|
-
() => this.projectPath,
|
|
223
|
-
async (stack) => {
|
|
224
|
-
const config = await stack.getAllConfig();
|
|
225
|
-
const componentSecrets = pickBy(config, (_, key) => key.startsWith(`${componentKey}.`));
|
|
226
|
-
return mapValues(componentSecrets, (value) => value.value);
|
|
227
|
-
}
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
set(projectId, componentKey, values) {
|
|
231
|
-
return this.pulumiProjectHost.runLocal(
|
|
232
|
-
this.projectName,
|
|
233
|
-
projectId,
|
|
234
|
-
() => this.projectPath,
|
|
235
|
-
async (stack) => {
|
|
236
|
-
const componentSecrets = mapValues(values, (value, key) => ({
|
|
237
|
-
key: `${componentKey}.${key}`,
|
|
238
|
-
value
|
|
239
|
-
}));
|
|
240
|
-
const config = await stack.getAllConfig();
|
|
241
|
-
Object.assign(config, componentSecrets);
|
|
242
|
-
await stack.setAllConfig(config);
|
|
243
|
-
}
|
|
244
|
-
);
|
|
245
|
-
}
|
|
246
|
-
static async create(config, pulumiProjectHost) {
|
|
247
|
-
const [projectPath, projectName] = await resolveMainLocalProject(
|
|
248
|
-
config.HIGHSTATE_BACKEND_SECRET_PROJECT_PATH,
|
|
249
|
-
config.HIGHSTATE_BACKEND_SECRET_PROJECT_NAME
|
|
250
|
-
);
|
|
251
|
-
return new LocalSecretBackend(projectPath, projectName, pulumiProjectHost);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
const secretBackendConfig = z.object({
|
|
256
|
-
HIGHSTATE_BACKEND_SECRET_TYPE: z.enum(["local"]).default("local"),
|
|
257
|
-
...localSecretBackendConfig.shape
|
|
258
|
-
});
|
|
259
|
-
function createSecretBackend(config, pulumiProjectHost) {
|
|
260
|
-
return LocalSecretBackend.create(config, pulumiProjectHost);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
const basicReporter = {
|
|
264
|
-
log(logObj) {
|
|
265
|
-
(console[logObj.type] || console.log)(...logObj.args);
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
function createConsola(options = {}) {
|
|
269
|
-
return createConsola$1({
|
|
270
|
-
reporters: [basicReporter],
|
|
271
|
-
...options
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
const consola = createConsola();
|
|
275
|
-
consola.consola = consola;
|
|
276
|
-
|
|
277
|
-
var __defProp$3 = Object.defineProperty;
|
|
278
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
279
|
-
var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
280
|
-
const localLibraryBackendConfig = z.object({
|
|
281
|
-
HIGHSTATE_BACKEND_LIBRARY_LOCAL_MODULES: stringArrayType.default("@highstate/library")
|
|
282
|
-
});
|
|
283
|
-
class LocalLibraryBackend {
|
|
284
|
-
constructor(modulePaths) {
|
|
285
|
-
this.modulePaths = modulePaths;
|
|
286
|
-
__publicField$3(this, "watcher");
|
|
287
|
-
__publicField$3(this, "lock", new BetterLock());
|
|
288
|
-
__publicField$3(this, "eventEmitter", new EventEmitter());
|
|
289
|
-
__publicField$3(this, "library", null);
|
|
290
|
-
this.watcher = new Watcher(modulePaths, { recursive: true, ignoreInitial: true });
|
|
291
|
-
this.watcher.on("all", (event, path) => {
|
|
292
|
-
const prefixPath = modulePaths.find((modulePath) => path.startsWith(modulePath));
|
|
293
|
-
consola.info("Library event:", event, relative(prefixPath, path));
|
|
294
|
-
void this.updateLibrary();
|
|
295
|
-
});
|
|
296
|
-
consola.info("Library watchers set to:", modulePaths);
|
|
297
|
-
}
|
|
298
|
-
async loadLibrary() {
|
|
299
|
-
if (this.library) {
|
|
300
|
-
return this.library;
|
|
301
|
-
}
|
|
302
|
-
return await this.updateLibrary();
|
|
303
|
-
}
|
|
304
|
-
async *watchLibrary(signal) {
|
|
305
|
-
for await (const [library] of on(this.eventEmitter, "library", { signal })) {
|
|
306
|
-
yield library;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
async evaluateInstances(instances, instanceIds) {
|
|
310
|
-
const worker = this.createWorker("library-evaluator", {
|
|
311
|
-
modulePaths: this.modulePaths,
|
|
312
|
-
instances,
|
|
313
|
-
instanceIds
|
|
314
|
-
});
|
|
315
|
-
for await (const [registrations] of on(worker, "message")) {
|
|
316
|
-
return registrations;
|
|
317
|
-
}
|
|
318
|
-
throw new Error("Worker ended without sending registrations.");
|
|
319
|
-
}
|
|
320
|
-
async updateLibrary() {
|
|
321
|
-
return await this.lock.acquire(async () => {
|
|
322
|
-
const worker = this.createWorker("library-loader", { modulePaths: this.modulePaths });
|
|
323
|
-
for await (const [library] of on(worker, "message")) {
|
|
324
|
-
this.eventEmitter.emit("library", library);
|
|
325
|
-
this.library = library;
|
|
326
|
-
consola.success("Library reloaded");
|
|
327
|
-
return this.library;
|
|
328
|
-
}
|
|
329
|
-
throw new Error("Worker ended without sending library model.");
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
createWorker(module, workerData) {
|
|
333
|
-
const workerPathUrl = resolve(`@highstate/backend/${module}`, globalThis._importMeta_.url);
|
|
334
|
-
const workerPath = fileURLToPath(workerPathUrl);
|
|
335
|
-
return new Worker(workerPath, { workerData });
|
|
336
|
-
}
|
|
337
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
338
|
-
static async create(config) {
|
|
339
|
-
const modulePaths = [];
|
|
340
|
-
for (const module of config.HIGHSTATE_BACKEND_LIBRARY_LOCAL_MODULES) {
|
|
341
|
-
const url = resolve(module, globalThis._importMeta_.url);
|
|
342
|
-
let path = fileURLToPath(url);
|
|
343
|
-
if (basename(path).includes(".")) {
|
|
344
|
-
path = dirname(path);
|
|
345
|
-
}
|
|
346
|
-
modulePaths.push(path);
|
|
347
|
-
}
|
|
348
|
-
return new LocalLibraryBackend(modulePaths);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
const libraryBackendConfig = z.object({
|
|
353
|
-
HIGHSTATE_BACKEND_LIBRARY_TYPE: z.enum(["local"]).default("local"),
|
|
354
|
-
...localLibraryBackendConfig.shape
|
|
355
|
-
});
|
|
356
|
-
function createLibraryBackend(config) {
|
|
357
|
-
switch (config.HIGHSTATE_BACKEND_LIBRARY_TYPE) {
|
|
358
|
-
case "local": {
|
|
359
|
-
return LocalLibraryBackend.create(config);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const localProjectBackendConfig = z.object({
|
|
365
|
-
HIGHSTATE_BACKEND_PROJECT_BLUEPRINTS_DIR: z.string().default("blueprints")
|
|
366
|
-
});
|
|
367
|
-
const blueprintModelSchema = z.object({
|
|
368
|
-
instances: z.record(instanceModelSchema)
|
|
369
|
-
});
|
|
370
|
-
class LocalProjectBackend {
|
|
371
|
-
constructor(blueprintsDir) {
|
|
372
|
-
this.blueprintsDir = blueprintsDir;
|
|
373
|
-
}
|
|
374
|
-
async getInstances(projectId) {
|
|
375
|
-
try {
|
|
376
|
-
const blueprint = await this.loadBlueprint(projectId);
|
|
377
|
-
return blueprint.instances;
|
|
378
|
-
} catch (error) {
|
|
379
|
-
console.error("Failed to read blueprint", error);
|
|
380
|
-
return {};
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
async updateInstance(projectId, instance) {
|
|
384
|
-
try {
|
|
385
|
-
const blueprint = await this.loadBlueprint(projectId);
|
|
386
|
-
blueprint.instances[instance.id] = instance;
|
|
387
|
-
await this.writeBlueprint(projectId, blueprint);
|
|
388
|
-
} catch (error) {
|
|
389
|
-
console.error("Failed to update blueprint instance", error);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
async deleteInstance(projectId, instanceId) {
|
|
393
|
-
try {
|
|
394
|
-
const blueprint = await this.loadBlueprint(projectId);
|
|
395
|
-
delete blueprint.instances[instanceId];
|
|
396
|
-
await this.writeBlueprint(projectId, blueprint);
|
|
397
|
-
} catch (error) {
|
|
398
|
-
console.error("Failed to delete blueprint instance", error);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
getBlueprintPath(projectId) {
|
|
402
|
-
return `${this.blueprintsDir}/${projectId}.json`;
|
|
403
|
-
}
|
|
404
|
-
async loadBlueprint(projectId) {
|
|
405
|
-
const blueprintPath = this.getBlueprintPath(projectId);
|
|
406
|
-
try {
|
|
407
|
-
const content = await readFile(blueprintPath, "utf-8");
|
|
408
|
-
return blueprintModelSchema.parse(JSON.parse(content));
|
|
409
|
-
} catch (error) {
|
|
410
|
-
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
|
|
411
|
-
return { instances: {} };
|
|
412
|
-
}
|
|
413
|
-
throw error;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
async writeBlueprint(projectId, blueprint) {
|
|
417
|
-
const blueprintPath = this.getBlueprintPath(projectId);
|
|
418
|
-
const content = JSON.stringify(blueprint, void 0, 2);
|
|
419
|
-
await writeFile(blueprintPath, content);
|
|
420
|
-
}
|
|
421
|
-
static async create(config) {
|
|
422
|
-
await mkdir(config.HIGHSTATE_BACKEND_PROJECT_BLUEPRINTS_DIR, { recursive: true });
|
|
423
|
-
return new LocalProjectBackend(config.HIGHSTATE_BACKEND_PROJECT_BLUEPRINTS_DIR);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
const projectBackendConfig = z.object({
|
|
428
|
-
HIGHSTATE_BACKEND_PROJECT_TYPE: z.enum(["local"]).default("local"),
|
|
429
|
-
...localProjectBackendConfig.shape
|
|
430
|
-
});
|
|
431
|
-
function createProjectBackend(config) {
|
|
432
|
-
return LocalProjectBackend.create(config);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
const localStateBackendConfig = z.object({
|
|
436
|
-
HIGHSTATE_BACKEND_STATE_PROJECT_PATH: z.string().optional(),
|
|
437
|
-
HIGHSTATE_BACKEND_STATE_PROJECT_NAME: z.string().optional()
|
|
438
|
-
});
|
|
439
|
-
class LocalStateBackend {
|
|
440
|
-
constructor(projectName, pulumiProjectHost) {
|
|
441
|
-
this.projectName = projectName;
|
|
442
|
-
this.pulumiProjectHost = pulumiProjectHost;
|
|
443
|
-
}
|
|
444
|
-
get(projectId) {
|
|
445
|
-
return this.pulumiProjectHost.runInline(
|
|
446
|
-
this.projectName,
|
|
447
|
-
projectId,
|
|
448
|
-
() => Promise.resolve(),
|
|
449
|
-
(stack) => this.getAllState(stack)
|
|
450
|
-
);
|
|
451
|
-
}
|
|
452
|
-
set(projectId, state) {
|
|
453
|
-
return this.pulumiProjectHost.runInline(
|
|
454
|
-
this.projectName,
|
|
455
|
-
projectId,
|
|
456
|
-
() => Promise.resolve(),
|
|
457
|
-
async (stack) => {
|
|
458
|
-
await stack.setConfig("state", { value: JSON.stringify(state) });
|
|
459
|
-
await stack.up();
|
|
460
|
-
}
|
|
461
|
-
);
|
|
462
|
-
}
|
|
463
|
-
async getAllState(stack) {
|
|
464
|
-
const history = await stack.history(1);
|
|
465
|
-
if (!history.length) {
|
|
466
|
-
return { instances: {} };
|
|
467
|
-
}
|
|
468
|
-
if (!history[0].config["state"]) {
|
|
469
|
-
return { instances: {} };
|
|
470
|
-
}
|
|
471
|
-
const jsonValue = JSON.parse(history[0].config["state"].value);
|
|
472
|
-
return projectStateSchema.parse(jsonValue);
|
|
473
|
-
}
|
|
474
|
-
static async create(config, pulumiProjectHost) {
|
|
475
|
-
const [, projectName] = await resolveMainLocalProject(
|
|
476
|
-
config.HIGHSTATE_BACKEND_STATE_PROJECT_PATH,
|
|
477
|
-
config.HIGHSTATE_BACKEND_STATE_PROJECT_NAME
|
|
478
|
-
);
|
|
479
|
-
return new LocalStateBackend(projectName, pulumiProjectHost);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
const stateBackendConfig = z.object({
|
|
484
|
-
HIGHSTATE_BACKEND_STATE_TYPE: z.enum(["local"]).default("local"),
|
|
485
|
-
...localStateBackendConfig.shape
|
|
486
|
-
});
|
|
487
|
-
function createStateBackend(config, pulumiProjectHost) {
|
|
488
|
-
return LocalStateBackend.create(config, pulumiProjectHost);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
const configSchema = z.object({
|
|
492
|
-
...libraryBackendConfig.shape,
|
|
493
|
-
...projectBackendConfig.shape,
|
|
494
|
-
...secretBackendConfig.shape,
|
|
495
|
-
...stateBackendConfig.shape
|
|
496
|
-
});
|
|
497
|
-
async function loadConfig(env = process.env, useDotenv = true) {
|
|
498
|
-
if (useDotenv) {
|
|
499
|
-
await import('dotenv/config');
|
|
500
|
-
}
|
|
501
|
-
return configSchema.parse(env);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
function isUnitModel(model) {
|
|
505
|
-
return "source" in model;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
var __defProp$2 = Object.defineProperty;
|
|
509
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
510
|
-
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
511
|
-
class ProjectOperator {
|
|
512
|
-
constructor(projectId, state, runnerBackend, stateBackend, libraryBackend, projectBackend, secretBackend) {
|
|
513
|
-
this.projectId = projectId;
|
|
514
|
-
this.state = state;
|
|
515
|
-
this.runnerBackend = runnerBackend;
|
|
516
|
-
this.stateBackend = stateBackend;
|
|
517
|
-
this.libraryBackend = libraryBackend;
|
|
518
|
-
this.projectBackend = projectBackend;
|
|
519
|
-
this.secretBackend = secretBackend;
|
|
520
|
-
__publicField$2(this, "unitPromises", /* @__PURE__ */ new Map());
|
|
521
|
-
__publicField$2(this, "eventEmitter", new EventEmitter());
|
|
522
|
-
__publicField$2(this, "debouncedUpdateState", debounce(() => this.stateBackend.set(this.projectId, this.state), {
|
|
523
|
-
waitMs: 1e3,
|
|
524
|
-
maxWaitMs: 1e4
|
|
525
|
-
}));
|
|
526
|
-
__publicField$2(this, "abortController", new AbortController());
|
|
527
|
-
}
|
|
528
|
-
async *watchInstanceStates(signal) {
|
|
529
|
-
for await (const [state] of on(this.eventEmitter, "state", { signal })) {
|
|
530
|
-
yield state;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
async *watchCurrentOperation(signal) {
|
|
534
|
-
for await (const [operation] of on(this.eventEmitter, "operation", { signal })) {
|
|
535
|
-
yield operation;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Launches the project operation.
|
|
540
|
-
* Throws an error if the operation is already running.
|
|
541
|
-
*
|
|
542
|
-
* @param operation The operation to launch.
|
|
543
|
-
*/
|
|
544
|
-
launch(operation) {
|
|
545
|
-
if (this.state.currentOperation) {
|
|
546
|
-
throw new Error("An operation is already running.");
|
|
547
|
-
}
|
|
548
|
-
this.abortController = new AbortController();
|
|
549
|
-
this.updateCurrentOperation(operation);
|
|
550
|
-
void this.operate().finally(() => {
|
|
551
|
-
this.updateCurrentOperation(void 0);
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* Cancels the current operation.
|
|
556
|
-
* Does nothing if no operation is running.
|
|
557
|
-
*/
|
|
558
|
-
cancel() {
|
|
559
|
-
if (!this.state.currentOperation) {
|
|
560
|
-
return;
|
|
561
|
-
}
|
|
562
|
-
this.abortController.abort();
|
|
563
|
-
}
|
|
564
|
-
async operate() {
|
|
565
|
-
await this.debouncedUpdateState.flush();
|
|
566
|
-
const operation = this.state.currentOperation;
|
|
567
|
-
const instances = await this.projectBackend.getInstances(this.projectId);
|
|
568
|
-
const library = await this.libraryBackend.loadLibrary();
|
|
569
|
-
const registrations = await this.libraryBackend.evaluateInstances(
|
|
570
|
-
instances,
|
|
571
|
-
operation.instanceIds
|
|
572
|
-
);
|
|
573
|
-
const promises = [];
|
|
574
|
-
for (const registration of Object.values(registrations)) {
|
|
575
|
-
const promise = this.upUnit(library, registrations, registration);
|
|
576
|
-
promises.push(promise);
|
|
577
|
-
}
|
|
578
|
-
await Promise.all(promises);
|
|
579
|
-
}
|
|
580
|
-
async upUnit(library, registrations, registration) {
|
|
581
|
-
const model = library.components[registration.type];
|
|
582
|
-
if (!isUnitModel(model)) {
|
|
583
|
-
throw new Error(`The component "${registration.type}" is not a unit.`);
|
|
584
|
-
}
|
|
585
|
-
const key = `${registration.type}.${registration.name}`;
|
|
586
|
-
const dependencyPromises = [];
|
|
587
|
-
for (const dependency of registration.dependencies) {
|
|
588
|
-
const state = this.state.instances[dependency];
|
|
589
|
-
if ((state == null ? void 0 : state.status) === "created") {
|
|
590
|
-
continue;
|
|
591
|
-
}
|
|
592
|
-
const dependencyPromise = this.getOrCreateUnitPromise(
|
|
593
|
-
key,
|
|
594
|
-
() => this.upUnit(library, registrations, registrations[dependency])
|
|
595
|
-
);
|
|
596
|
-
dependencyPromises.push(dependencyPromise);
|
|
597
|
-
}
|
|
598
|
-
await Promise.all(dependencyPromises);
|
|
599
|
-
await this.runnerBackend.update({
|
|
600
|
-
projectName: registration.type,
|
|
601
|
-
stackName: registration.name,
|
|
602
|
-
config: await this.getUnitConfig(model, key, registration),
|
|
603
|
-
source: model.source
|
|
604
|
-
});
|
|
605
|
-
const stream = this.runnerBackend.watch({
|
|
606
|
-
projectName: registration.type,
|
|
607
|
-
stackName: registration.name,
|
|
608
|
-
finalStatuses: ["created", "error"]
|
|
609
|
-
});
|
|
610
|
-
await this.watchStateStream(stream);
|
|
611
|
-
}
|
|
612
|
-
async getUnitConfig(model, key, registration) {
|
|
613
|
-
const secrets = await this.secretBackend.get(this.projectId, `${model.type}.${key}`);
|
|
614
|
-
return {
|
|
615
|
-
...registration.config,
|
|
616
|
-
...secrets
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
async watchStateStream(stream) {
|
|
620
|
-
let state;
|
|
621
|
-
for await (state of stream) {
|
|
622
|
-
this.updateInstanceState(state);
|
|
623
|
-
}
|
|
624
|
-
if (!state) {
|
|
625
|
-
throw new Error("The stream ended without emitting any state.");
|
|
626
|
-
}
|
|
627
|
-
if (state.status === "error") {
|
|
628
|
-
throw new Error(`The operation on unit "${state.key}" failed.`);
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
updateCurrentOperation(operation) {
|
|
632
|
-
this.state.currentOperation = operation;
|
|
633
|
-
this.eventEmitter.emit("operation", operation);
|
|
634
|
-
void this.debouncedUpdateState.call();
|
|
635
|
-
}
|
|
636
|
-
updateInstanceState(state) {
|
|
637
|
-
this.state.instances[state.key] = state;
|
|
638
|
-
this.eventEmitter.emit("state", state);
|
|
639
|
-
void this.debouncedUpdateState.call();
|
|
640
|
-
}
|
|
641
|
-
getOrCreateUnitPromise(unitKey, fn) {
|
|
642
|
-
let promise = this.unitPromises.get(unitKey);
|
|
643
|
-
if (!promise) {
|
|
644
|
-
promise = fn().then(() => {
|
|
645
|
-
this.unitPromises.delete(unitKey);
|
|
646
|
-
});
|
|
647
|
-
this.unitPromises.set(unitKey, promise);
|
|
648
|
-
}
|
|
649
|
-
return promise;
|
|
650
|
-
}
|
|
651
|
-
static async create(projectId, runnerBackend, stateBackend, libraryBackend, projectBackend, secretBackend) {
|
|
652
|
-
const state = await stateBackend.get(projectId);
|
|
653
|
-
return new ProjectOperator(
|
|
654
|
-
projectId,
|
|
655
|
-
state,
|
|
656
|
-
runnerBackend,
|
|
657
|
-
stateBackend,
|
|
658
|
-
libraryBackend,
|
|
659
|
-
projectBackend,
|
|
660
|
-
secretBackend
|
|
661
|
-
);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
var __defProp$1 = Object.defineProperty;
|
|
666
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
667
|
-
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
668
|
-
class OperatorManager {
|
|
669
|
-
constructor(runnerBackend, stateBackend, libraryBackend, projectBackend, secretBackend) {
|
|
670
|
-
this.runnerBackend = runnerBackend;
|
|
671
|
-
this.stateBackend = stateBackend;
|
|
672
|
-
this.libraryBackend = libraryBackend;
|
|
673
|
-
this.projectBackend = projectBackend;
|
|
674
|
-
this.secretBackend = secretBackend;
|
|
675
|
-
__publicField$1(this, "operators", /* @__PURE__ */ new Map());
|
|
676
|
-
__publicField$1(this, "lock", new BetterLock());
|
|
677
|
-
}
|
|
678
|
-
async get(projectId) {
|
|
679
|
-
return await this.lock.acquire(projectId, async () => {
|
|
680
|
-
let orchestrator = this.operators.get(projectId);
|
|
681
|
-
if (!orchestrator) {
|
|
682
|
-
orchestrator = await ProjectOperator.create(
|
|
683
|
-
projectId,
|
|
684
|
-
this.runnerBackend,
|
|
685
|
-
this.stateBackend,
|
|
686
|
-
this.libraryBackend,
|
|
687
|
-
this.projectBackend,
|
|
688
|
-
this.secretBackend
|
|
689
|
-
);
|
|
690
|
-
this.operators.set(projectId, orchestrator);
|
|
691
|
-
}
|
|
692
|
-
return orchestrator;
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
class InvalidInstanceStatusError extends Error {
|
|
698
|
-
constructor(currentStatus, expectedStatuses) {
|
|
699
|
-
const expectedString = expectedStatuses.join(", ");
|
|
700
|
-
super(`The current state is "${currentStatus}", but it should be one of "${expectedString}".`);
|
|
701
|
-
this.currentStatus = currentStatus;
|
|
702
|
-
this.expectedStatuses = expectedStatuses;
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
var __defProp = Object.defineProperty;
|
|
707
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
708
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
709
|
-
class LocalRunnerBackend {
|
|
710
|
-
constructor() {
|
|
711
|
-
__publicField(this, "host", new LocalPulumiProjectHost());
|
|
712
|
-
__publicField(this, "events", new EventEmitter());
|
|
713
|
-
__publicField(this, "states", /* @__PURE__ */ new Map());
|
|
714
|
-
}
|
|
715
|
-
async *watch(options) {
|
|
716
|
-
const stream = on(
|
|
717
|
-
//
|
|
718
|
-
this.events,
|
|
719
|
-
`state:${LocalRunnerBackend.getInstanceKey(options)}`,
|
|
720
|
-
{ signal: options.signal }
|
|
721
|
-
);
|
|
722
|
-
for await (const [state] of stream) {
|
|
723
|
-
yield state;
|
|
724
|
-
if (options.finalStatuses.includes(state.status)) {
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
730
|
-
async update(options) {
|
|
731
|
-
const currentStatus = this.validateStatus(options, [
|
|
732
|
-
"not_created",
|
|
733
|
-
"updating",
|
|
734
|
-
"created",
|
|
735
|
-
"error"
|
|
736
|
-
]);
|
|
737
|
-
if (currentStatus === "updating") {
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
void this.host.runLocal(
|
|
741
|
-
options.projectName,
|
|
742
|
-
options.stackName,
|
|
743
|
-
() => LocalRunnerBackend.resolveProjectPath(options.source),
|
|
744
|
-
async (stack) => {
|
|
745
|
-
const configMap = mapValues(options.config, (value) => ({ value }));
|
|
746
|
-
await stack.setAllConfig(configMap);
|
|
747
|
-
const state = {
|
|
748
|
-
key: LocalRunnerBackend.getInstanceKey(options),
|
|
749
|
-
status: "updating",
|
|
750
|
-
resources: 0,
|
|
751
|
-
totalResources: 0
|
|
752
|
-
};
|
|
753
|
-
this.updateState(state);
|
|
754
|
-
try {
|
|
755
|
-
await stack.up({
|
|
756
|
-
onEvent: (event) => {
|
|
757
|
-
if (event.resourcePreEvent) {
|
|
758
|
-
state.totalResources++;
|
|
759
|
-
this.updateState(state);
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
|
-
if (event.resOutputsEvent) {
|
|
763
|
-
state.resources++;
|
|
764
|
-
this.updateState(state);
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
onOutput: (message) => {
|
|
769
|
-
state.message = message;
|
|
770
|
-
this.updateState(state);
|
|
771
|
-
},
|
|
772
|
-
signal: options.signal
|
|
773
|
-
});
|
|
774
|
-
state.status = "created";
|
|
775
|
-
this.updateState(state);
|
|
776
|
-
} catch (e) {
|
|
777
|
-
state.status = "error";
|
|
778
|
-
state.error = e instanceof Error ? e.message : String(e);
|
|
779
|
-
this.updateState(state);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
);
|
|
783
|
-
}
|
|
784
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
785
|
-
async destroy(options) {
|
|
786
|
-
const currentStatus = this.validateStatus(options, [
|
|
787
|
-
"not_created",
|
|
788
|
-
"destroying",
|
|
789
|
-
"created",
|
|
790
|
-
"error"
|
|
791
|
-
]);
|
|
792
|
-
if (currentStatus === "destroying" || currentStatus === "not_created") {
|
|
793
|
-
return;
|
|
794
|
-
}
|
|
795
|
-
void this.host.runLocal(
|
|
796
|
-
options.projectName,
|
|
797
|
-
options.stackName,
|
|
798
|
-
() => LocalRunnerBackend.resolveProjectPath(options.source),
|
|
799
|
-
async (stack) => {
|
|
800
|
-
var _a;
|
|
801
|
-
const stackSumary = await stack.workspace.stack();
|
|
802
|
-
const resources = (_a = stackSumary == null ? void 0 : stackSumary.resourceCount) != null ? _a : 0;
|
|
803
|
-
const state = {
|
|
804
|
-
key: LocalRunnerBackend.getInstanceKey(options),
|
|
805
|
-
status: "destroying",
|
|
806
|
-
resources,
|
|
807
|
-
totalResources: resources
|
|
808
|
-
};
|
|
809
|
-
this.updateState(state);
|
|
810
|
-
try {
|
|
811
|
-
await stack.destroy({
|
|
812
|
-
onEvent: (event) => {
|
|
813
|
-
if (event.resOutputsEvent) {
|
|
814
|
-
state.resources--;
|
|
815
|
-
this.updateState(state);
|
|
816
|
-
return;
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
signal: options.signal
|
|
820
|
-
});
|
|
821
|
-
state.status = "not_created";
|
|
822
|
-
this.updateState(state);
|
|
823
|
-
} catch (e) {
|
|
824
|
-
state.status = "error";
|
|
825
|
-
state.error = e instanceof Error ? e.message : String(e);
|
|
826
|
-
this.updateState(state);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
);
|
|
830
|
-
}
|
|
831
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
832
|
-
async refresh(options) {
|
|
833
|
-
const currentStatus = this.validateStatus(options, [
|
|
834
|
-
"not_created",
|
|
835
|
-
"created",
|
|
836
|
-
"refreshing",
|
|
837
|
-
"error"
|
|
838
|
-
]);
|
|
839
|
-
if (currentStatus === "refreshing") {
|
|
840
|
-
return;
|
|
841
|
-
}
|
|
842
|
-
void this.host.runLocal(
|
|
843
|
-
options.projectName,
|
|
844
|
-
options.stackName,
|
|
845
|
-
() => LocalRunnerBackend.resolveProjectPath(options.source),
|
|
846
|
-
async (stack) => {
|
|
847
|
-
var _a;
|
|
848
|
-
const stackSumary = await stack.workspace.stack();
|
|
849
|
-
const resources = (_a = stackSumary == null ? void 0 : stackSumary.resourceCount) != null ? _a : 0;
|
|
850
|
-
const state = {
|
|
851
|
-
key: LocalRunnerBackend.getInstanceKey(options),
|
|
852
|
-
status: "refreshing",
|
|
853
|
-
resources,
|
|
854
|
-
totalResources: resources
|
|
855
|
-
};
|
|
856
|
-
this.updateState(state);
|
|
857
|
-
try {
|
|
858
|
-
await stack.refresh({
|
|
859
|
-
onEvent: (event) => {
|
|
860
|
-
if (event.resOutputsEvent) {
|
|
861
|
-
if (event.resOutputsEvent.metadata.op === "create") {
|
|
862
|
-
state.resources++;
|
|
863
|
-
this.updateState(state);
|
|
864
|
-
return;
|
|
865
|
-
}
|
|
866
|
-
if (event.resOutputsEvent.metadata.op === "delete") {
|
|
867
|
-
state.totalResources--;
|
|
868
|
-
this.updateState(state);
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
},
|
|
874
|
-
signal: options.signal
|
|
875
|
-
});
|
|
876
|
-
state.status = "created";
|
|
877
|
-
this.updateState(state);
|
|
878
|
-
} catch (e) {
|
|
879
|
-
state.status = "error";
|
|
880
|
-
state.error = e instanceof Error ? e.message : String(e);
|
|
881
|
-
this.updateState(state);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
);
|
|
885
|
-
}
|
|
886
|
-
updateState(state) {
|
|
887
|
-
this.states.set(state.key, state);
|
|
888
|
-
this.events.emit(`state:${state.key}`, state);
|
|
889
|
-
}
|
|
890
|
-
validateStatus(options, expectedStatuses) {
|
|
891
|
-
const key = LocalRunnerBackend.getInstanceKey(options);
|
|
892
|
-
const existingState = this.states.get(key);
|
|
893
|
-
if (!existingState) {
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
if (!expectedStatuses.includes(existingState.status)) {
|
|
897
|
-
throw new InvalidInstanceStatusError(existingState.status, expectedStatuses);
|
|
898
|
-
}
|
|
899
|
-
return existingState.status;
|
|
900
|
-
}
|
|
901
|
-
static getInstanceKey(options) {
|
|
902
|
-
return `${options.projectName}.${options.stackName}`;
|
|
903
|
-
}
|
|
904
|
-
static async resolveProjectPath(source) {
|
|
905
|
-
await addDependency(source.package);
|
|
906
|
-
const url = resolve(source.package, globalThis._importMeta_.url);
|
|
907
|
-
const path = fileURLToPath(url);
|
|
908
|
-
const projectPath = dirname(path);
|
|
909
|
-
return projectPath;
|
|
910
|
-
}
|
|
911
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
912
|
-
static async create() {
|
|
913
|
-
return new LocalRunnerBackend();
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
function createRunnerBackend() {
|
|
918
|
-
return LocalRunnerBackend.create();
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
async function createServices(config) {
|
|
922
|
-
config != null ? config : config = await loadConfig();
|
|
923
|
-
const pulumiProjectHost = new LocalPulumiProjectHost();
|
|
924
|
-
const libraryBackend = await createLibraryBackend(config);
|
|
925
|
-
const secretBackend = await createSecretBackend(config, pulumiProjectHost);
|
|
926
|
-
const runnerBackend = await createRunnerBackend();
|
|
927
|
-
const projectBackend = await createProjectBackend(config);
|
|
928
|
-
const stateBackend = await createStateBackend(config, pulumiProjectHost);
|
|
929
|
-
const operatorManager = new OperatorManager(
|
|
930
|
-
runnerBackend,
|
|
931
|
-
stateBackend,
|
|
932
|
-
libraryBackend,
|
|
933
|
-
projectBackend,
|
|
934
|
-
secretBackend
|
|
935
|
-
);
|
|
936
|
-
consola.success("Backend services initialized");
|
|
937
|
-
return {
|
|
938
|
-
libraryBackend,
|
|
939
|
-
secretBackend,
|
|
940
|
-
runnerBackend,
|
|
941
|
-
projectBackend,
|
|
942
|
-
stateBackend,
|
|
943
|
-
operatorManager
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
const secretRouter = router({
|
|
948
|
-
get: publicProcedure.input(
|
|
949
|
-
z.object({
|
|
950
|
-
projectId: z.string(),
|
|
951
|
-
instanceKey: z.string()
|
|
952
|
-
})
|
|
953
|
-
).query(async ({ input, ctx }) => {
|
|
954
|
-
try {
|
|
955
|
-
return await ctx.secretBackend.get(input.projectId, input.instanceKey);
|
|
956
|
-
} catch (e) {
|
|
957
|
-
if (e instanceof SecretAccessDeniedError) {
|
|
958
|
-
throw new TRPCError({
|
|
959
|
-
code: "FORBIDDEN",
|
|
960
|
-
message: "Access to the secret is denied",
|
|
961
|
-
cause: e
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
throw e;
|
|
965
|
-
}
|
|
966
|
-
}),
|
|
967
|
-
set: publicProcedure.input(
|
|
968
|
-
z.object({
|
|
969
|
-
projectId: z.string(),
|
|
970
|
-
instanceKey: z.string(),
|
|
971
|
-
values: z.record(z.string())
|
|
972
|
-
})
|
|
973
|
-
).mutation(async ({ input, ctx }) => {
|
|
974
|
-
try {
|
|
975
|
-
await ctx.secretBackend.set(input.projectId, input.instanceKey, input.values);
|
|
976
|
-
} catch (e) {
|
|
977
|
-
if (e instanceof SecretAccessDeniedError) {
|
|
978
|
-
throw new TRPCError({
|
|
979
|
-
code: "FORBIDDEN",
|
|
980
|
-
message: "Access to the secret is denied",
|
|
981
|
-
cause: e
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
throw e;
|
|
985
|
-
}
|
|
986
|
-
})
|
|
987
|
-
});
|
|
988
|
-
|
|
989
|
-
const projectRouter = router({
|
|
990
|
-
getInstances: publicProcedure.input(
|
|
991
|
-
z.object({
|
|
992
|
-
projectId: z.string()
|
|
993
|
-
})
|
|
994
|
-
).query(async ({ input, ctx }) => {
|
|
995
|
-
return await ctx.projectBackend.getInstances(input.projectId);
|
|
996
|
-
}),
|
|
997
|
-
updateInstance: publicProcedure.input(
|
|
998
|
-
z.object({
|
|
999
|
-
projectId: z.string(),
|
|
1000
|
-
instance: instanceModelSchema
|
|
1001
|
-
})
|
|
1002
|
-
).mutation(async ({ input, ctx }) => {
|
|
1003
|
-
await ctx.projectBackend.updateInstance(input.projectId, input.instance);
|
|
1004
|
-
}),
|
|
1005
|
-
deleteInstance: publicProcedure.input(
|
|
1006
|
-
z.object({
|
|
1007
|
-
projectId: z.string(),
|
|
1008
|
-
instanceKey: z.string()
|
|
1009
|
-
})
|
|
1010
|
-
).mutation(async ({ input, ctx }) => {
|
|
1011
|
-
await ctx.projectBackend.deleteInstance(input.projectId, input.instanceKey);
|
|
1012
|
-
})
|
|
1013
|
-
});
|
|
1014
|
-
|
|
1015
|
-
const libraryRouter = router({
|
|
1016
|
-
get: publicProcedure.query(async ({ ctx }) => {
|
|
1017
|
-
return await ctx.libraryBackend.loadLibrary();
|
|
1018
|
-
}),
|
|
1019
|
-
canWatch: publicProcedure.query(async ({ ctx }) => {
|
|
1020
|
-
return !!ctx.libraryBackend.watchLibrary;
|
|
1021
|
-
}),
|
|
1022
|
-
watch: publicProcedure.subscription(async function* ({ ctx, signal }) {
|
|
1023
|
-
if (!ctx.libraryBackend.watchLibrary) {
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
|
-
yield* ctx.libraryBackend.watchLibrary(signal);
|
|
1027
|
-
})
|
|
1028
|
-
});
|
|
1029
|
-
|
|
1030
|
-
const viewportSchema = z.object({
|
|
1031
|
-
x: z.number(),
|
|
1032
|
-
y: z.number(),
|
|
1033
|
-
zoom: z.number()
|
|
1034
|
-
});
|
|
1035
|
-
let viewport = { x: 0, y: 0, zoom: 1 };
|
|
1036
|
-
const workspaceRouter = router({
|
|
1037
|
-
viewport: publicProcedure.query(() => {
|
|
1038
|
-
return viewport;
|
|
1039
|
-
}),
|
|
1040
|
-
setViewport: publicProcedure.input(viewportSchema).mutation(({ input }) => {
|
|
1041
|
-
viewport = input;
|
|
1042
|
-
})
|
|
1043
|
-
});
|
|
1044
|
-
|
|
1045
|
-
const appRouter = router({
|
|
1046
|
-
secret: secretRouter,
|
|
1047
|
-
state: stateRouter,
|
|
1048
|
-
project: projectRouter,
|
|
1049
|
-
library: libraryRouter,
|
|
1050
|
-
workspace: workspaceRouter
|
|
1051
|
-
});
|
|
1052
|
-
|
|
1053
|
-
const _trpc_ = defineLazyEventHandler(async () => {
|
|
1054
|
-
const services = await createServices();
|
|
1055
|
-
return createNuxtApiHandler({
|
|
1056
|
-
router: appRouter,
|
|
1057
|
-
createContext: () => ({
|
|
1058
|
-
...services
|
|
1059
|
-
}),
|
|
1060
|
-
onError: (error) => {
|
|
1061
|
-
console.error("Server Error", error);
|
|
1062
|
-
}
|
|
1063
|
-
});
|
|
1064
|
-
});
|
|
1065
|
-
|
|
1066
|
-
export { _trpc_ as default };
|
|
1067
|
-
//# sourceMappingURL=_trpc_.mjs.map
|