@highstate/designer 0.2.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/BiOpBOhF.js +69 -0
- package/.output/public/_nuxt/Cbvq2xei.js +1 -0
- package/.output/public/_nuxt/DVgDGs8k.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/4e80df08-b017-4dd3-92a5-670b9c4b88d5.json +1 -0
- package/.output/public/_nuxt/entry.D7UJUp71.css +5 -0
- package/.output/public/_nuxt/error-404.SWzu_puR.css +1 -0
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +1 -0
- package/.output/public/_nuxt/rjBY3mWU.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/chunks/_/error-500.mjs +8 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +85 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6161 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs +1067 -0
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +341 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +7 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +60 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +50 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +61 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +47 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +32 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +37 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +77 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +42 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14027 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +31 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +174 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +84 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +25 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +136 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +134 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +272 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +71 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +584 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +428 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +433 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +26 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +295 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +28 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +64 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +43 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +109 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +47 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +22 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +41 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +52 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +82 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +38 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +266 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +572 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +567 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +482 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +182 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +117 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +294 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +122 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +249 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +86 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +349 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +105 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +51 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +88 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +309 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +665 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +770 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +1569 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +431 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +100 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +526 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +92 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +137 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +371 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +34 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +662 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +126 -0
- package/.output/server/node_modules/@grpc/grpc-js/package.json +87 -0
- package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +564 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +244 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +89 -0
- package/.output/server/node_modules/@grpc/proto-loader/package.json +69 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +795 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +138 -0
- package/.output/server/node_modules/@logdna/tail-file/index.js +3 -0
- package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +326 -0
- package/.output/server/node_modules/@logdna/tail-file/package.json +162 -0
- package/.output/server/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/.output/server/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/base64/index.js +139 -0
- package/.output/server/node_modules/@protobufjs/base64/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/codegen/index.js +99 -0
- package/.output/server/node_modules/@protobufjs/codegen/package.json +13 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/index.js +76 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/fetch/index.js +115 -0
- package/.output/server/node_modules/@protobufjs/fetch/package.json +25 -0
- package/.output/server/node_modules/@protobufjs/float/index.js +335 -0
- package/.output/server/node_modules/@protobufjs/float/package.json +26 -0
- package/.output/server/node_modules/@protobufjs/inquire/index.js +17 -0
- package/.output/server/node_modules/@protobufjs/inquire/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/path/index.js +65 -0
- package/.output/server/node_modules/@protobufjs/path/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/pool/index.js +48 -0
- package/.output/server/node_modules/@protobufjs/pool/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/utf8/index.js +105 -0
- package/.output/server/node_modules/@protobufjs/utf8/package.json +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +270 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +47 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +27 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +1049 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +28 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +130 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +131 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +170 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +991 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +24 -0
- package/.output/server/node_modules/@pulumi/pulumi/errors.js +126 -0
- package/.output/server/node_modules/@pulumi/pulumi/log/index.js +132 -0
- package/.output/server/node_modules/@pulumi/pulumi/metadata.js +46 -0
- package/.output/server/node_modules/@pulumi/pulumi/output.js +677 -0
- package/.output/server/node_modules/@pulumi/pulumi/package.json +93 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +631 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +61 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +582 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +808 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +158 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +1058 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +510 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +7222 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +1159 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +11300 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +310 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +7447 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +230 -0
- package/.output/server/node_modules/@pulumi/pulumi/resource.js +774 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +103 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +456 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +129 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +137 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +64 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +498 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +928 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +844 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +551 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +276 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +187 -0
- package/.output/server/node_modules/@pulumi/pulumi/utils.js +89 -0
- package/.output/server/node_modules/@pulumi/pulumi/version.js +17 -0
- package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +279 -0
- package/.output/server/node_modules/@pulumi/query/base.js +34 -0
- package/.output/server/node_modules/@pulumi/query/index.js +87 -0
- package/.output/server/node_modules/@pulumi/query/interfaces.js +24 -0
- package/.output/server/node_modules/@pulumi/query/operators.js +1269 -0
- package/.output/server/node_modules/@pulumi/query/package.json +22 -0
- package/.output/server/node_modules/@pulumi/query/sources.js +81 -0
- package/.output/server/node_modules/@pulumi/query/util.js +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +78 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +230 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +501 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +151 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +61 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +94 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +89 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/package.json +106 -0
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
- package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
- package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
- package/.output/server/node_modules/@szmarczak/http-timer/package.json +72 -0
- package/.output/server/node_modules/@trpc/server/dist/http.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +11 -0
- package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +175 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +73 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +78 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +5 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +224 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +12 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +76 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/isAbortError.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +39 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +569 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +80 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +90 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +40 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +194 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +176 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +54 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +631 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +355 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +25 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +167 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +41 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +127 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +101 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +83 -0
- package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +289 -0
- package/.output/server/node_modules/@trpc/server/package.json +156 -0
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +197 -0
- package/.output/server/node_modules/@unhead/dom/package.json +40 -0
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +731 -0
- package/.output/server/node_modules/@unhead/shared/package.json +47 -0
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +95 -0
- package/.output/server/node_modules/@unhead/ssr/package.json +40 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1404 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/acorn/dist/acorn.mjs +6145 -0
- package/.output/server/node_modules/acorn/package.json +50 -0
- package/.output/server/node_modules/better-lock/dist/better_lock.js +377 -0
- package/.output/server/node_modules/better-lock/dist/errors.js +136 -0
- package/.output/server/node_modules/better-lock/dist/index.js +28 -0
- package/.output/server/node_modules/better-lock/dist/internals.js +75 -0
- package/.output/server/node_modules/better-lock/dist/tools.js +109 -0
- package/.output/server/node_modules/better-lock/package.json +60 -0
- package/.output/server/node_modules/cacheable-lookup/package.json +45 -0
- package/.output/server/node_modules/cacheable-lookup/source/index.js +436 -0
- package/.output/server/node_modules/cacheable-request/package.json +56 -0
- package/.output/server/node_modules/cacheable-request/src/index.js +251 -0
- package/.output/server/node_modules/clone-response/package.json +41 -0
- package/.output/server/node_modules/clone-response/src/index.js +17 -0
- package/.output/server/node_modules/confbox/dist/index.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/json5.mjs +14 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +7 -0
- package/.output/server/node_modules/confbox/dist/toml.mjs +239 -0
- package/.output/server/node_modules/confbox/dist/yaml.mjs +32 -0
- package/.output/server/node_modules/confbox/package.json +86 -0
- package/.output/server/node_modules/consola/dist/core.mjs +410 -0
- package/.output/server/node_modules/consola/package.json +101 -0
- package/.output/server/node_modules/cross-spawn/index.js +39 -0
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/.output/server/node_modules/cross-spawn/lib/parse.js +91 -0
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/.output/server/node_modules/cross-spawn/package.json +73 -0
- package/.output/server/node_modules/decompress-response/index.js +58 -0
- package/.output/server/node_modules/decompress-response/package.json +56 -0
- package/.output/server/node_modules/defer-to-connect/dist/source/index.js +47 -0
- package/.output/server/node_modules/defer-to-connect/package.json +71 -0
- package/.output/server/node_modules/dettle/dist/debounce.js +91 -0
- package/.output/server/node_modules/dettle/dist/index.js +5 -0
- package/.output/server/node_modules/dettle/dist/throttle.js +12 -0
- package/.output/server/node_modules/dettle/package.json +28 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/dotenv/config.js +9 -0
- package/.output/server/node_modules/dotenv/lib/cli-options.js +11 -0
- package/.output/server/node_modules/dotenv/lib/env-options.js +24 -0
- package/.output/server/node_modules/dotenv/lib/main.js +361 -0
- package/.output/server/node_modules/dotenv/package.json +61 -0
- package/.output/server/node_modules/end-of-stream/index.js +94 -0
- package/.output/server/node_modules/end-of-stream/package.json +37 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/esprima/dist/esprima.js +6709 -0
- package/.output/server/node_modules/esprima/package.json +112 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/execa/index.js +268 -0
- package/.output/server/node_modules/execa/lib/command.js +52 -0
- package/.output/server/node_modules/execa/lib/error.js +88 -0
- package/.output/server/node_modules/execa/lib/kill.js +115 -0
- package/.output/server/node_modules/execa/lib/promise.js +46 -0
- package/.output/server/node_modules/execa/lib/stdio.js +52 -0
- package/.output/server/node_modules/execa/lib/stream.js +97 -0
- package/.output/server/node_modules/execa/package.json +74 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +147 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +955 -0
- package/.output/server/node_modules/google-protobuf/google-protobuf.js +149 -0
- package/.output/server/node_modules/google-protobuf/package.json +35 -0
- package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
- package/.output/server/node_modules/got/dist/source/as-promise/index.js +176 -0
- package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
- package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
- package/.output/server/node_modules/got/dist/source/as-promise/types.js +42 -0
- package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
- package/.output/server/node_modules/got/dist/source/core/index.js +1505 -0
- package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
- package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
- package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
- package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
- package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
- package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
- package/.output/server/node_modules/got/dist/source/create.js +240 -0
- package/.output/server/node_modules/got/dist/source/index.js +132 -0
- package/.output/server/node_modules/got/dist/source/types.js +2 -0
- package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
- package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
- package/.output/server/node_modules/got/package.json +131 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/http-cache-semantics/index.js +674 -0
- package/.output/server/node_modules/http-cache-semantics/package.json +18 -0
- package/.output/server/node_modules/http2-wrapper/package.json +54 -0
- package/.output/server/node_modules/http2-wrapper/source/agent.js +670 -0
- package/.output/server/node_modules/http2-wrapper/source/auto.js +149 -0
- package/.output/server/node_modules/http2-wrapper/source/client-request.js +445 -0
- package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +58 -0
- package/.output/server/node_modules/http2-wrapper/source/index.js +28 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +45 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
- package/.output/server/node_modules/human-signals/build/src/core.js +273 -0
- package/.output/server/node_modules/human-signals/build/src/main.js +71 -0
- package/.output/server/node_modules/human-signals/build/src/realtime.js +19 -0
- package/.output/server/node_modules/human-signals/build/src/signals.js +35 -0
- package/.output/server/node_modules/human-signals/package.json +64 -0
- package/.output/server/node_modules/import-meta-resolve/index.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/lib/errors.js +507 -0
- package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +159 -0
- package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +177 -0
- package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +1297 -0
- package/.output/server/node_modules/import-meta-resolve/lib/utils.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/package.json +95 -0
- package/.output/server/node_modules/is-stream/index.js +28 -0
- package/.output/server/node_modules/is-stream/package.json +42 -0
- package/.output/server/node_modules/isexe/index.js +57 -0
- package/.output/server/node_modules/isexe/mode.js +41 -0
- package/.output/server/node_modules/isexe/package.json +31 -0
- package/.output/server/node_modules/isexe/windows.js +42 -0
- package/.output/server/node_modules/js-yaml/index.js +7 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/.output/server/node_modules/js-yaml/package.json +49 -0
- package/.output/server/node_modules/json-buffer/index.js +58 -0
- package/.output/server/node_modules/json-buffer/package.json +34 -0
- package/.output/server/node_modules/keyv/package.json +57 -0
- package/.output/server/node_modules/keyv/src/index.js +259 -0
- package/.output/server/node_modules/lodash.camelcase/index.js +599 -0
- package/.output/server/node_modules/lodash.camelcase/package.json +19 -0
- package/.output/server/node_modules/long/package.json +50 -0
- package/.output/server/node_modules/long/umd/index.js +1432 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lowercase-keys/index.js +10 -0
- package/.output/server/node_modules/lowercase-keys/package.json +38 -0
- package/.output/server/node_modules/merge-stream/index.js +41 -0
- package/.output/server/node_modules/merge-stream/package.json +19 -0
- package/.output/server/node_modules/mimic-fn/index.js +13 -0
- package/.output/server/node_modules/mimic-fn/package.json +42 -0
- package/.output/server/node_modules/mlly/dist/index.mjs +2606 -0
- package/.output/server/node_modules/mlly/package.json +50 -0
- package/.output/server/node_modules/normalize-url/index.js +216 -0
- package/.output/server/node_modules/normalize-url/package.json +50 -0
- package/.output/server/node_modules/npm-run-path/index.js +47 -0
- package/.output/server/node_modules/npm-run-path/package.json +44 -0
- package/.output/server/node_modules/nypm/dist/index.mjs +306 -0
- package/.output/server/node_modules/nypm/package.json +60 -0
- package/.output/server/node_modules/once/once.js +42 -0
- package/.output/server/node_modules/once/package.json +33 -0
- package/.output/server/node_modules/onetime/index.js +44 -0
- package/.output/server/node_modules/onetime/package.json +43 -0
- package/.output/server/node_modules/p-cancelable/index.js +111 -0
- package/.output/server/node_modules/p-cancelable/package.json +49 -0
- package/.output/server/node_modules/path-key/index.js +16 -0
- package/.output/server/node_modules/path-key/package.json +39 -0
- package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/.output/server/node_modules/pathe/package.json +48 -0
- package/.output/server/node_modules/pkg-types/dist/index.mjs +156 -0
- package/.output/server/node_modules/pkg-types/package.json +47 -0
- package/.output/server/node_modules/promise-make-counter/dist/index.js +24 -0
- package/.output/server/node_modules/promise-make-counter/package.json +32 -0
- package/.output/server/node_modules/promise-make-naked/dist/index.js +25 -0
- package/.output/server/node_modules/promise-make-naked/dist/utils.js +4 -0
- package/.output/server/node_modules/promise-make-naked/package.json +27 -0
- package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/api.json +118 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/type.json +202 -0
- package/.output/server/node_modules/protobufjs/index.js +4 -0
- package/.output/server/node_modules/protobufjs/package.json +112 -0
- package/.output/server/node_modules/protobufjs/src/common.js +399 -0
- package/.output/server/node_modules/protobufjs/src/converter.js +301 -0
- package/.output/server/node_modules/protobufjs/src/decoder.js +129 -0
- package/.output/server/node_modules/protobufjs/src/encoder.js +100 -0
- package/.output/server/node_modules/protobufjs/src/enum.js +198 -0
- package/.output/server/node_modules/protobufjs/src/field.js +377 -0
- package/.output/server/node_modules/protobufjs/src/index-light.js +104 -0
- package/.output/server/node_modules/protobufjs/src/index-minimal.js +36 -0
- package/.output/server/node_modules/protobufjs/src/index.js +12 -0
- package/.output/server/node_modules/protobufjs/src/mapfield.js +126 -0
- package/.output/server/node_modules/protobufjs/src/message.js +139 -0
- package/.output/server/node_modules/protobufjs/src/method.js +160 -0
- package/.output/server/node_modules/protobufjs/src/namespace.js +433 -0
- package/.output/server/node_modules/protobufjs/src/object.js +243 -0
- package/.output/server/node_modules/protobufjs/src/oneof.js +203 -0
- package/.output/server/node_modules/protobufjs/src/parse.js +893 -0
- package/.output/server/node_modules/protobufjs/src/reader.js +416 -0
- package/.output/server/node_modules/protobufjs/src/reader_buffer.js +51 -0
- package/.output/server/node_modules/protobufjs/src/root.js +368 -0
- package/.output/server/node_modules/protobufjs/src/roots.js +18 -0
- package/.output/server/node_modules/protobufjs/src/rpc/service.js +142 -0
- package/.output/server/node_modules/protobufjs/src/rpc.js +36 -0
- package/.output/server/node_modules/protobufjs/src/service.js +167 -0
- package/.output/server/node_modules/protobufjs/src/tokenize.js +416 -0
- package/.output/server/node_modules/protobufjs/src/type.js +589 -0
- package/.output/server/node_modules/protobufjs/src/types.js +196 -0
- package/.output/server/node_modules/protobufjs/src/util/longbits.js +200 -0
- package/.output/server/node_modules/protobufjs/src/util/minimal.js +438 -0
- package/.output/server/node_modules/protobufjs/src/util.js +212 -0
- package/.output/server/node_modules/protobufjs/src/verifier.js +177 -0
- package/.output/server/node_modules/protobufjs/src/wrappers.js +102 -0
- package/.output/server/node_modules/protobufjs/src/writer.js +465 -0
- package/.output/server/node_modules/protobufjs/src/writer_buffer.js +85 -0
- package/.output/server/node_modules/pump/index.js +86 -0
- package/.output/server/node_modules/pump/package.json +24 -0
- package/.output/server/node_modules/quick-lru/index.js +123 -0
- package/.output/server/node_modules/quick-lru/package.json +43 -0
- package/.output/server/node_modules/remeda/dist/chunk-23J5WHPE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2H7222YL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2TTHCYUC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3AO76THC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3MWN2VHC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3X47EJDR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-54BCGHSM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5G3KY7YR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5K4XWC27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5LYW332I.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5O3FBXU6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5VD5RID3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6HBEBUDI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6IHL7GXT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6MJCR2TC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-73TZMTEA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7BKSRZNG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7EFS5WOU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7KI2QQIQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7LYAC624.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7ROMSESG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-A3FCILQE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ATQJ6737.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-AWX7RJXY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BLEEZ23Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BONXESQ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BQ7TSIFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BTFWISLJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BYFE4FDX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4ACUJGS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4OSHTCI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CETFG6TX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGDTCOHY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGU6DJQK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-COZRMC32.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAHUGBAA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAQH7UR3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +2 -0
- package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DUDVLQA2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E3EM3KJY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E5GMYZMA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EJCQEWX4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EKGXROMD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EM24PB7A.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENXBNJ36.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-F6MOVT3B.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FB2ENREB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FFFVS7XT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FJ47D26D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FTGV3QMT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FW6RZCGF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-G4OU46SC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GJJNKHO2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-H2MMZB4H.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HBSRBOZK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HO4FFX2R.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HQOQUMZV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I76XIBD5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ICQWNDYD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IEE7G5JG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IFSMCGFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IUVYQYF2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JET27MOQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JWKJXNB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JYNHUNML.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K26VP6CL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5HTIQFL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5LCXBBG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KCAOR2LA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KIA3HX3M.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KQINSXIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KSDEFWLH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LAI77QME.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LFEOZTJ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LIVAT3FO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LKOWEUPS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MD7HNZ54.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MQWMWXZY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NGEN63UD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMJS7ULY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NP7PEDI6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OC26KGXM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OEI2BOBZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OYJAL6JK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PJOV2RDB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PWMUXL7T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PZOXR343.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RAAYCPUM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RIKUOZVG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RLZQTLGN.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RTWSSDNQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RU7WR4KH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RUHQUI2Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RXDTYBQM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S23N53O3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S3CYJTB5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIBGEYD6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIQPZPLZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SOGKZP3K.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-TOHMEB3C.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U2GFW3LV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U54ONDS6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UEZTW4YU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UIZMRUOL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UWLP4KOD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VBBPTWMC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCURCCIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFKB5IBK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VPCXVUT7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W2HQ33EO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W3QI2BKC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WIMS2EYK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WT5BLBHJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WY3JJUR4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WZSGNJRX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-X5E5CJJQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XBEN2OB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XJHR6NID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XSF7OVJO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-Y67GVJD3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YL2OFO3L.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ZF7KX2VP.js +1 -0
- package/.output/server/node_modules/remeda/dist/index.js +1 -0
- package/.output/server/node_modules/remeda/package.json +88 -0
- package/.output/server/node_modules/resolve-alpn/index.js +43 -0
- package/.output/server/node_modules/resolve-alpn/package.json +34 -0
- package/.output/server/node_modules/responselike/package.json +39 -0
- package/.output/server/node_modules/responselike/src/index.js +34 -0
- package/.output/server/node_modules/semver/classes/comparator.js +141 -0
- package/.output/server/node_modules/semver/classes/range.js +554 -0
- package/.output/server/node_modules/semver/classes/semver.js +302 -0
- package/.output/server/node_modules/semver/functions/clean.js +6 -0
- package/.output/server/node_modules/semver/functions/cmp.js +52 -0
- package/.output/server/node_modules/semver/functions/coerce.js +60 -0
- package/.output/server/node_modules/semver/functions/compare-build.js +7 -0
- package/.output/server/node_modules/semver/functions/compare-loose.js +3 -0
- package/.output/server/node_modules/semver/functions/compare.js +5 -0
- package/.output/server/node_modules/semver/functions/diff.js +65 -0
- package/.output/server/node_modules/semver/functions/eq.js +3 -0
- package/.output/server/node_modules/semver/functions/gt.js +3 -0
- package/.output/server/node_modules/semver/functions/gte.js +3 -0
- package/.output/server/node_modules/semver/functions/inc.js +19 -0
- package/.output/server/node_modules/semver/functions/lt.js +3 -0
- package/.output/server/node_modules/semver/functions/lte.js +3 -0
- package/.output/server/node_modules/semver/functions/major.js +3 -0
- package/.output/server/node_modules/semver/functions/minor.js +3 -0
- package/.output/server/node_modules/semver/functions/neq.js +3 -0
- package/.output/server/node_modules/semver/functions/parse.js +16 -0
- package/.output/server/node_modules/semver/functions/patch.js +3 -0
- package/.output/server/node_modules/semver/functions/prerelease.js +6 -0
- package/.output/server/node_modules/semver/functions/rcompare.js +3 -0
- package/.output/server/node_modules/semver/functions/rsort.js +3 -0
- package/.output/server/node_modules/semver/functions/satisfies.js +10 -0
- package/.output/server/node_modules/semver/functions/sort.js +3 -0
- package/.output/server/node_modules/semver/functions/valid.js +6 -0
- package/.output/server/node_modules/semver/index.js +89 -0
- package/.output/server/node_modules/semver/internal/constants.js +35 -0
- package/.output/server/node_modules/semver/internal/debug.js +9 -0
- package/.output/server/node_modules/semver/internal/identifiers.js +23 -0
- package/.output/server/node_modules/semver/internal/lrucache.js +40 -0
- package/.output/server/node_modules/semver/internal/parse-options.js +15 -0
- package/.output/server/node_modules/semver/internal/re.js +217 -0
- package/.output/server/node_modules/semver/package.json +77 -0
- package/.output/server/node_modules/semver/preload.js +2 -0
- package/.output/server/node_modules/semver/ranges/gtr.js +4 -0
- package/.output/server/node_modules/semver/ranges/intersects.js +7 -0
- package/.output/server/node_modules/semver/ranges/ltr.js +4 -0
- package/.output/server/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/.output/server/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/.output/server/node_modules/semver/ranges/min-version.js +61 -0
- package/.output/server/node_modules/semver/ranges/outside.js +80 -0
- package/.output/server/node_modules/semver/ranges/simplify.js +47 -0
- package/.output/server/node_modules/semver/ranges/subset.js +247 -0
- package/.output/server/node_modules/semver/ranges/to-comparators.js +8 -0
- package/.output/server/node_modules/semver/ranges/valid.js +11 -0
- package/.output/server/node_modules/shebang-command/index.js +19 -0
- package/.output/server/node_modules/shebang-command/package.json +34 -0
- package/.output/server/node_modules/shebang-regex/index.js +2 -0
- package/.output/server/node_modules/shebang-regex/package.json +35 -0
- package/.output/server/node_modules/signal-exit/index.js +202 -0
- package/.output/server/node_modules/signal-exit/package.json +38 -0
- package/.output/server/node_modules/signal-exit/signals.js +53 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/strip-final-newline/index.js +16 -0
- package/.output/server/node_modules/strip-final-newline/package.json +40 -0
- package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +19 -0
- package/.output/server/node_modules/stubborn-fs/dist/constants.js +8 -0
- package/.output/server/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/.output/server/node_modules/stubborn-fs/dist/index.js +53 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify.js +46 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +62 -0
- package/.output/server/node_modules/stubborn-fs/package.json +28 -0
- package/.output/server/node_modules/tiny-readdir/dist/constants.js +9 -0
- package/.output/server/node_modules/tiny-readdir/dist/index.js +185 -0
- package/.output/server/node_modules/tiny-readdir/dist/utils.js +9 -0
- package/.output/server/node_modules/tiny-readdir/package.json +34 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +578 -0
- package/.output/server/node_modules/tinyexec/package.json +66 -0
- package/.output/server/node_modules/tmp/lib/tmp.js +784 -0
- package/.output/server/node_modules/tmp/package.json +56 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +630 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +748 -0
- package/.output/server/node_modules/unhead/package.json +46 -0
- package/.output/server/node_modules/upath/build/code/upath.js +171 -0
- package/.output/server/node_modules/upath/package.json +60 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/watcher/dist/constants.js +16 -0
- package/.output/server/node_modules/watcher/dist/enums.js +35 -0
- package/.output/server/node_modules/watcher/dist/lazy_map_set.js +81 -0
- package/.output/server/node_modules/watcher/dist/utils.js +120 -0
- package/.output/server/node_modules/watcher/dist/watcher.js +396 -0
- package/.output/server/node_modules/watcher/dist/watcher_handler.js +248 -0
- package/.output/server/node_modules/watcher/dist/watcher_locker.js +139 -0
- package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +42 -0
- package/.output/server/node_modules/watcher/dist/watcher_poller.js +116 -0
- package/.output/server/node_modules/watcher/dist/watcher_stats.js +29 -0
- package/.output/server/node_modules/watcher/package.json +37 -0
- package/.output/server/node_modules/which/package.json +43 -0
- package/.output/server/node_modules/which/which.js +125 -0
- package/.output/server/node_modules/wrappy/package.json +29 -0
- package/.output/server/node_modules/wrappy/wrappy.js +33 -0
- package/.output/server/node_modules/zod/lib/index.mjs +4382 -0
- package/.output/server/node_modules/zod/package.json +122 -0
- package/.output/server/package.json +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,1067 @@
|
|
|
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
|