@krak-stack/registry 0.1.27 → 0.1.28

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 (37) hide show
  1. package/dist/components/ui/data-table.js +238 -237
  2. package/dist/components/ui/effect-form.js +169 -170
  3. package/dist/components/ui/form.js +112 -113
  4. package/dist/components/ui/icon-input.js +40 -43
  5. package/dist/components/ui/pagination.js +2 -2
  6. package/dist/components/ui/sidebar-layout.js +66 -71
  7. package/dist/components/ui/theme-switcher.js +3 -3
  8. package/dist/components/ui/virtualized-combobox.js +31 -34
  9. package/dist/lib/docs.js +133 -138
  10. package/dist/lib/docs.server.js +23 -47
  11. package/dist/lib/documentation-toolkit.js +24 -48
  12. package/dist/lib/httpapi-cli.js +7 -7
  13. package/dist/lib/httpapi-client.js +3 -3
  14. package/dist/lib/httpapi-helpers.js +11 -11
  15. package/dist/lib/httpapi-mcp.js +2 -2
  16. package/dist/lib/httpapi-toolkit.js +2 -2
  17. package/dist/lib/query.d.ts +16 -6
  18. package/dist/lib/query.js +17 -8
  19. package/dist/lib/seo.js +2 -2
  20. package/dist/lib/webfetch-toolkit.js +6 -6
  21. package/dist/services/agent/client/index.js +127 -128
  22. package/dist/services/agent/schema.js +5 -5
  23. package/dist/services/file-extraction/index.js +4 -4
  24. package/dist/services/file-extraction/schema.js +2 -2
  25. package/dist/services/health/index.js +9 -9
  26. package/dist/services/notification/channels/ses/index.js +2 -2
  27. package/dist/services/notification/channels/ses/schema.js +2 -2
  28. package/dist/services/notification/client/index.js +5 -5
  29. package/dist/services/notification/index.js +2 -2
  30. package/dist/services/notification/persistence/drizzle.js +2 -2
  31. package/dist/services/notification/persistence/index.js +15 -15
  32. package/dist/services/notification/persistence/schema.js +12 -12
  33. package/dist/services/notification/public.js +7 -7
  34. package/dist/services/notification/schema.js +2 -2
  35. package/dist/services/s3/index.js +2 -2
  36. package/dist/services/s3/schema.js +2 -2
  37. package/package.json +1 -1
@@ -16,7 +16,6 @@ import {
16
16
 
17
17
  // ../../src/components/ui/app-brand.tsx
18
18
  import { Link } from "@tanstack/react-router";
19
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
20
19
 
21
20
  // ../../src/components/ui/badge.tsx
22
21
  import { mergeProps } from "@base-ui/react/merge-props";
@@ -47,7 +46,6 @@ var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center
47
46
  // ../../src/components/ui/button.tsx
48
47
  import { Button as ButtonPrimitive } from "@base-ui/react/button";
49
48
  import { cva as cva2 } from "class-variance-authority";
50
- import { jsx as jsx2 } from "react/jsx-runtime";
51
49
  var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
52
50
  variants: {
53
51
  variant: {
@@ -78,14 +76,12 @@ var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justif
78
76
  // ../../src/components/ui/copy-button.tsx
79
77
  import { Check, Copy, TriangleAlert } from "lucide-react";
80
78
  import { useEffect, useRef, useState } from "react";
81
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
82
79
 
83
80
  // ../../src/components/ui/code-block.tsx
84
81
  import { highlight } from "@tanstack/highlight";
85
82
  import { createThemeCss } from "@tanstack/highlight/theme";
86
83
  import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
87
84
  import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
88
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
89
85
  var themeCss = `${createThemeCss({
90
86
  light: githubLightTheme,
91
87
  dark: githubDarkTheme,
@@ -103,12 +99,8 @@ var themeCss = `${createThemeCss({
103
99
  }
104
100
  [data-code-theme] pre.th-code code { font: inherit; }`;
105
101
 
106
- // ../../src/lib/markdown/content.tsx
107
- import { jsx as jsx5 } from "react/jsx-runtime";
108
-
109
102
  // ../../src/components/ui/collapsible.tsx
110
103
  import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
111
- import { jsx as jsx6 } from "react/jsx-runtime";
112
104
 
113
105
  // ../../src/components/ui/search-menu.tsx
114
106
  import { SearchIcon as SearchIcon2 } from "lucide-react";
@@ -121,10 +113,6 @@ import { SearchIcon } from "lucide-react";
121
113
  // ../../src/components/ui/dialog.tsx
122
114
  import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
123
115
  import { XIcon } from "lucide-react";
124
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
125
-
126
- // ../../src/components/ui/command.tsx
127
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
128
116
 
129
117
  // ../../src/paraglide/runtime.js
130
118
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -147,9 +135,6 @@ var rtlLanguages = new Set([
147
135
  var customServerStrategies = new Map;
148
136
  var customClientStrategies = new Map;
149
137
 
150
- // ../../src/components/ui/search-menu.tsx
151
- import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment2 } from "react/jsx-runtime";
152
-
153
138
  // ../../src/components/ui/sidebar-layout.tsx
154
139
  import { Link as Link2, Outlet, useRouterState } from "@tanstack/react-router";
155
140
  import { Option, Schema as Schema2 } from "effect";
@@ -167,30 +152,22 @@ import * as React from "react";
167
152
 
168
153
  // ../../src/components/ui/input.tsx
169
154
  import { Input as InputPrimitive } from "@base-ui/react/input";
170
- import { jsx as jsx10 } from "react/jsx-runtime";
171
155
 
172
156
  // ../../src/components/ui/separator.tsx
173
157
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
174
- import { jsx as jsx11 } from "react/jsx-runtime";
175
158
 
176
159
  // ../../src/components/ui/sheet.tsx
177
160
  import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
178
161
  import { XIcon as XIcon2 } from "lucide-react";
179
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
180
162
  "use client";
181
163
 
182
- // ../../src/components/ui/skeleton.tsx
183
- import { jsx as jsx13 } from "react/jsx-runtime";
184
-
185
164
  // ../../src/components/ui/tooltip.tsx
186
165
  import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
187
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
188
166
  "use client";
189
167
 
190
168
  // ../../src/components/ui/sidebar.tsx
191
169
  import { PanelLeftIcon } from "lucide-react";
192
170
  import { Schema } from "effect";
193
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
194
171
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
195
172
  var SidebarContext = React2.createContext(null);
196
173
  var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
@@ -212,20 +189,19 @@ var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-
212
189
  });
213
190
 
214
191
  // ../../src/components/ui/sidebar-layout.tsx
215
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
216
192
  var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
217
193
  identifier: "SidebarOpenCookie"
218
194
  });
219
195
 
220
196
  // ../../src/lib/docs.tsx
221
- import { jsx as jsx17, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
197
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
222
198
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
223
199
  var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
224
200
  identifier: "SidebarOpenCookie"
225
201
  });
226
202
  var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME]);
227
203
  var makeIcon = (name, paths) => {
228
- const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx17("svg", {
204
+ const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx("svg", {
229
205
  "aria-hidden": "true",
230
206
  fill: "none",
231
207
  height: size,
@@ -242,73 +218,73 @@ var makeIcon = (name, paths) => {
242
218
  Icon.displayName = name;
243
219
  return Icon;
244
220
  };
245
- var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
221
+ var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs(Fragment, {
246
222
  children: [
247
- /* @__PURE__ */ jsx17("path", {
223
+ /* @__PURE__ */ jsx("path", {
248
224
  d: "m12 19-7-7 7-7"
249
225
  }),
250
- /* @__PURE__ */ jsx17("path", {
226
+ /* @__PURE__ */ jsx("path", {
251
227
  d: "M19 12H5"
252
228
  })
253
229
  ]
254
230
  }));
255
- var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
231
+ var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs(Fragment, {
256
232
  children: [
257
- /* @__PURE__ */ jsx17("path", {
233
+ /* @__PURE__ */ jsx("path", {
258
234
  d: "M5 12h14"
259
235
  }),
260
- /* @__PURE__ */ jsx17("path", {
236
+ /* @__PURE__ */ jsx("path", {
261
237
  d: "m12 5 7 7-7 7"
262
238
  })
263
239
  ]
264
240
  }));
265
- var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
241
+ var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs(Fragment, {
266
242
  children: [
267
- /* @__PURE__ */ jsx17("path", {
243
+ /* @__PURE__ */ jsx("path", {
268
244
  d: "M12 7v14"
269
245
  }),
270
- /* @__PURE__ */ jsx17("path", {
246
+ /* @__PURE__ */ jsx("path", {
271
247
  d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
272
248
  })
273
249
  ]
274
250
  }));
275
- var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx17("path", {
251
+ var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx("path", {
276
252
  d: "m6 9 6 6 6-6"
277
253
  }));
278
- var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
254
+ var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs(Fragment, {
279
255
  children: [
280
- /* @__PURE__ */ jsx17("path", {
256
+ /* @__PURE__ */ jsx("path", {
281
257
  d: "M15 3h6v6"
282
258
  }),
283
- /* @__PURE__ */ jsx17("path", {
259
+ /* @__PURE__ */ jsx("path", {
284
260
  d: "M10 14 21 3"
285
261
  }),
286
- /* @__PURE__ */ jsx17("path", {
262
+ /* @__PURE__ */ jsx("path", {
287
263
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
288
264
  })
289
265
  ]
290
266
  }));
291
- var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs11(Fragment3, {
267
+ var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs(Fragment, {
292
268
  children: [
293
- /* @__PURE__ */ jsx17("line", {
269
+ /* @__PURE__ */ jsx("line", {
294
270
  x1: "4",
295
271
  x2: "20",
296
272
  y1: "9",
297
273
  y2: "9"
298
274
  }),
299
- /* @__PURE__ */ jsx17("line", {
275
+ /* @__PURE__ */ jsx("line", {
300
276
  x1: "4",
301
277
  x2: "20",
302
278
  y1: "15",
303
279
  y2: "15"
304
280
  }),
305
- /* @__PURE__ */ jsx17("line", {
281
+ /* @__PURE__ */ jsx("line", {
306
282
  x1: "10",
307
283
  x2: "8",
308
284
  y1: "3",
309
285
  y2: "21"
310
286
  }),
311
- /* @__PURE__ */ jsx17("line", {
287
+ /* @__PURE__ */ jsx("line", {
312
288
  x1: "16",
313
289
  x2: "14",
314
290
  y1: "3",
@@ -493,7 +469,7 @@ var loadMdxDocsDirectory = async (root) => {
493
469
  return pages;
494
470
  };
495
471
  export {
496
- loadMdxDocsDirectory,
472
+ compileDocsMarkdown,
497
473
  compileMdxDocsPage,
498
- compileDocsMarkdown
474
+ loadMdxDocsDirectory
499
475
  };
@@ -16,7 +16,6 @@ import {
16
16
 
17
17
  // ../../src/components/ui/app-brand.tsx
18
18
  import { Link } from "@tanstack/react-router";
19
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
20
19
 
21
20
  // ../../src/components/ui/badge.tsx
22
21
  import { mergeProps } from "@base-ui/react/merge-props";
@@ -47,7 +46,6 @@ var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center
47
46
  // ../../src/components/ui/button.tsx
48
47
  import { Button as ButtonPrimitive } from "@base-ui/react/button";
49
48
  import { cva as cva2 } from "class-variance-authority";
50
- import { jsx as jsx2 } from "react/jsx-runtime";
51
49
  var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
52
50
  variants: {
53
51
  variant: {
@@ -78,14 +76,12 @@ var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justif
78
76
  // ../../src/components/ui/copy-button.tsx
79
77
  import { Check, Copy, TriangleAlert } from "lucide-react";
80
78
  import { useEffect, useRef, useState } from "react";
81
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
82
79
 
83
80
  // ../../src/components/ui/code-block.tsx
84
81
  import { highlight } from "@tanstack/highlight";
85
82
  import { createThemeCss } from "@tanstack/highlight/theme";
86
83
  import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
87
84
  import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
88
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
89
85
  var themeCss = `${createThemeCss({
90
86
  light: githubLightTheme,
91
87
  dark: githubDarkTheme,
@@ -103,12 +99,8 @@ var themeCss = `${createThemeCss({
103
99
  }
104
100
  [data-code-theme] pre.th-code code { font: inherit; }`;
105
101
 
106
- // ../../src/lib/markdown/content.tsx
107
- import { jsx as jsx5 } from "react/jsx-runtime";
108
-
109
102
  // ../../src/components/ui/collapsible.tsx
110
103
  import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
111
- import { jsx as jsx6 } from "react/jsx-runtime";
112
104
 
113
105
  // ../../src/components/ui/search-menu.tsx
114
106
  import { SearchIcon as SearchIcon2 } from "lucide-react";
@@ -121,10 +113,6 @@ import { SearchIcon } from "lucide-react";
121
113
  // ../../src/components/ui/dialog.tsx
122
114
  import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
123
115
  import { XIcon } from "lucide-react";
124
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
125
-
126
- // ../../src/components/ui/command.tsx
127
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
128
116
 
129
117
  // ../../src/paraglide/runtime.js
130
118
  import"@inlang/paraglide-js/urlpattern-polyfill";
@@ -147,9 +135,6 @@ var rtlLanguages = new Set([
147
135
  var customServerStrategies = new Map;
148
136
  var customClientStrategies = new Map;
149
137
 
150
- // ../../src/components/ui/search-menu.tsx
151
- import { jsx as jsx9, jsxs as jsxs6, Fragment as Fragment2 } from "react/jsx-runtime";
152
-
153
138
  // ../../src/components/ui/sidebar-layout.tsx
154
139
  import { Link as Link2, Outlet, useRouterState } from "@tanstack/react-router";
155
140
  import { Option, Schema as Schema2 } from "effect";
@@ -167,30 +152,22 @@ import * as React from "react";
167
152
 
168
153
  // ../../src/components/ui/input.tsx
169
154
  import { Input as InputPrimitive } from "@base-ui/react/input";
170
- import { jsx as jsx10 } from "react/jsx-runtime";
171
155
 
172
156
  // ../../src/components/ui/separator.tsx
173
157
  import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
174
- import { jsx as jsx11 } from "react/jsx-runtime";
175
158
 
176
159
  // ../../src/components/ui/sheet.tsx
177
160
  import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
178
161
  import { XIcon as XIcon2 } from "lucide-react";
179
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
180
162
  "use client";
181
163
 
182
- // ../../src/components/ui/skeleton.tsx
183
- import { jsx as jsx13 } from "react/jsx-runtime";
184
-
185
164
  // ../../src/components/ui/tooltip.tsx
186
165
  import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
187
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
188
166
  "use client";
189
167
 
190
168
  // ../../src/components/ui/sidebar.tsx
191
169
  import { PanelLeftIcon } from "lucide-react";
192
170
  import { Schema } from "effect";
193
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
194
171
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
195
172
  var SidebarContext = React2.createContext(null);
196
173
  var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate", {
@@ -212,20 +189,19 @@ var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-
212
189
  });
213
190
 
214
191
  // ../../src/components/ui/sidebar-layout.tsx
215
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
216
192
  var SidebarOpenCookie = Schema2.Literals(["true", "false"]).annotate({
217
193
  identifier: "SidebarOpenCookie"
218
194
  });
219
195
 
220
196
  // ../../src/lib/docs.tsx
221
- import { jsx as jsx17, jsxs as jsxs11, Fragment as Fragment3 } from "react/jsx-runtime";
197
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
222
198
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
223
199
  var SidebarOpenCookie2 = Schema3.Literals(["true", "false"]).annotate({
224
200
  identifier: "SidebarOpenCookie"
225
201
  });
226
202
  var getSidebarOpenCookie = createIsomorphicFn().server(() => getCookie(SIDEBAR_COOKIE_NAME)).client(() => Cookies2.parseHeader(globalThis.document?.cookie ?? "")[SIDEBAR_COOKIE_NAME]);
227
203
  var makeIcon = (name, paths) => {
228
- const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx17("svg", {
204
+ const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx("svg", {
229
205
  "aria-hidden": "true",
230
206
  fill: "none",
231
207
  height: size,
@@ -242,73 +218,73 @@ var makeIcon = (name, paths) => {
242
218
  Icon.displayName = name;
243
219
  return Icon;
244
220
  };
245
- var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs11(Fragment3, {
221
+ var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs(Fragment, {
246
222
  children: [
247
- /* @__PURE__ */ jsx17("path", {
223
+ /* @__PURE__ */ jsx("path", {
248
224
  d: "m12 19-7-7 7-7"
249
225
  }),
250
- /* @__PURE__ */ jsx17("path", {
226
+ /* @__PURE__ */ jsx("path", {
251
227
  d: "M19 12H5"
252
228
  })
253
229
  ]
254
230
  }));
255
- var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs11(Fragment3, {
231
+ var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs(Fragment, {
256
232
  children: [
257
- /* @__PURE__ */ jsx17("path", {
233
+ /* @__PURE__ */ jsx("path", {
258
234
  d: "M5 12h14"
259
235
  }),
260
- /* @__PURE__ */ jsx17("path", {
236
+ /* @__PURE__ */ jsx("path", {
261
237
  d: "m12 5 7 7-7 7"
262
238
  })
263
239
  ]
264
240
  }));
265
- var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs11(Fragment3, {
241
+ var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs(Fragment, {
266
242
  children: [
267
- /* @__PURE__ */ jsx17("path", {
243
+ /* @__PURE__ */ jsx("path", {
268
244
  d: "M12 7v14"
269
245
  }),
270
- /* @__PURE__ */ jsx17("path", {
246
+ /* @__PURE__ */ jsx("path", {
271
247
  d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4Z"
272
248
  })
273
249
  ]
274
250
  }));
275
- var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx17("path", {
251
+ var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx("path", {
276
252
  d: "m6 9 6 6 6-6"
277
253
  }));
278
- var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs11(Fragment3, {
254
+ var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs(Fragment, {
279
255
  children: [
280
- /* @__PURE__ */ jsx17("path", {
256
+ /* @__PURE__ */ jsx("path", {
281
257
  d: "M15 3h6v6"
282
258
  }),
283
- /* @__PURE__ */ jsx17("path", {
259
+ /* @__PURE__ */ jsx("path", {
284
260
  d: "M10 14 21 3"
285
261
  }),
286
- /* @__PURE__ */ jsx17("path", {
262
+ /* @__PURE__ */ jsx("path", {
287
263
  d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
288
264
  })
289
265
  ]
290
266
  }));
291
- var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs11(Fragment3, {
267
+ var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs(Fragment, {
292
268
  children: [
293
- /* @__PURE__ */ jsx17("line", {
269
+ /* @__PURE__ */ jsx("line", {
294
270
  x1: "4",
295
271
  x2: "20",
296
272
  y1: "9",
297
273
  y2: "9"
298
274
  }),
299
- /* @__PURE__ */ jsx17("line", {
275
+ /* @__PURE__ */ jsx("line", {
300
276
  x1: "4",
301
277
  x2: "20",
302
278
  y1: "15",
303
279
  y2: "15"
304
280
  }),
305
- /* @__PURE__ */ jsx17("line", {
281
+ /* @__PURE__ */ jsx("line", {
306
282
  x1: "10",
307
283
  x2: "8",
308
284
  y1: "3",
309
285
  y2: "21"
310
286
  }),
311
- /* @__PURE__ */ jsx17("line", {
287
+ /* @__PURE__ */ jsx("line", {
312
288
  x1: "16",
313
289
  x2: "14",
314
290
  y1: "3",
@@ -422,8 +398,8 @@ var DocumentationToolkitLayer = ({
422
398
  readDocumentation: ({ paths }) => readDocumentation({ docs, locale, paths })
423
399
  });
424
400
  export {
425
- searchDocumentation,
426
- readDocumentation,
401
+ DocumentationToolkit,
427
402
  DocumentationToolkitLayer,
428
- DocumentationToolkit
403
+ readDocumentation,
404
+ searchDocumentation
429
405
  };
@@ -754,12 +754,12 @@ var runHttpApiCli = (layer, args = process.argv.slice(2)) => {
754
754
  }));
755
755
  };
756
756
  export {
757
- toHttpApiCliName,
758
- runHttpApiCli,
759
- printHttpApiCliResult,
760
- makeHttpApiCliCommand,
761
- httpApiCliEnvironmentLayer,
762
- httpApiCli,
757
+ HttpApiCli,
763
758
  formatHttpApiCliCause,
764
- HttpApiCli
759
+ httpApiCli,
760
+ httpApiCliEnvironmentLayer,
761
+ makeHttpApiCliCommand,
762
+ printHttpApiCliResult,
763
+ runHttpApiCli,
764
+ toHttpApiCliName
765
765
  };
@@ -105,8 +105,8 @@ class ApiClient extends Context.Service()("ApiClient") {
105
105
  }));
106
106
  }
107
107
  export {
108
- makeHttpApiOperationResultEncoder,
109
- encodeHttpApiOperationResult,
108
+ ApiClient,
110
109
  HttpApiOperationResult,
111
- ApiClient
110
+ encodeHttpApiOperationResult,
111
+ makeHttpApiOperationResultEncoder
112
112
  };
@@ -271,16 +271,16 @@ class HttpApiSpec extends Context.Service()("HttpApiSpec", {
271
271
  static layer = (config) => Layer.effect(this, this.make(config));
272
272
  }
273
273
  export {
274
- toHttpError,
275
- sanitizeHttpName,
276
- parseJsonValue,
277
- parseJsonObject,
278
- httpApiToolName,
279
- httpApiToolEntries,
280
- httpApiOperations,
281
- httpApiOperationInputSchema,
282
- decodeHttpApiOperationInput,
283
- JsonObjectSchema,
274
+ HttpApiMethods,
284
275
  HttpApiSpec,
285
- HttpApiMethods
276
+ JsonObjectSchema,
277
+ decodeHttpApiOperationInput,
278
+ httpApiOperationInputSchema,
279
+ httpApiOperations,
280
+ httpApiToolEntries,
281
+ httpApiToolName,
282
+ parseJsonObject,
283
+ parseJsonValue,
284
+ sanitizeHttpName,
285
+ toHttpError
286
286
  };
@@ -471,7 +471,7 @@ var httpApiMcpServerLayer = (path) => Layer3.unwrap(Effect3.gen(function* () {
471
471
  });
472
472
  }));
473
473
  export {
474
- httpApiMcpToolsLayer,
474
+ HttpApiMcp,
475
475
  httpApiMcpServerLayer,
476
- HttpApiMcp
476
+ httpApiMcpToolsLayer
477
477
  };
@@ -434,6 +434,6 @@ var HttpApiToolkitLayer = (config) => Layer3.unwrap(buildHttpApiToolkit(config).
434
434
  }).pipe(Effect3.mapError((error) => error instanceof Error ? error.message : String(error)))
435
435
  ])))))));
436
436
  export {
437
- HttpApiToolkitLayer,
438
- HttpApiToolkit
437
+ HttpApiToolkit,
438
+ HttpApiToolkitLayer
439
439
  };
@@ -21,14 +21,24 @@ export declare const SortParamsFromString: Schema.decodeTo<Schema.$Array<Schema.
21
21
  readonly id: Schema.NonEmptyString;
22
22
  readonly direction: Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>;
23
23
  }>>, Schema.String, never, never>;
24
+ export declare const SortParams: Schema.declare<readonly {
25
+ readonly id: string;
26
+ readonly direction: "asc" | "desc";
27
+ }[], readonly {
28
+ readonly id: string;
29
+ readonly direction: "asc" | "desc";
30
+ }[]>;
24
31
  export declare const Query: Schema.Struct<{
25
32
  readonly page: Schema.withDecodingDefaultKey<Schema.Int, never>;
26
33
  readonly pageSize: Schema.withDecodingDefaultKey<Schema.Int, never>;
27
34
  readonly globalFilter: Schema.optional<Schema.String>;
28
- readonly sort: Schema.optional<Schema.$Array<Schema.Struct<{
29
- readonly id: Schema.NonEmptyString;
30
- readonly direction: Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>;
31
- }>>>;
35
+ readonly sort: Schema.optional<Schema.declare<readonly {
36
+ readonly id: string;
37
+ readonly direction: "asc" | "desc";
38
+ }[], readonly {
39
+ readonly id: string;
40
+ readonly direction: "asc" | "desc";
41
+ }[]>>;
32
42
  }>;
33
43
  export type QueryType = typeof Query.Type;
34
44
  export type QueryEncoded = typeof Query.Encoded;
@@ -40,8 +50,8 @@ export declare const PaginationMeta: Schema.Struct<{
40
50
  readonly pageCount: Schema.Int;
41
51
  }>;
42
52
  export type PaginationMetaType = typeof PaginationMeta.Type;
43
- export declare const PaginatedResponse: <A>(items: Schema.Schema<A>) => Schema.Struct<{
44
- readonly data: Schema.$Array<Schema.Schema<A>>;
53
+ export declare const PaginatedResponse: <A extends Schema.Top>(items: A) => Schema.Struct<{
54
+ readonly data: Schema.$Array<A>;
45
55
  readonly meta: Schema.Struct<{
46
56
  readonly page: Schema.Int;
47
57
  readonly pageSize: Schema.Int;
package/dist/lib/query.js CHANGED
@@ -42,6 +42,8 @@ var SortParamFromString = Schema.String.pipe(Schema.decodeTo(SortParam, SchemaTr
42
42
  }));
43
43
  var SortParamsFromString = Schema.String.pipe(Schema.decodeTo(Schema.Array(SortParam), SchemaTransformation.transformOrFail({
44
44
  decode: (sort) => {
45
+ if (sort === "")
46
+ return Effect.succeed([]);
45
47
  const parts = sort.split(",");
46
48
  const sortParams = [];
47
49
  for (const part of parts) {
@@ -65,11 +67,17 @@ var SortParamsFromString = Schema.String.pipe(Schema.decodeTo(Schema.Array(SortP
65
67
  ]
66
68
  ]
67
69
  }));
70
+ var SortParamsArray = Schema.Array(SortParam);
71
+ var SortParams = Schema.declare(Schema.is(SortParamsArray), {
72
+ identifier: "SortParams",
73
+ toCodec: () => Schema.link()(SortParamsArray, SchemaTransformation.passthrough()),
74
+ toCodecStringTree: () => Schema.link()(SortParamsFromString, SchemaTransformation.passthrough())
75
+ });
68
76
  var Query = Schema.Struct({
69
77
  page: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)).pipe(Schema.withDecodingDefaultKey(Effect.succeed(0))),
70
78
  pageSize: Schema.Int.check(Schema.isBetween({ minimum: 1, maximum: 100 })).pipe(Schema.withDecodingDefaultKey(Effect.succeed(10))),
71
79
  globalFilter: Schema.optional(Schema.String),
72
- sort: Schema.optional(Schema.Array(SortParam))
80
+ sort: Schema.optional(SortParams)
73
81
  }).annotate({
74
82
  identifier: "Query",
75
83
  title: "Query",
@@ -103,12 +111,13 @@ var PaginatedResponse = (items) => Schema.Struct({
103
111
  meta: PaginationMeta
104
112
  });
105
113
  export {
106
- SortParamsFromString,
107
- SortParamFromString,
108
- SortParam,
109
- SortDirection,
110
- QueryStandard,
111
- Query,
114
+ PaginatedResponse,
112
115
  PaginationMeta,
113
- PaginatedResponse
116
+ Query,
117
+ QueryStandard,
118
+ SortDirection,
119
+ SortParam,
120
+ SortParamFromString,
121
+ SortParams,
122
+ SortParamsFromString
114
123
  };
package/dist/lib/seo.js CHANGED
@@ -111,6 +111,6 @@ var createSeo = (defaults) => (options) => seo({
111
111
  ...options
112
112
  });
113
113
  export {
114
- seo,
115
- createSeo
114
+ createSeo,
115
+ seo
116
116
  };
@@ -268,11 +268,11 @@ var WebFetchToolkitLayer = (options = {}) => {
268
268
  }));
269
269
  };
270
270
  export {
271
- defaultWebFetchToolkitOptions,
272
- WebFetchToolkitOptions,
273
- WebFetchToolkitLayer,
274
- WebFetchToolkit,
275
- WebFetchResponse,
271
+ WebFetchFailure,
276
272
  WebFetchRequest,
277
- WebFetchFailure
273
+ WebFetchResponse,
274
+ WebFetchToolkit,
275
+ WebFetchToolkitLayer,
276
+ WebFetchToolkitOptions,
277
+ defaultWebFetchToolkitOptions
278
278
  };