@hot-updater/console 0.33.0 → 0.33.1

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.
Files changed (63) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/assets/dist-DJX53faP.js +3 -0
  3. package/.output/public/assets/index-CCUspZZV.js +10 -0
  4. package/.output/public/assets/routes-D0t6y5Fr.js +54 -0
  5. package/.output/public/assets/styles-C0q26dS-.css +2 -0
  6. package/.output/server/{__tanstack-start-server-fn-resolver-ySzPUDlM.mjs → __23tanstack-start-server-fn-resolver-B12pVvhf.mjs} +32 -39
  7. package/.output/server/_chunks/ssr-renderer.mjs +14 -3
  8. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +7 -7
  9. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +142 -93
  10. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +32 -11
  11. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +130 -95
  12. package/.output/server/_libs/@tanstack/form-core+[...].mjs +1138 -306
  13. package/.output/server/_libs/@tanstack/react-form+[...].mjs +156 -24
  14. package/.output/server/_libs/@tanstack/react-router+[...].mjs +2658 -1395
  15. package/.output/server/_libs/@tanstack/react-table+[...].mjs +1 -1
  16. package/.output/server/_libs/dayjs.mjs +6 -6
  17. package/.output/server/_libs/h3+rou3+srvx.mjs +30 -42
  18. package/.output/server/_libs/lucide-react.mjs +8 -8
  19. package/.output/server/_libs/next-themes.mjs +1 -1
  20. package/.output/server/_libs/radix-ui__number.mjs +1 -1
  21. package/.output/server/_libs/radix-ui__react-arrow.mjs +2 -2
  22. package/.output/server/_libs/radix-ui__react-collection.mjs +2 -2
  23. package/.output/server/_libs/radix-ui__react-direction.mjs +2 -2
  24. package/.output/server/_libs/radix-ui__react-label.mjs +2 -2
  25. package/.output/server/_libs/radix-ui__react-separator.mjs +2 -2
  26. package/.output/server/_libs/radix-ui__react-slider.mjs +103 -44
  27. package/.output/server/_libs/radix-ui__react-switch.mjs +88 -49
  28. package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -4
  29. package/.output/server/_libs/semver.mjs +97 -52
  30. package/.output/server/_libs/sonner.mjs +1 -1
  31. package/.output/server/_libs/tailwind-merge.mjs +51 -3
  32. package/.output/server/_libs/tanstack__history.mjs +28 -8
  33. package/.output/server/_libs/tanstack__query-core.mjs +200 -174
  34. package/.output/server/_libs/tanstack__react-query.mjs +14 -13
  35. package/.output/server/_ssr/{api-rpc-Bwustks9.mjs → api-rpc-ORImfBFu.mjs} +18 -18
  36. package/.output/server/_ssr/{config.server-xu3W-WAK.mjs → config.server-BSS366KT.mjs} +2 -2
  37. package/.output/server/_ssr/{createServerFn-CdeRXnVy.mjs → createServerFn-DzU0k62V.mjs} +129 -90
  38. package/.output/server/_ssr/{deleteBundle-CXxwjwEZ.mjs → deleteBundle-CuujBAH8.mjs} +2 -2
  39. package/.output/server/_ssr/{dist-CRiLZLfa.mjs → dist-KboydRVk.mjs} +1 -1
  40. package/.output/server/_ssr/empty-plugin-adapters-B4HCzgmM.mjs +5 -0
  41. package/.output/server/_ssr/{getBundleChildren-DFqZ6XMp.mjs → getBundleChildren-CVtSiH5t.mjs} +2 -2
  42. package/.output/server/_ssr/{router-1tw3jh6y.mjs → router-DmdnzGpe.mjs} +7 -8
  43. package/.output/server/_ssr/{routes-D5CmWxI7.mjs → routes-Be7gDfJS.mjs} +36 -39
  44. package/.output/server/_ssr/{sidebar-CgbtXkE2.mjs → sidebar-Cv_H0_Jv.mjs} +5 -5
  45. package/.output/server/_ssr/ssr.mjs +4222 -3153
  46. package/.output/server/_ssr/start-D4SBEASt.mjs +4 -0
  47. package/.output/server/_ssr/{storageProfile-wICk5nZZ.mjs → storageProfile-FVkjPoGb.mjs} +1 -1
  48. package/.output/server/_tanstack-start-manifest_v-BroBMdSR.mjs +20 -0
  49. package/.output/server/index.mjs +124 -168
  50. package/package.json +12 -9
  51. package/.output/public/assets/BaseTanStackRouterDevtoolsPanel-Bmws3ikM-q5p5qKUx.js +0 -486
  52. package/.output/public/assets/FloatingTanStackRouterDevtools-B7vy70jP-Bzs2Gthe.js +0 -1
  53. package/.output/public/assets/clsx-CbprLf2V.js +0 -1
  54. package/.output/public/assets/dist-BzU1qUss.js +0 -9
  55. package/.output/public/assets/main-CmNeAg9B.js +0 -10
  56. package/.output/public/assets/preload-helper-C5ST2IKa.js +0 -1
  57. package/.output/public/assets/routes-wJZuGodi.js +0 -54
  58. package/.output/public/assets/styles-DEbMLh52.css +0 -2
  59. package/.output/server/_libs/hookable.mjs +0 -41
  60. package/.output/server/_libs/tanstack__router-core.mjs +0 -6
  61. package/.output/server/_libs/unctx.mjs +0 -82
  62. package/.output/server/_ssr/start-CoRKunFF.mjs +0 -4
  63. package/.output/server/_tanstack-start-manifest_v-AftZl081.mjs +0 -22
@@ -1,8 +1,8 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime } from "./@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
4
- import { a as isServer, i as notifyManager, n as MutationObserver, o as noop, r as QueryObserver, s as shouldThrowError } from "./tanstack__query-core.mjs";
5
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
3
+ import { P as require_jsx_runtime } from "./@radix-ui/react-alert-dialog+[...].mjs";
4
+ import { a as environmentManager, i as notifyManager, n as MutationObserver, o as noop, r as QueryObserver, s as shouldThrowError } from "./tanstack__query-core.mjs";
5
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
6
6
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  var QueryClientContext = import_react.createContext(void 0);
@@ -25,12 +25,12 @@ var QueryClientProvider = ({ client, children }) => {
25
25
  });
26
26
  };
27
27
  //#endregion
28
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
28
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
29
29
  var IsRestoringContext = import_react.createContext(false);
30
30
  var useIsRestoring = () => import_react.useContext(IsRestoringContext);
31
31
  IsRestoringContext.Provider;
32
32
  //#endregion
33
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
33
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
34
34
  function createValue() {
35
35
  let isReset = false;
36
36
  return {
@@ -48,7 +48,7 @@ function createValue() {
48
48
  var QueryErrorResetBoundaryContext = import_react.createContext(createValue());
49
49
  var useQueryErrorResetBoundary = () => import_react.useContext(QueryErrorResetBoundaryContext);
50
50
  //#endregion
51
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
51
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
52
52
  var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
53
53
  const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
54
54
  if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
@@ -64,7 +64,7 @@ var getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }
64
64
  return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
65
65
  };
66
66
  //#endregion
67
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/suspense.js
67
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/suspense.js
68
68
  var ensureSuspenseTimers = (defaultedOptions) => {
69
69
  if (defaultedOptions.suspense) {
70
70
  const MIN_SUSPENSE_TIME_MS = 1e3;
@@ -80,7 +80,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
80
80
  errorResetBoundary.clearReset();
81
81
  });
82
82
  //#endregion
83
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
83
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
84
84
  function useBaseQuery(options, Observer, queryClient) {
85
85
  const isRestoring = useIsRestoring();
86
86
  const errorResetBoundary = useQueryErrorResetBoundary();
@@ -88,14 +88,15 @@ function useBaseQuery(options, Observer, queryClient) {
88
88
  const defaultedOptions = client.defaultQueryOptions(options);
89
89
  client.getDefaultOptions().queries?._experimental_beforeQuery?.(defaultedOptions);
90
90
  const query = client.getQueryCache().get(defaultedOptions.queryHash);
91
- defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
91
+ const subscribed = options.subscribed !== false;
92
+ defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : subscribed ? "optimistic" : void 0;
92
93
  ensureSuspenseTimers(defaultedOptions);
93
94
  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
94
95
  useClearResetErrorBoundary(errorResetBoundary);
95
96
  const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
96
97
  const [observer] = import_react.useState(() => new Observer(client, defaultedOptions));
97
98
  const result = observer.getOptimisticResult(defaultedOptions);
98
- const shouldSubscribe = !isRestoring && options.subscribed !== false;
99
+ const shouldSubscribe = !isRestoring && subscribed;
99
100
  import_react.useSyncExternalStore(import_react.useCallback((onStoreChange) => {
100
101
  const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
101
102
  observer.updateResult();
@@ -113,18 +114,18 @@ function useBaseQuery(options, Observer, queryClient) {
113
114
  suspense: defaultedOptions.suspense
114
115
  })) throw result.error;
115
116
  client.getDefaultOptions().queries?._experimental_afterQuery?.(defaultedOptions, result);
116
- if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) (isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) : query?.promise)?.catch(noop).finally(() => {
117
+ if (defaultedOptions.experimental_prefetchInRender && !environmentManager.isServer() && willFetch(result, isRestoring)) (isNewCacheEntry ? fetchOptimistic(defaultedOptions, observer, errorResetBoundary) : query?.promise)?.catch(noop).finally(() => {
117
118
  observer.updateResult();
118
119
  });
119
120
  return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
120
121
  }
121
122
  //#endregion
122
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useQuery.js
123
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useQuery.js
123
124
  function useQuery(options, queryClient) {
124
125
  return useBaseQuery(options, QueryObserver, queryClient);
125
126
  }
126
127
  //#endregion
127
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useMutation.js
128
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.101.0_react@19.2.6/node_modules/@tanstack/react-query/build/modern/useMutation.js
128
129
  function useMutation(options, queryClient) {
129
130
  const client = useQueryClient(queryClient);
130
131
  const [observer] = import_react.useState(() => new MutationObserver(client, options));
@@ -1,6 +1,6 @@
1
- import { c as createServerFn, i as TSS_SERVER_FUNCTION } from "./createServerFn-CdeRXnVy.mjs";
2
- import { n as isRuntimeStoragePlugin } from "./storageProfile-wICk5nZZ.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-Bwustks9.js
1
+ import { c as createServerFn, i as TSS_SERVER_FUNCTION } from "./createServerFn-DzU0k62V.mjs";
2
+ import { n as isRuntimeStoragePlugin } from "./storageProfile-FVkjPoGb.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-ORImfBFu.js
4
4
  var createServerRpc = (serverFnMeta, splitImportFn) => {
5
5
  const url = "/_serverFn/" + serverFnMeta.id;
6
6
  return Object.assign(splitImportFn, {
@@ -23,7 +23,7 @@ var getConfig_createServerFn_handler = createServerRpc({
23
23
  }, (opts) => getConfig.__executeServer(opts));
24
24
  var getConfig = createServerFn().handler(getConfig_createServerFn_handler, async () => {
25
25
  try {
26
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
26
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
27
27
  const { config } = await prepareConfig();
28
28
  return { console: config.console };
29
29
  } catch (error) {
@@ -38,7 +38,7 @@ var getChannels_createServerFn_handler = createServerRpc({
38
38
  }, (opts) => getChannels.__executeServer(opts));
39
39
  var getChannels = createServerFn().handler(getChannels_createServerFn_handler, async () => {
40
40
  try {
41
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
41
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
42
42
  const { databasePlugin } = await prepareConfig();
43
43
  return await databasePlugin.getChannels() ?? [];
44
44
  } catch (error) {
@@ -53,7 +53,7 @@ var getConfigLoaded_createServerFn_handler = createServerRpc({
53
53
  }, (opts) => getConfigLoaded.__executeServer(opts));
54
54
  var getConfigLoaded = createServerFn().handler(getConfigLoaded_createServerFn_handler, async () => {
55
55
  try {
56
- const { isConfigLoaded } = await import("./config.server-xu3W-WAK.mjs");
56
+ const { isConfigLoaded } = await import("./config.server-BSS366KT.mjs");
57
57
  return { configLoaded: isConfigLoaded() };
58
58
  } catch (error) {
59
59
  console.error("Error during config loaded retrieval:", error);
@@ -67,7 +67,7 @@ var getBundles_createServerFn_handler = createServerRpc({
67
67
  }, (opts) => getBundles.__executeServer(opts));
68
68
  var getBundles = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundles_createServerFn_handler, async ({ data }) => {
69
69
  try {
70
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
70
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
71
71
  const query = {
72
72
  channel: data?.channel ?? void 0,
73
73
  platform: data?.platform ?? void 0,
@@ -111,7 +111,7 @@ var getBundle_createServerFn_handler = createServerRpc({
111
111
  }, (opts) => getBundle.__executeServer(opts));
112
112
  var getBundle = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundle_createServerFn_handler, async ({ data }) => {
113
113
  try {
114
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
114
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
115
115
  const { databasePlugin } = await prepareConfig();
116
116
  return await databasePlugin.getBundleById(data.bundleId) ?? null;
117
117
  } catch (error) {
@@ -126,8 +126,8 @@ var getBundleChildren_createServerFn_handler = createServerRpc({
126
126
  }, (opts) => getBundleChildren.__executeServer(opts));
127
127
  var getBundleChildren = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundleChildren_createServerFn_handler, async ({ data }) => {
128
128
  try {
129
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
130
- const { getBundleChildren: getBundleChildrenWithConfig } = await import("./getBundleChildren-DFqZ6XMp.mjs");
129
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
130
+ const { getBundleChildren: getBundleChildrenWithConfig } = await import("./getBundleChildren-CVtSiH5t.mjs");
131
131
  const { databasePlugin } = await prepareConfig();
132
132
  return await getBundleChildrenWithConfig(data, { databasePlugin });
133
133
  } catch (error) {
@@ -142,8 +142,8 @@ var getBundleChildCounts_createServerFn_handler = createServerRpc({
142
142
  }, (opts) => getBundleChildCounts.__executeServer(opts));
143
143
  var getBundleChildCounts = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundleChildCounts_createServerFn_handler, async ({ data }) => {
144
144
  try {
145
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
146
- const { getBundleChildCounts: getBundleChildCountsWithConfig } = await import("./getBundleChildren-DFqZ6XMp.mjs");
145
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
146
+ const { getBundleChildCounts: getBundleChildCountsWithConfig } = await import("./getBundleChildren-CVtSiH5t.mjs");
147
147
  const { databasePlugin } = await prepareConfig();
148
148
  return await getBundleChildCountsWithConfig(data.bundleIds, { databasePlugin });
149
149
  } catch (error) {
@@ -158,7 +158,7 @@ var getBundleDownloadUrl_createServerFn_handler = createServerRpc({
158
158
  }, (opts) => getBundleDownloadUrl.__executeServer(opts));
159
159
  var getBundleDownloadUrl = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundleDownloadUrl_createServerFn_handler, async ({ data }) => {
160
160
  try {
161
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
161
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
162
162
  const { databasePlugin, storagePlugin } = await prepareConfig();
163
163
  const bundle = await databasePlugin.getBundleById(data.bundleId);
164
164
  if (!bundle) throw new Error("Bundle not found");
@@ -184,7 +184,7 @@ var updateBundle_createServerFn_handler = createServerRpc({
184
184
  }, (opts) => updateBundle.__executeServer(opts));
185
185
  var updateBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(updateBundle_createServerFn_handler, async ({ data }) => {
186
186
  try {
187
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
187
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
188
188
  const { databasePlugin } = await prepareConfig();
189
189
  await databasePlugin.updateBundle(data.bundleId, data.bundle);
190
190
  await databasePlugin.commitBundle();
@@ -206,7 +206,7 @@ var promoteBundle_createServerFn_handler = createServerRpc({
206
206
  }, (opts) => promoteBundle.__executeServer(opts));
207
207
  var promoteBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(promoteBundle_createServerFn_handler, async ({ data }) => {
208
208
  try {
209
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
209
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
210
210
  const { promoteBundle: promoteBundleWithConfig } = await import("@hot-updater/cli-tools");
211
211
  const { config, databasePlugin, storagePlugin } = await prepareConfig();
212
212
  return {
@@ -229,7 +229,7 @@ var createBundle_createServerFn_handler = createServerRpc({
229
229
  }, (opts) => createBundle.__executeServer(opts));
230
230
  var createBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(createBundle_createServerFn_handler, async ({ data }) => {
231
231
  try {
232
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
232
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
233
233
  const { databasePlugin } = await prepareConfig();
234
234
  await databasePlugin.appendBundle(data);
235
235
  await databasePlugin.commitBundle();
@@ -249,8 +249,8 @@ var deleteBundle_createServerFn_handler = createServerRpc({
249
249
  }, (opts) => deleteBundle.__executeServer(opts));
250
250
  var deleteBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(deleteBundle_createServerFn_handler, async ({ data }) => {
251
251
  try {
252
- const { prepareConfig } = await import("./config.server-xu3W-WAK.mjs");
253
- const { deleteBundle: deleteBundleWithStorage } = await import("./deleteBundle-CXxwjwEZ.mjs");
252
+ const { prepareConfig } = await import("./config.server-BSS366KT.mjs");
253
+ const { deleteBundle: deleteBundleWithStorage } = await import("./deleteBundle-CuujBAH8.mjs");
254
254
  const { databasePlugin, storagePlugin } = await prepareConfig();
255
255
  await deleteBundleWithStorage(data, {
256
256
  databasePlugin,
@@ -1,6 +1,6 @@
1
- import { t as assertNodeStoragePlugin } from "./storageProfile-wICk5nZZ.mjs";
1
+ import { t as assertNodeStoragePlugin } from "./storageProfile-FVkjPoGb.mjs";
2
2
  import { loadConfig } from "@hot-updater/cli-tools";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/config.server-xu3W-WAK.js
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/config.server-BSS366KT.js
4
4
  var configPromise = null;
5
5
  var storagePluginPromise = null;
6
6
  var loadCachedConfig = async () => {
@@ -1,5 +1,110 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/createServerFn-CdeRXnVy.js
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/createServerFn-DzU0k62V.js
3
+ /**
4
+ * Create a redirect Response understood by TanStack Router.
5
+ *
6
+ * Use from route `loader`/`beforeLoad` or server functions to trigger a
7
+ * navigation. If `throw: true` is set, the redirect is thrown instead of
8
+ * returned. When an absolute `href` is supplied and `reloadDocument` is not
9
+ * set, a full-document navigation is inferred.
10
+ *
11
+ * @param opts Options for the redirect. Common fields:
12
+ * - `href`: absolute URL for external redirects; infers `reloadDocument`.
13
+ * - `statusCode`: HTTP status code to use (defaults to 307).
14
+ * - `headers`: additional headers to include on the Response.
15
+ * - Standard navigation options like `to`, `params`, `search`, `replace`,
16
+ * and `reloadDocument` for internal redirects.
17
+ * @returns A Response augmented with router navigation options.
18
+ * @link https://tanstack.com/router/latest/docs/framework/react/api/router/redirectFunction
19
+ */
20
+ function redirect(opts) {
21
+ opts.statusCode = opts.statusCode || opts.code || 307;
22
+ if (!opts._builtLocation && !opts.reloadDocument && typeof opts.href === "string") try {
23
+ new URL(opts.href);
24
+ opts.reloadDocument = true;
25
+ } catch {}
26
+ const headers = new Headers(opts.headers);
27
+ if (opts.href && headers.get("Location") === null) headers.set("Location", opts.href);
28
+ const response = new Response(null, {
29
+ status: opts.statusCode,
30
+ headers
31
+ });
32
+ response.options = opts;
33
+ if (opts.throw) throw response;
34
+ return response;
35
+ }
36
+ /** Check whether a value is a TanStack Router redirect Response. */
37
+ /** Check whether a value is a TanStack Router redirect Response. */
38
+ function isRedirect(obj) {
39
+ return obj instanceof Response && !!obj.options;
40
+ }
41
+ /** True if value is a redirect with a resolved `href` location. */
42
+ /** True if value is a redirect with a resolved `href` location. */
43
+ function isResolvedRedirect(obj) {
44
+ return isRedirect(obj) && !!obj.options.href;
45
+ }
46
+ /** Parse a serialized redirect object back into a redirect Response. */
47
+ /** Parse a serialized redirect object back into a redirect Response. */
48
+ function parseRedirect(obj) {
49
+ if (obj !== null && typeof obj === "object" && obj.isSerializedRedirect) return redirect(obj);
50
+ }
51
+ var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
52
+ var TSS_SERVER_FUNCTION = Symbol.for("TSS_SERVER_FUNCTION");
53
+ var TSS_SERVER_FUNCTION_FACTORY = Symbol.for("TSS_SERVER_FUNCTION_FACTORY");
54
+ var X_TSS_SERIALIZED = "x-tss-serialized";
55
+ var X_TSS_RAW_RESPONSE = "x-tss-raw";
56
+ /** Content-Type for multiplexed framed responses (RawStream support) */
57
+ var TSS_CONTENT_TYPE_FRAMED = "application/x-tss-framed";
58
+ /**
59
+ * Frame types for binary multiplexing protocol.
60
+ */
61
+ var FrameType = {
62
+ JSON: 0,
63
+ CHUNK: 1,
64
+ END: 2,
65
+ ERROR: 3
66
+ };
67
+ /** Full Content-Type header value with version parameter */
68
+ var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
69
+ function isSafeKey(key) {
70
+ return key !== "__proto__" && key !== "constructor" && key !== "prototype";
71
+ }
72
+ /**
73
+ * Merge target and source into a new null-proto object, filtering dangerous keys.
74
+ */
75
+ function safeObjectMerge(target, source) {
76
+ const result = Object.create(null);
77
+ if (target) {
78
+ for (const key of Object.keys(target)) if (isSafeKey(key)) result[key] = target[key];
79
+ }
80
+ if (source && typeof source === "object") {
81
+ for (const key of Object.keys(source)) if (isSafeKey(key)) result[key] = source[key];
82
+ }
83
+ return result;
84
+ }
85
+ /**
86
+ * Create a null-prototype object, optionally copying from source.
87
+ */
88
+ function createNullProtoObject(source) {
89
+ if (!source) return Object.create(null);
90
+ const obj = Object.create(null);
91
+ for (const key of Object.keys(source)) if (isSafeKey(key)) obj[key] = source[key];
92
+ return obj;
93
+ }
94
+ var GLOBAL_STORAGE_KEY = Symbol.for("tanstack-start:start-storage-context");
95
+ var globalObj = globalThis;
96
+ if (!globalObj[GLOBAL_STORAGE_KEY]) globalObj[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
97
+ var startStorage = globalObj[GLOBAL_STORAGE_KEY];
98
+ async function runWithStartContext(context, fn) {
99
+ return startStorage.run(context, fn);
100
+ }
101
+ function getStartContext(opts) {
102
+ const context = startStorage.getStore();
103
+ if (!context && opts?.throwIfNotFound !== false) throw new Error(`No Start context found in AsyncLocalStorage. Make sure you are using the function within the server runtime.`);
104
+ return context;
105
+ }
106
+ var getStartOptions = () => getStartContext().startOptions;
107
+ var getStartContextServerOnly = getStartContext;
3
108
  function splitSetCookieString(cookiesString) {
4
109
  if (Array.isArray(cookiesString)) return cookiesString.flatMap((c) => splitSetCookieString(c));
5
110
  if (typeof cookiesString !== "string") return [];
@@ -56,80 +161,16 @@ function mergeHeaders(...headers) {
56
161
  return acc;
57
162
  }, new Headers());
58
163
  }
59
- function redirect(opts) {
60
- opts.statusCode = opts.statusCode || opts.code || 307;
61
- if (!opts._builtLocation && !opts.reloadDocument && typeof opts.href === "string") try {
62
- new URL(opts.href);
63
- opts.reloadDocument = true;
64
- } catch {}
65
- const headers = new Headers(opts.headers);
66
- if (opts.href && headers.get("Location") === null) headers.set("Location", opts.href);
67
- const response = new Response(null, {
68
- status: opts.statusCode,
69
- headers
70
- });
71
- response.options = opts;
72
- if (opts.throw) throw response;
73
- return response;
74
- }
75
- function isRedirect(obj) {
76
- return obj instanceof Response && !!obj.options;
77
- }
78
- function isResolvedRedirect(obj) {
79
- return isRedirect(obj) && !!obj.options.href;
80
- }
81
- function parseRedirect(obj) {
82
- if (obj !== null && typeof obj === "object" && obj.isSerializedRedirect) return redirect(obj);
83
- }
84
- var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
85
- var TSS_SERVER_FUNCTION = /* @__PURE__ */ Symbol.for("TSS_SERVER_FUNCTION");
86
- var TSS_SERVER_FUNCTION_FACTORY = /* @__PURE__ */ Symbol.for("TSS_SERVER_FUNCTION_FACTORY");
87
- var X_TSS_SERIALIZED = "x-tss-serialized";
88
- var X_TSS_RAW_RESPONSE = "x-tss-raw";
89
- var TSS_CONTENT_TYPE_FRAMED = "application/x-tss-framed";
90
- var FrameType = {
91
- JSON: 0,
92
- CHUNK: 1,
93
- END: 2,
94
- ERROR: 3
95
- };
96
- var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
97
- var GLOBAL_STORAGE_KEY = /* @__PURE__ */ Symbol.for("tanstack-start:start-storage-context");
98
- var globalObj = globalThis;
99
- if (!globalObj[GLOBAL_STORAGE_KEY]) globalObj[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
100
- var startStorage = globalObj[GLOBAL_STORAGE_KEY];
101
- async function runWithStartContext(context, fn) {
102
- return startStorage.run(context, fn);
103
- }
104
- function getStartContext(opts) {
105
- const context = startStorage.getStore();
106
- if (!context && opts?.throwIfNotFound !== false) throw new Error(`No Start context found in AsyncLocalStorage. Make sure you are using the function within the server runtime.`);
107
- return context;
108
- }
109
- var getStartOptions = () => getStartContext().startOptions;
110
- var getStartContextServerOnly = getStartContext;
111
- function isSafeKey(key) {
112
- return key !== "__proto__" && key !== "constructor" && key !== "prototype";
113
- }
114
- function safeObjectMerge(target, source) {
115
- const result = /* @__PURE__ */ Object.create(null);
116
- if (target) {
117
- for (const key of Object.keys(target)) if (isSafeKey(key)) result[key] = target[key];
118
- }
119
- if (source && typeof source === "object") {
120
- for (const key of Object.keys(source)) if (isSafeKey(key)) result[key] = source[key];
121
- }
122
- return result;
123
- }
124
- function createNullProtoObject(source) {
125
- if (!source) return /* @__PURE__ */ Object.create(null);
126
- const obj = /* @__PURE__ */ Object.create(null);
127
- for (const key of Object.keys(source)) if (isSafeKey(key)) obj[key] = source[key];
128
- return obj;
129
- }
130
164
  var createServerFn = (options, __opts) => {
131
165
  const resolvedOptions = __opts || options || {};
132
166
  if (typeof resolvedOptions.method === "undefined") resolvedOptions.method = "GET";
167
+ const setValidator = (validator) => {
168
+ return createServerFn(void 0, {
169
+ ...resolvedOptions,
170
+ validator,
171
+ inputValidator: validator
172
+ });
173
+ };
133
174
  const res = {
134
175
  options: resolvedOptions,
135
176
  middleware: (middleware) => {
@@ -139,19 +180,15 @@ var createServerFn = (options, __opts) => {
139
180
  if (m.options.middleware) newMiddleware.push(...m.options.middleware);
140
181
  } else newMiddleware.push(m);
141
182
  });
142
- const res2 = createServerFn(void 0, {
183
+ const res = createServerFn(void 0, {
143
184
  ...resolvedOptions,
144
185
  middleware: newMiddleware
145
186
  });
146
- res2[TSS_SERVER_FUNCTION_FACTORY] = true;
147
- return res2;
148
- },
149
- inputValidator: (inputValidator) => {
150
- return createServerFn(void 0, {
151
- ...resolvedOptions,
152
- inputValidator
153
- });
187
+ res[TSS_SERVER_FUNCTION_FACTORY] = true;
188
+ return res;
154
189
  },
190
+ validator: setValidator,
191
+ inputValidator: setValidator,
155
192
  handler: (...args) => {
156
193
  const [extractedFn, serverFn] = args;
157
194
  const newOptions = {
@@ -185,7 +222,7 @@ var createServerFn = (options, __opts) => {
185
222
  ...extractedFn,
186
223
  ...opts,
187
224
  serverFnMeta: extractedFn.serverFnMeta,
188
- context: safeObjectMerge(serverContextAfterGlobalMiddlewares, opts.context),
225
+ context: safeObjectMerge(opts.context, serverContextAfterGlobalMiddlewares),
189
226
  request: startContext.request
190
227
  }).then((d) => ({
191
228
  result: d.result,
@@ -196,10 +233,10 @@ var createServerFn = (options, __opts) => {
196
233
  });
197
234
  }
198
235
  };
199
- const fun = (options2) => {
236
+ const fun = (options) => {
200
237
  return createServerFn(void 0, {
201
238
  ...resolvedOptions,
202
- ...options2
239
+ ...options
203
240
  });
204
241
  };
205
242
  return Object.assign(fun, res);
@@ -214,14 +251,16 @@ async function executeMiddleware(middlewares, env, opts) {
214
251
  const nextMiddleware = flattenedMiddlewares.shift();
215
252
  if (!nextMiddleware) return ctx;
216
253
  try {
217
- if ("inputValidator" in nextMiddleware.options && nextMiddleware.options.inputValidator && env === "server") ctx.data = await execValidator(nextMiddleware.options.inputValidator, ctx.data);
254
+ let validator = "validator" in nextMiddleware.options ? nextMiddleware.options.validator : void 0;
255
+ if (!validator && "inputValidator" in nextMiddleware.options) validator = nextMiddleware.options.inputValidator;
256
+ if (validator && env === "server") ctx.data = await execValidator(validator, ctx.data);
218
257
  let middlewareFn = void 0;
219
258
  if (env === "client") {
220
259
  if ("client" in nextMiddleware.options) middlewareFn = nextMiddleware.options.client;
221
260
  } else if ("server" in nextMiddleware.options) middlewareFn = nextMiddleware.options.server;
222
261
  if (middlewareFn) {
223
262
  const userNext = async (userCtx = {}) => {
224
- const result2 = await callNextMiddleware({
263
+ const result = await callNextMiddleware({
225
264
  ...ctx,
226
265
  ...userCtx,
227
266
  context: safeObjectMerge(ctx.context, userCtx.context),
@@ -232,8 +271,8 @@ async function executeMiddleware(middlewares, env, opts) {
232
271
  result: userCtx.result !== void 0 ? userCtx.result : userCtx instanceof Response ? userCtx : ctx.result,
233
272
  error: userCtx.error ?? ctx.error
234
273
  });
235
- if (result2.error) throw result2.error;
236
- return result2;
274
+ if (result.error) throw result.error;
275
+ return result;
237
276
  };
238
277
  const result = await middlewareFn({
239
278
  ...ctx,
@@ -297,7 +336,7 @@ function serverFnBaseToMiddleware(options) {
297
336
  return {
298
337
  "~types": void 0,
299
338
  options: {
300
- inputValidator: options.inputValidator,
339
+ inputValidator: options.validator ?? options.inputValidator,
301
340
  client: async ({ next, sendContext, fetch, ...ctx }) => {
302
341
  const payload = {
303
342
  ...ctx,
@@ -317,4 +356,4 @@ function serverFnBaseToMiddleware(options) {
317
356
  };
318
357
  }
319
358
  //#endregion
320
- export { X_TSS_RAW_RESPONSE as a, createServerFn as c, isRedirect as d, isResolvedRedirect as f, safeObjectMerge as h, TSS_SERVER_FUNCTION as i, flattenMiddlewares as l, runWithStartContext as m, TSS_CONTENT_TYPE_FRAMED_VERSIONED as n, X_TSS_SERIALIZED as o, mergeHeaders as p, TSS_FORMDATA_CONTEXT as r, createNullProtoObject as s, FrameType as t, getStartOptions as u };
359
+ export { X_TSS_RAW_RESPONSE as a, createServerFn as c, getStartOptions as d, isRedirect as f, safeObjectMerge as g, runWithStartContext as h, TSS_SERVER_FUNCTION as i, flattenMiddlewares as l, mergeHeaders as m, TSS_CONTENT_TYPE_FRAMED_VERSIONED as n, X_TSS_SERIALIZED as o, isResolvedRedirect as p, TSS_FORMDATA_CONTEXT as r, createNullProtoObject as s, FrameType as t, getStartContext as u };
@@ -1,8 +1,8 @@
1
- import { a as getManifestStorageUri, i as getBundlePatches, r as getAssetBaseStorageUri, u as getPatchStorageUri } from "./dist-CRiLZLfa.mjs";
1
+ import { a as getManifestStorageUri, i as getBundlePatches, r as getAssetBaseStorageUri, u as getPatchStorageUri } from "./dist-KboydRVk.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import path from "node:path";
4
4
  import fs from "node:fs/promises";
5
- //#region node_modules/.nitro/vite/services/ssr/assets/deleteBundle-CXxwjwEZ.js
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/deleteBundle-CuujBAH8.js
6
6
  var createStorageUriWithRelativePath = ({ baseStorageUri, relativePath }) => {
7
7
  const storageUrl = new URL(baseStorageUri);
8
8
  storageUrl.pathname = `${storageUrl.pathname.replace(/\/+$/, "")}/${relativePath.replace(/\\/g, "/").split("/").filter(Boolean).map((segment) => encodeURIComponent(segment)).join("/")}`;
@@ -1,4 +1,4 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/dist-CRiLZLfa.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/dist-KboydRVk.js
2
2
  var getManifestStorageUri = (bundle) => bundle.manifestStorageUri ?? null;
3
3
  var getAssetBaseStorageUri = (bundle) => bundle.assetBaseStorageUri ?? null;
4
4
  var isBundlePatchArtifact = (value) => {
@@ -0,0 +1,5 @@
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/empty-plugin-adapters-B4HCzgmM.js
2
+ var pluginSerializationAdapters = [];
3
+ var hasPluginAdapters = false;
4
+ //#endregion
5
+ export { hasPluginAdapters, pluginSerializationAdapters };
@@ -1,5 +1,5 @@
1
- import { i as getBundlePatches } from "./dist-CRiLZLfa.mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/getBundleChildren-DFqZ6XMp.js
1
+ import { i as getBundlePatches } from "./dist-KboydRVk.mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/getBundleChildren-CVtSiH5t.js
3
3
  var CHILDREN_QUERY_LIMIT = 100;
4
4
  async function collectBundleChildrenByBaseIds(baseBundleIds, deps) {
5
5
  const uniqueBaseBundleIds = [...new Set(baseBundleIds.filter(Boolean))];
@@ -1,19 +1,18 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
- import { P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
3
2
  import { u as require_react } from "../_libs/@floating-ui/react-dom+[...].mjs";
3
+ import { P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
4
4
  import { b as CircleCheck, c as Package, f as LoaderCircle, i as Sun, l as OctagonX, m as Info, n as TriangleAlert, u as Moon } from "../_libs/lucide-react.mjs";
5
- import { a as SidebarContent, b as TooltipProvider, c as SidebarGroupContent, d as SidebarInset, f as SidebarMenu, h as SidebarProvider, i as Sidebar, l as SidebarGroupLabel, m as SidebarMenuItem, o as SidebarFooter, p as SidebarMenuButton, s as SidebarGroup, t as Button, u as SidebarHeader } from "./sidebar-CgbtXkE2.mjs";
6
- import { a as createRouter, c as createFileRoute, l as createRootRoute, n as Scripts, o as Outlet, p as useRouterState, r as HeadContent, s as lazyRouteComponent, u as Link } from "../_libs/@tanstack/react-router+[...].mjs";
5
+ import { a as SidebarContent, b as TooltipProvider, c as SidebarGroupContent, d as SidebarInset, f as SidebarMenu, h as SidebarProvider, i as Sidebar, l as SidebarGroupLabel, m as SidebarMenuItem, o as SidebarFooter, p as SidebarMenuButton, s as SidebarGroup, t as Button, u as SidebarHeader } from "./sidebar-Cv_H0_Jv.mjs";
6
+ import { a as useRouterState, c as Outlet, d as createRootRoute, f as Link, i as HeadContent, l as lazyRouteComponent, r as Scripts, s as createRouter, u as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
7
7
  import { t as QueryClient } from "../_libs/tanstack__query-core.mjs";
8
8
  import { r as QueryClientProvider } from "../_libs/tanstack__react-query.mjs";
9
9
  import { t as z } from "../_libs/next-themes.mjs";
10
10
  import { t as Toaster } from "../_libs/sonner.mjs";
11
- //#region node_modules/.nitro/vite/services/ssr/assets/router-1tw3jh6y.js
12
- var import_jsx_runtime = require_jsx_runtime();
11
+ //#region node_modules/.nitro/vite/services/ssr/assets/router-DmdnzGpe.js
13
12
  var import_react = /* @__PURE__ */ __toESM(require_react());
13
+ var import_jsx_runtime = require_jsx_runtime();
14
14
  function HotUpdaterLogo({ className }) {
15
15
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
16
- role: "img",
17
16
  "aria-label": "Hot Updater",
18
17
  className,
19
18
  viewBox: "0 0 447 652",
@@ -216,7 +215,7 @@ var Toaster$1 = ({ ...props }) => {
216
215
  ...props
217
216
  });
218
217
  };
219
- var styles_default = "/assets/styles-DEbMLh52.css";
218
+ var styles_default = "/assets/styles-C0q26dS-.css";
220
219
  var Route$1 = createRootRoute({
221
220
  head: () => ({
222
221
  meta: [
@@ -271,7 +270,7 @@ function RootLayout() {
271
270
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Outlet, {})
272
271
  })] });
273
272
  }
274
- var $$splitComponentImporter = () => import("./routes-D5CmWxI7.mjs");
273
+ var $$splitComponentImporter = () => import("./routes-Be7gDfJS.mjs");
275
274
  var rootRouteChildren = { IndexRoute: createFileRoute("/")({
276
275
  component: lazyRouteComponent($$splitComponentImporter, "component"),
277
276
  validateSearch: (search) => {