@krak-stack/registry 0.1.19 → 0.1.20
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/dist/components/ui/code-block.d.ts +1 -3
- package/dist/components/ui/code-block.js +32 -60
- package/dist/components/ui/data-table.d.ts +202 -273
- package/dist/components/ui/data-table.js +1810 -2115
- package/dist/components/ui/effect-form.js +169 -170
- package/dist/components/ui/form.js +112 -113
- package/dist/components/ui/icon-input.js +40 -43
- package/dist/components/ui/menubar.d.ts +29 -0
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/sidebar-layout.js +67 -72
- package/dist/components/ui/theme-switcher.js +3 -3
- package/dist/components/ui/virtualized-combobox.js +31 -34
- package/dist/lib/{docs-core.d.ts → docs.d.ts} +135 -144
- package/dist/lib/{docs-core.js → docs.js} +597 -440
- package/dist/lib/documentation-toolkit.d.ts +19 -1
- package/dist/lib/documentation-toolkit.js +164 -66
- package/dist/lib/httpapi-cli.d.ts +5 -4
- package/dist/lib/httpapi-cli.js +256 -34
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.d.ts +8 -6
- package/dist/lib/httpapi-helpers.js +12 -12
- package/dist/lib/httpapi-mcp.js +3 -3
- package/dist/lib/httpapi-toolkit.js +3 -3
- package/dist/lib/markdown/content.d.ts +13 -0
- package/dist/lib/markdown/server.d.ts +19 -0
- package/dist/lib/query.js +6 -6
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/atom.d.ts +7 -0
- package/dist/services/agent/client/index.js +481 -304
- package/dist/services/agent/index.d.ts +16 -0
- package/dist/services/agent/index.js +102 -1
- package/dist/services/agent/schema.d.ts +28 -0
- package/dist/services/agent/schema.js +15 -4
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +5 -5
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +7 -7
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +6 -38
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
2
|
import { Tool, Toolkit } from "effect/unstable/ai";
|
|
3
|
-
import { type DocsCatalog, type DocsLocale } from "./docs
|
|
3
|
+
import { type DocsCatalog, type DocsLocale } from "./docs.js";
|
|
4
4
|
export declare const DocumentationToolkit: Toolkit.Toolkit<{
|
|
5
5
|
readonly readDocumentation: Tool.Tool<"readDocumentation", {
|
|
6
6
|
readonly parameters: Schema.Struct<{
|
|
@@ -20,11 +20,17 @@ export declare const DocumentationToolkit: Toolkit.Toolkit<{
|
|
|
20
20
|
readonly createdAt: Schema.optional<Schema.String>;
|
|
21
21
|
readonly updatedAt: Schema.optional<Schema.String>;
|
|
22
22
|
readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
23
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
24
|
+
readonly codeBlocks: Schema.$Array<Schema.Struct<{
|
|
25
|
+
readonly code: Schema.String;
|
|
26
|
+
readonly language: Schema.String;
|
|
27
|
+
}>>;
|
|
23
28
|
readonly headings: Schema.$Array<Schema.Struct<{
|
|
24
29
|
readonly depth: Schema.Literals<readonly [2, 3]>;
|
|
25
30
|
readonly id: Schema.String;
|
|
26
31
|
readonly title: Schema.String;
|
|
27
32
|
}>>;
|
|
33
|
+
readonly html: Schema.String;
|
|
28
34
|
readonly searchText: Schema.String;
|
|
29
35
|
readonly sourceFile: Schema.String;
|
|
30
36
|
readonly source: Schema.String;
|
|
@@ -76,11 +82,17 @@ export declare const readDocumentation: (args_0: {
|
|
|
76
82
|
readonly createdAt?: string | undefined;
|
|
77
83
|
readonly updatedAt?: string | undefined;
|
|
78
84
|
readonly legacySlugs?: readonly string[] | undefined;
|
|
85
|
+
readonly tags?: readonly string[] | undefined;
|
|
86
|
+
readonly codeBlocks: readonly Schema.Struct.ReadonlySide<{
|
|
87
|
+
readonly code: Schema.String;
|
|
88
|
+
readonly language: Schema.String;
|
|
89
|
+
}, "Type">[];
|
|
79
90
|
readonly headings: readonly Schema.Struct.ReadonlySide<{
|
|
80
91
|
readonly depth: Schema.Literals<readonly [2, 3]>;
|
|
81
92
|
readonly id: Schema.String;
|
|
82
93
|
readonly title: Schema.String;
|
|
83
94
|
}, "Type">[];
|
|
95
|
+
readonly html: string;
|
|
84
96
|
readonly searchText: string;
|
|
85
97
|
readonly sourceFile: string;
|
|
86
98
|
readonly source: string;
|
|
@@ -110,11 +122,17 @@ export declare const DocumentationToolkitLayer: ({ docs, locale, }: Documentatio
|
|
|
110
122
|
readonly createdAt: Schema.optional<Schema.String>;
|
|
111
123
|
readonly updatedAt: Schema.optional<Schema.String>;
|
|
112
124
|
readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
125
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
126
|
+
readonly codeBlocks: Schema.$Array<Schema.Struct<{
|
|
127
|
+
readonly code: Schema.String;
|
|
128
|
+
readonly language: Schema.String;
|
|
129
|
+
}>>;
|
|
113
130
|
readonly headings: Schema.$Array<Schema.Struct<{
|
|
114
131
|
readonly depth: Schema.Literals<readonly [2, 3]>;
|
|
115
132
|
readonly id: Schema.String;
|
|
116
133
|
readonly title: Schema.String;
|
|
117
134
|
}>>;
|
|
135
|
+
readonly html: Schema.String;
|
|
118
136
|
readonly searchText: Schema.String;
|
|
119
137
|
readonly sourceFile: Schema.String;
|
|
120
138
|
readonly source: Schema.String;
|
|
@@ -2,44 +2,48 @@
|
|
|
2
2
|
import { Effect, Schema as Schema4 } from "effect";
|
|
3
3
|
import { Tool, Toolkit } from "effect/unstable/ai";
|
|
4
4
|
|
|
5
|
-
// ../../src/lib/docs
|
|
6
|
-
import { icons as lucideIcons } from "@iconify-json/lucide";
|
|
7
|
-
import { Icon, addCollection } from "@iconify/react";
|
|
8
|
-
import { code } from "@streamdown/code";
|
|
9
|
-
import { Link as Link3, useNavigate } from "@tanstack/react-router";
|
|
5
|
+
// ../../src/lib/docs.tsx
|
|
10
6
|
import { Schema as Schema3 } from "effect";
|
|
11
7
|
import {
|
|
12
|
-
Children,
|
|
13
8
|
forwardRef,
|
|
14
9
|
useDeferredValue,
|
|
15
|
-
|
|
10
|
+
useEffect as useEffect5,
|
|
11
|
+
useState as useState5
|
|
16
12
|
} from "react";
|
|
17
|
-
import { Streamdown } from "streamdown";
|
|
18
|
-
import { parse } from "yaml";
|
|
19
13
|
|
|
20
14
|
// ../../src/components/ui/app-brand.tsx
|
|
21
15
|
import { Link } from "@tanstack/react-router";
|
|
22
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
23
16
|
|
|
24
|
-
// ../../src/components/ui/
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
// ../../src/components/ui/search-menu.tsx
|
|
29
|
-
import { SearchIcon as SearchIcon2 } from "lucide-react";
|
|
30
|
-
import { useCallback, useEffect, useState } from "react";
|
|
31
|
-
|
|
32
|
-
// ../../src/components/ui/button.tsx
|
|
33
|
-
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
17
|
+
// ../../src/components/ui/badge.tsx
|
|
18
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
19
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
34
20
|
import { cva } from "class-variance-authority";
|
|
35
21
|
|
|
36
22
|
// ../../src/lib/utils.ts
|
|
37
23
|
import { clsx } from "clsx";
|
|
38
24
|
import { twMerge } from "tailwind-merge";
|
|
39
25
|
|
|
26
|
+
// ../../src/components/ui/badge.tsx
|
|
27
|
+
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
28
|
+
variants: {
|
|
29
|
+
variant: {
|
|
30
|
+
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
31
|
+
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
32
|
+
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
33
|
+
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
34
|
+
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
35
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
variant: "default"
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
40
43
|
// ../../src/components/ui/button.tsx
|
|
41
|
-
import {
|
|
42
|
-
|
|
44
|
+
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
45
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
46
|
+
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", {
|
|
43
47
|
variants: {
|
|
44
48
|
variant: {
|
|
45
49
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -66,6 +70,39 @@ var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify
|
|
|
66
70
|
}
|
|
67
71
|
});
|
|
68
72
|
|
|
73
|
+
// ../../src/components/ui/copy-button.tsx
|
|
74
|
+
import { Check, Copy, TriangleAlert } from "lucide-react";
|
|
75
|
+
import { useEffect, useRef, useState } from "react";
|
|
76
|
+
|
|
77
|
+
// ../../src/components/ui/code-block.tsx
|
|
78
|
+
import { highlight } from "@tanstack/highlight";
|
|
79
|
+
import { createThemeCss } from "@tanstack/highlight/theme";
|
|
80
|
+
import { githubDarkTheme } from "@tanstack/highlight/themes/github-dark";
|
|
81
|
+
import { githubLightTheme } from "@tanstack/highlight/themes/github-light";
|
|
82
|
+
var themeCss = `${createThemeCss({
|
|
83
|
+
light: githubLightTheme,
|
|
84
|
+
dark: githubDarkTheme,
|
|
85
|
+
lightSelector: "[data-code-theme]",
|
|
86
|
+
darkSelector: ".dark [data-code-theme]",
|
|
87
|
+
codeBlockSelector: "[data-code-theme] pre.th-code",
|
|
88
|
+
lineNumbersSelector: "[data-code-theme] .th-code--line-numbers"
|
|
89
|
+
})}
|
|
90
|
+
[data-code-theme] pre.th-code {
|
|
91
|
+
margin: 0;
|
|
92
|
+
overflow: visible;
|
|
93
|
+
background: transparent;
|
|
94
|
+
font: inherit;
|
|
95
|
+
color: inherit;
|
|
96
|
+
}
|
|
97
|
+
[data-code-theme] pre.th-code code { font: inherit; }`;
|
|
98
|
+
|
|
99
|
+
// ../../src/components/ui/collapsible.tsx
|
|
100
|
+
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
101
|
+
|
|
102
|
+
// ../../src/components/ui/search-menu.tsx
|
|
103
|
+
import { SearchIcon as SearchIcon2 } from "lucide-react";
|
|
104
|
+
import { useCallback, useEffect as useEffect2, useState as useState2 } from "react";
|
|
105
|
+
|
|
69
106
|
// ../../src/components/ui/command.tsx
|
|
70
107
|
import { Command as CommandPrimitive } from "cmdk";
|
|
71
108
|
import { SearchIcon } from "lucide-react";
|
|
@@ -73,10 +110,6 @@ import { SearchIcon } from "lucide-react";
|
|
|
73
110
|
// ../../src/components/ui/dialog.tsx
|
|
74
111
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
75
112
|
import { XIcon } from "lucide-react";
|
|
76
|
-
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
77
|
-
|
|
78
|
-
// ../../src/components/ui/command.tsx
|
|
79
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
80
113
|
|
|
81
114
|
// ../../src/paraglide/runtime.js
|
|
82
115
|
import"@inlang/paraglide-js/urlpattern-polyfill";
|
|
@@ -99,9 +132,6 @@ var rtlLanguages = new Set([
|
|
|
99
132
|
var customServerStrategies = new Map;
|
|
100
133
|
var customClientStrategies = new Map;
|
|
101
134
|
|
|
102
|
-
// ../../src/components/ui/search-menu.tsx
|
|
103
|
-
import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
104
|
-
|
|
105
135
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
106
136
|
import { useAtom } from "@effect/atom-react";
|
|
107
137
|
import { BrowserKeyValueStore } from "@effect/platform-browser";
|
|
@@ -109,26 +139,6 @@ import { Link as Link2, Outlet, useRouterState } from "@tanstack/react-router";
|
|
|
109
139
|
import { Schema as Schema2 } from "effect";
|
|
110
140
|
import { Atom } from "effect/unstable/reactivity";
|
|
111
141
|
|
|
112
|
-
// ../../src/components/ui/badge.tsx
|
|
113
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
114
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
115
|
-
import { cva as cva2 } from "class-variance-authority";
|
|
116
|
-
var badgeVariants = cva2("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
117
|
-
variants: {
|
|
118
|
-
variant: {
|
|
119
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
120
|
-
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
121
|
-
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
122
|
-
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
123
|
-
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
124
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
defaultVariants: {
|
|
128
|
-
variant: "default"
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
|
|
132
142
|
// ../../src/components/ui/sidebar.tsx
|
|
133
143
|
import * as React2 from "react";
|
|
134
144
|
import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
|
|
@@ -140,30 +150,22 @@ import * as React from "react";
|
|
|
140
150
|
|
|
141
151
|
// ../../src/components/ui/input.tsx
|
|
142
152
|
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
143
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
144
153
|
|
|
145
154
|
// ../../src/components/ui/separator.tsx
|
|
146
155
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
147
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
148
156
|
|
|
149
157
|
// ../../src/components/ui/sheet.tsx
|
|
150
158
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
151
159
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
152
|
-
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
153
160
|
"use client";
|
|
154
161
|
|
|
155
|
-
// ../../src/components/ui/skeleton.tsx
|
|
156
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
157
|
-
|
|
158
162
|
// ../../src/components/ui/tooltip.tsx
|
|
159
163
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
160
|
-
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
161
164
|
"use client";
|
|
162
165
|
|
|
163
166
|
// ../../src/components/ui/sidebar.tsx
|
|
164
167
|
import { PanelLeftIcon } from "lucide-react";
|
|
165
168
|
import { Schema } from "effect";
|
|
166
|
-
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
167
169
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
168
170
|
var SidebarContext = React2.createContext(null);
|
|
169
171
|
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", {
|
|
@@ -185,7 +187,6 @@ var sidebarMenuButtonVariants = cva3("peer/menu-button group/menu-button flex w-
|
|
|
185
187
|
});
|
|
186
188
|
|
|
187
189
|
// ../../src/components/ui/sidebar-layout.tsx
|
|
188
|
-
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
189
190
|
var sidebarStorageRuntime = Atom.runtime(BrowserKeyValueStore.layerLocalStorage);
|
|
190
191
|
var sidebarOpenAtom = Atom.kvs({
|
|
191
192
|
runtime: sidebarStorageRuntime,
|
|
@@ -194,9 +195,100 @@ var sidebarOpenAtom = Atom.kvs({
|
|
|
194
195
|
defaultValue: () => true
|
|
195
196
|
});
|
|
196
197
|
|
|
197
|
-
// ../../src/lib/docs
|
|
198
|
-
import { jsx
|
|
199
|
-
|
|
198
|
+
// ../../src/lib/docs.tsx
|
|
199
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
200
|
+
var makeIcon = (name, paths) => {
|
|
201
|
+
const Icon = forwardRef(({ absoluteStrokeWidth: _absoluteStrokeWidth, size = 24, ...props }, ref) => /* @__PURE__ */ jsx("svg", {
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
fill: "none",
|
|
204
|
+
height: size,
|
|
205
|
+
ref,
|
|
206
|
+
stroke: "currentColor",
|
|
207
|
+
strokeLinecap: "round",
|
|
208
|
+
strokeLinejoin: "round",
|
|
209
|
+
strokeWidth: "2",
|
|
210
|
+
viewBox: "0 0 24 24",
|
|
211
|
+
width: size,
|
|
212
|
+
...props,
|
|
213
|
+
children: paths
|
|
214
|
+
}));
|
|
215
|
+
Icon.displayName = name;
|
|
216
|
+
return Icon;
|
|
217
|
+
};
|
|
218
|
+
var ArrowLeft = makeIcon("ArrowLeft", /* @__PURE__ */ jsxs(Fragment, {
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ jsx("path", {
|
|
221
|
+
d: "m12 19-7-7 7-7"
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ jsx("path", {
|
|
224
|
+
d: "M19 12H5"
|
|
225
|
+
})
|
|
226
|
+
]
|
|
227
|
+
}));
|
|
228
|
+
var ArrowRight = makeIcon("ArrowRight", /* @__PURE__ */ jsxs(Fragment, {
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ jsx("path", {
|
|
231
|
+
d: "M5 12h14"
|
|
232
|
+
}),
|
|
233
|
+
/* @__PURE__ */ jsx("path", {
|
|
234
|
+
d: "m12 5 7 7-7 7"
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
}));
|
|
238
|
+
var BookOpen = makeIcon("BookOpen", /* @__PURE__ */ jsxs(Fragment, {
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ jsx("path", {
|
|
241
|
+
d: "M12 7v14"
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ jsx("path", {
|
|
244
|
+
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"
|
|
245
|
+
})
|
|
246
|
+
]
|
|
247
|
+
}));
|
|
248
|
+
var ChevronDown = makeIcon("ChevronDown", /* @__PURE__ */ jsx("path", {
|
|
249
|
+
d: "m6 9 6 6 6-6"
|
|
250
|
+
}));
|
|
251
|
+
var ExternalLink = makeIcon("ExternalLink", /* @__PURE__ */ jsxs(Fragment, {
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ jsx("path", {
|
|
254
|
+
d: "M15 3h6v6"
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ jsx("path", {
|
|
257
|
+
d: "M10 14 21 3"
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ jsx("path", {
|
|
260
|
+
d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
261
|
+
})
|
|
262
|
+
]
|
|
263
|
+
}));
|
|
264
|
+
var Hash = makeIcon("Hash", /* @__PURE__ */ jsxs(Fragment, {
|
|
265
|
+
children: [
|
|
266
|
+
/* @__PURE__ */ jsx("line", {
|
|
267
|
+
x1: "4",
|
|
268
|
+
x2: "20",
|
|
269
|
+
y1: "9",
|
|
270
|
+
y2: "9"
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ jsx("line", {
|
|
273
|
+
x1: "4",
|
|
274
|
+
x2: "20",
|
|
275
|
+
y1: "15",
|
|
276
|
+
y2: "15"
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ jsx("line", {
|
|
279
|
+
x1: "10",
|
|
280
|
+
x2: "8",
|
|
281
|
+
y1: "3",
|
|
282
|
+
y2: "21"
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ jsx("line", {
|
|
285
|
+
x1: "16",
|
|
286
|
+
x2: "14",
|
|
287
|
+
y1: "3",
|
|
288
|
+
y2: "21"
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
}));
|
|
200
292
|
var DocsSection = Schema3.String.annotate({
|
|
201
293
|
identifier: "DocsSection"
|
|
202
294
|
});
|
|
@@ -220,21 +312,27 @@ var DocsFrontmatter = Schema3.Struct({
|
|
|
220
312
|
type: DocsPageType,
|
|
221
313
|
createdAt: Schema3.optional(DocsDate),
|
|
222
314
|
updatedAt: Schema3.optional(DocsDate),
|
|
223
|
-
legacySlugs: Schema3.optional(Schema3.Array(Schema3.String))
|
|
315
|
+
legacySlugs: Schema3.optional(Schema3.Array(Schema3.String)),
|
|
316
|
+
tags: Schema3.optional(Schema3.Array(Schema3.NonEmptyString))
|
|
224
317
|
}).annotate({ identifier: "DocsFrontmatter" });
|
|
225
318
|
var DocsHeadingSchema = Schema3.Struct({
|
|
226
319
|
depth: Schema3.Literals([2, 3]),
|
|
227
320
|
id: Schema3.String,
|
|
228
321
|
title: Schema3.String
|
|
229
322
|
}).annotate({ identifier: "DocsHeading" });
|
|
323
|
+
var DocsCodeBlockSchema = Schema3.Struct({
|
|
324
|
+
code: Schema3.String,
|
|
325
|
+
language: Schema3.String
|
|
326
|
+
}).annotate({ identifier: "DocsCodeBlock" });
|
|
230
327
|
var DocsPageSchema = Schema3.Struct({
|
|
231
328
|
...DocsFrontmatter.fields,
|
|
329
|
+
codeBlocks: Schema3.Array(DocsCodeBlockSchema),
|
|
232
330
|
headings: Schema3.Array(DocsHeadingSchema),
|
|
331
|
+
html: Schema3.String,
|
|
233
332
|
searchText: Schema3.String,
|
|
234
333
|
sourceFile: Schema3.String,
|
|
235
334
|
source: Schema3.String
|
|
236
335
|
}).annotate({ identifier: "DocsPage" });
|
|
237
|
-
var iconComponents = new Map;
|
|
238
336
|
var EmptyIcon = forwardRef(() => null);
|
|
239
337
|
|
|
240
338
|
// ../../src/lib/documentation-toolkit.ts
|
|
@@ -298,8 +396,8 @@ var DocumentationToolkitLayer = ({
|
|
|
298
396
|
readDocumentation: ({ paths }) => readDocumentation({ docs, locale, paths })
|
|
299
397
|
});
|
|
300
398
|
export {
|
|
301
|
-
|
|
302
|
-
readDocumentation,
|
|
399
|
+
DocumentationToolkit,
|
|
303
400
|
DocumentationToolkitLayer,
|
|
304
|
-
|
|
401
|
+
readDocumentation,
|
|
402
|
+
searchDocumentation
|
|
305
403
|
};
|
|
@@ -10,15 +10,16 @@ declare const HttpApiCli_base: Context.ServiceClass<HttpApiCli, "HttpApiCli", {
|
|
|
10
10
|
readonly make: () => Effect.Effect<{
|
|
11
11
|
command: Command.Command<string, {}, {}, unknown, never>;
|
|
12
12
|
run: (args: ReadonlyArray<string>) => Effect.Effect<void, unknown, Command.Environment>;
|
|
13
|
-
},
|
|
13
|
+
}, Error, ApiClient | HttpApiSpec>;
|
|
14
14
|
};
|
|
15
15
|
export declare class HttpApiCli extends HttpApiCli_base {
|
|
16
|
-
static readonly layer: Layer.Layer<HttpApiCli,
|
|
16
|
+
static readonly layer: Layer.Layer<HttpApiCli, Error, ApiClient | HttpApiSpec>;
|
|
17
17
|
}
|
|
18
|
+
export declare const toHttpApiCliName: (value: string) => string;
|
|
18
19
|
export declare const printHttpApiCliResult: (response: unknown, operation: HttpApiOperationEntry, client: ApiClientService) => Effect.Effect<void, unknown, never>;
|
|
19
|
-
export declare const makeHttpApiCliCommand: () => Effect.Effect<Command.Command<string, {}, {}, unknown, never>,
|
|
20
|
+
export declare const makeHttpApiCliCommand: () => Effect.Effect<Command.Command<string, {}, {}, unknown, never>, Error, ApiClient | HttpApiSpec>;
|
|
20
21
|
export declare const httpApiCliEnvironmentLayer: (args: ReadonlyArray<string>) => Layer.Layer<ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | Terminal.Terminal, never, never>;
|
|
21
22
|
export declare const httpApiCli: (args?: string[]) => Effect.Effect<void, unknown, HttpApiCli | Command.Environment>;
|
|
22
|
-
export declare const formatHttpApiCliCause:
|
|
23
|
+
export declare const formatHttpApiCliCause: (cause: Cause.Cause<unknown>) => string;
|
|
23
24
|
export declare const runHttpApiCli: <E>(layer: Layer.Layer<HttpApiCli, E>, args?: string[]) => void;
|
|
24
25
|
export {};
|