@krak-stack/registry 0.1.2 → 0.1.4

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 (50) hide show
  1. package/README.md +17 -1
  2. package/dist/components/ui/alert.d.ts +10 -0
  3. package/dist/components/ui/app-brand.js +20 -20
  4. package/dist/components/ui/bubble.d.ts +16 -0
  5. package/dist/components/ui/code-block.js +38 -38
  6. package/dist/components/ui/collapsible.d.ts +5 -0
  7. package/dist/components/ui/copy-button.js +16 -16
  8. package/dist/components/ui/data-table.js +687 -687
  9. package/dist/components/ui/editing-locale-switcher.js +54 -54
  10. package/dist/components/ui/effect-form.js +490 -490
  11. package/dist/components/ui/empty.d.ts +11 -0
  12. package/dist/components/ui/file-picker.js +96 -96
  13. package/dist/components/ui/form.js +418 -418
  14. package/dist/components/ui/google-map.js +27 -27
  15. package/dist/components/ui/icon-input.js +93 -93
  16. package/dist/components/ui/loading.js +5 -5
  17. package/dist/components/ui/locale-switcher.js +48 -48
  18. package/dist/components/ui/marker.d.ts +10 -0
  19. package/dist/components/ui/message-scroller.d.ts +10 -0
  20. package/dist/components/ui/message.d.ts +10 -0
  21. package/dist/components/ui/pagination.js +92 -92
  22. package/dist/components/ui/search-menu.js +93 -93
  23. package/dist/components/ui/sidebar-layout.js +156 -156
  24. package/dist/components/ui/stats-card.js +28 -28
  25. package/dist/components/ui/theme-switcher.js +64 -64
  26. package/dist/components/ui/virtualized-combobox.js +66 -66
  27. package/dist/lib/docs-ai.d.ts +136 -0
  28. package/dist/lib/docs-ai.js +310 -0
  29. package/dist/lib/docs-core.d.ts +681 -0
  30. package/dist/lib/docs-core.js +2571 -0
  31. package/dist/lib/httpapi-ai.d.ts +54 -0
  32. package/dist/lib/httpapi-ai.js +361 -0
  33. package/dist/lib/httpapi-cli.d.ts +22 -0
  34. package/dist/lib/httpapi-cli.js +412 -0
  35. package/dist/lib/httpapi-client.d.ts +20 -0
  36. package/dist/lib/httpapi-client.js +50 -0
  37. package/dist/lib/httpapi-helpers.d.ts +105 -0
  38. package/dist/lib/httpapi-helpers.js +237 -0
  39. package/dist/lib/httpapi-mcp.d.ts +20 -0
  40. package/dist/lib/httpapi-mcp.js +366 -0
  41. package/dist/lib/query.js +128 -0
  42. package/dist/services/agent/client/atom.d.ts +56 -0
  43. package/dist/services/agent/client/index.d.ts +2 -0
  44. package/dist/services/agent/client/index.js +2239 -0
  45. package/dist/services/agent/client/widget.d.ts +52 -0
  46. package/dist/services/agent/index.d.ts +111 -0
  47. package/dist/services/agent/index.js +190 -0
  48. package/dist/services/agent/schema.d.ts +161 -0
  49. package/dist/services/agent/schema.js +135 -0
  50. package/package.json +59 -3
@@ -20,7 +20,7 @@ function cn(...inputs) {
20
20
  }
21
21
 
22
22
  // ../../src/components/ui/button.tsx
23
- import { jsxDEV } from "react/jsx-dev-runtime";
23
+ import { jsx } from "react/jsx-runtime";
24
24
  var buttonVariants = cva("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", {
25
25
  variants: {
26
26
  variant: {
@@ -53,11 +53,11 @@ function Button({
53
53
  size = "default",
54
54
  ...props
55
55
  }) {
56
- return /* @__PURE__ */ jsxDEV(ButtonPrimitive, {
56
+ return /* @__PURE__ */ jsx(ButtonPrimitive, {
57
57
  "data-slot": "button",
58
58
  className: cn(buttonVariants({ variant, size, className })),
59
59
  ...props
60
- }, undefined, false, undefined, this);
60
+ });
61
61
  }
62
62
 
63
63
  // ../../src/components/ui/input-group.tsx
@@ -65,28 +65,28 @@ import { cva as cva2 } from "class-variance-authority";
65
65
 
66
66
  // ../../src/components/ui/input.tsx
67
67
  import { Input as InputPrimitive } from "@base-ui/react/input";
68
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
68
+ import { jsx as jsx2 } from "react/jsx-runtime";
69
69
  function Input({ className, type, ...props }) {
70
- return /* @__PURE__ */ jsxDEV2(InputPrimitive, {
70
+ return /* @__PURE__ */ jsx2(InputPrimitive, {
71
71
  type,
72
72
  "data-slot": "input",
73
73
  className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
74
74
  ...props
75
- }, undefined, false, undefined, this);
75
+ });
76
76
  }
77
77
 
78
78
  // ../../src/components/ui/textarea.tsx
79
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
79
+ import { jsx as jsx3 } from "react/jsx-runtime";
80
80
 
81
81
  // ../../src/components/ui/input-group.tsx
82
- import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
82
+ import { jsx as jsx4 } from "react/jsx-runtime";
83
83
  function InputGroup({ className, ...props }) {
84
- return /* @__PURE__ */ jsxDEV4("div", {
84
+ return /* @__PURE__ */ jsx4("div", {
85
85
  "data-slot": "input-group",
86
86
  role: "group",
87
87
  className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
88
88
  ...props
89
- }, undefined, false, undefined, this);
89
+ });
90
90
  }
91
91
  var inputGroupAddonVariants = cva2("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
92
92
  variants: {
@@ -114,11 +114,11 @@ function InputGroupInput({
114
114
  className,
115
115
  ...props
116
116
  }) {
117
- return /* @__PURE__ */ jsxDEV4(Input, {
117
+ return /* @__PURE__ */ jsx4(Input, {
118
118
  "data-slot": "input-group-control",
119
119
  className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
120
120
  ...props
121
- }, undefined, false, undefined, this);
121
+ });
122
122
  }
123
123
 
124
124
  // ../../src/paraglide/runtime.js
@@ -550,7 +550,7 @@ function isCustomStrategy(strategy2) {
550
550
  }
551
551
 
552
552
  // ../../src/components/ui/virtualized-combobox.tsx
553
- import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
553
+ import { jsx as jsx5, jsxs } from "react/jsx-runtime";
554
554
  "use client";
555
555
  var messages = {
556
556
  en: {
@@ -613,19 +613,19 @@ var VirtualizedComboboxList = ({
613
613
  virtualizer.measure();
614
614
  }, [virtualizer]);
615
615
  if (filteredItems.length === 0) {
616
- return /* @__PURE__ */ jsxDEV5("div", {
616
+ return /* @__PURE__ */ jsx5("div", {
617
617
  className: "text-muted-foreground py-6 text-center text-sm",
618
618
  children: emptyLabel
619
- }, undefined, false, undefined, this);
619
+ });
620
620
  }
621
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.List, {
621
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
622
622
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
623
623
  ref: handleScrollElementRef,
624
624
  style: {
625
625
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
626
626
  maxHeight: "var(--available-height)"
627
627
  },
628
- children: /* @__PURE__ */ jsxDEV5("div", {
628
+ children: /* @__PURE__ */ jsx5("div", {
629
629
  className: "relative w-full",
630
630
  role: "presentation",
631
631
  style: { height: virtualizer.getTotalSize() },
@@ -638,18 +638,18 @@ var VirtualizedComboboxList = ({
638
638
  transform: `translateY(${virtualItem.start}px)`
639
639
  };
640
640
  if (entry.kind === "group") {
641
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Group, {
641
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
642
642
  className: "contents",
643
- children: /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.GroupLabel, {
643
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
644
644
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
645
645
  "data-index": virtualItem.index,
646
646
  ref: virtualizer.measureElement,
647
647
  style,
648
648
  children: entry.label
649
- }, undefined, false, undefined, this)
650
- }, entry.key, false, undefined, this);
649
+ })
650
+ }, entry.key);
651
651
  }
652
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Item, {
652
+ return /* @__PURE__ */ jsxs(ComboboxPrimitive.Item, {
653
653
  "aria-posinset": entry.index + 1,
654
654
  "aria-setsize": filteredItems.length,
655
655
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground absolute top-0 left-0 flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
@@ -659,19 +659,19 @@ var VirtualizedComboboxList = ({
659
659
  style,
660
660
  value: entry.item,
661
661
  children: [
662
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsxDEV5("span", {
662
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
663
663
  className: "min-w-0 truncate",
664
664
  children: entry.item.label
665
- }, undefined, false, undefined, this),
666
- /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.ItemIndicator, {
665
+ }),
666
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
667
667
  className: "absolute right-2 flex size-4 items-center justify-center",
668
- children: /* @__PURE__ */ jsxDEV5(Check, {}, undefined, false, undefined, this)
669
- }, undefined, false, undefined, this)
668
+ children: /* @__PURE__ */ jsx5(Check, {})
669
+ })
670
670
  ]
671
- }, entry.item.value, true, undefined, this);
671
+ }, entry.item.value);
672
672
  })
673
- }, undefined, false, undefined, this)
674
- }, undefined, false, undefined, this);
673
+ })
674
+ });
675
675
  };
676
676
  var VirtualizedComboboxContent = ({
677
677
  contentClassName,
@@ -683,39 +683,39 @@ var VirtualizedComboboxContent = ({
683
683
  virtualizerRef
684
684
  }) => {
685
685
  const labels = virtualizedComboboxMessages(messageOverrides);
686
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Portal, {
687
- children: /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Positioner, {
686
+ return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
687
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
688
688
  align: "start",
689
689
  className: "isolate z-50",
690
690
  side: "bottom",
691
691
  sideOffset: 6,
692
- children: /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Popup, {
692
+ children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
693
693
  className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
694
694
  children: [
695
- /* @__PURE__ */ jsxDEV5("div", {
695
+ /* @__PURE__ */ jsx5("div", {
696
696
  className: "min-w-0 p-1 pb-0",
697
- children: /* @__PURE__ */ jsxDEV5(InputGroup, {
697
+ children: /* @__PURE__ */ jsx5(InputGroup, {
698
698
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
699
- children: /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Input, {
699
+ children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
700
700
  placeholder: labels.search,
701
- render: /* @__PURE__ */ jsxDEV5(InputGroupInput, {}, undefined, false, undefined, this)
702
- }, undefined, false, undefined, this)
703
- }, undefined, false, undefined, this)
704
- }, undefined, false, undefined, this),
705
- /* @__PURE__ */ jsxDEV5(VirtualizedComboboxList, {
701
+ render: /* @__PURE__ */ jsx5(InputGroupInput, {})
702
+ })
703
+ })
704
+ }),
705
+ /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
706
706
  emptyLabel,
707
707
  groupSelections,
708
708
  messages: messageOverrides,
709
709
  renderItem,
710
710
  selectedValues,
711
711
  virtualizerRef
712
- }, undefined, false, undefined, this)
712
+ })
713
713
  ]
714
- }, undefined, true, undefined, this)
715
- }, undefined, false, undefined, this)
716
- }, undefined, false, undefined, this);
714
+ })
715
+ })
716
+ });
717
717
  };
718
- var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxDEV5(Button, {
718
+ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxs(Button, {
719
719
  "aria-label": ariaLabel,
720
720
  "aria-invalid": ariaInvalid,
721
721
  className: "w-full max-w-full min-w-0 justify-between overflow-hidden",
@@ -724,15 +724,15 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
724
724
  type: "button",
725
725
  variant: "outline",
726
726
  children: [
727
- /* @__PURE__ */ jsxDEV5("span", {
727
+ /* @__PURE__ */ jsx5("span", {
728
728
  className: "min-w-0 truncate text-left",
729
729
  children: label
730
- }, undefined, false, undefined, this),
731
- /* @__PURE__ */ jsxDEV5(ChevronsUpDown, {
730
+ }),
731
+ /* @__PURE__ */ jsx5(ChevronsUpDown, {
732
732
  className: "text-muted-foreground shrink-0 opacity-70"
733
- }, undefined, false, undefined, this)
733
+ })
734
734
  ]
735
- }, undefined, true, undefined, this);
735
+ });
736
736
  var selectedLabel = (value, placeholder) => {
737
737
  if (Array.isArray(value)) {
738
738
  return value.length > 0 ? value.map(({ label }) => label).join(", ") : placeholder;
@@ -745,7 +745,7 @@ var useComboboxVirtualizerRef = (providedRef) => {
745
745
  };
746
746
  var VirtualizedComboboxSingle = (props) => {
747
747
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
748
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Root, {
748
+ return /* @__PURE__ */ jsxs(ComboboxPrimitive.Root, {
749
749
  disabled: props.disabled,
750
750
  inputValue: props.searchValue,
751
751
  items: [...props.items],
@@ -763,21 +763,21 @@ var VirtualizedComboboxSingle = (props) => {
763
763
  value: props.value,
764
764
  virtualized: true,
765
765
  children: [
766
- /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Trigger, {
766
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
767
767
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
768
- }, undefined, false, undefined, this),
769
- /* @__PURE__ */ jsxDEV5(VirtualizedComboboxContent, {
768
+ }),
769
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
770
770
  ...props,
771
771
  groupSelections: false,
772
772
  selectedValues: new Set(props.value ? [props.value.value] : []),
773
773
  virtualizerRef
774
- }, undefined, false, undefined, this)
774
+ })
775
775
  ]
776
- }, undefined, true, undefined, this);
776
+ });
777
777
  };
778
778
  var VirtualizedComboboxMultiple = (props) => {
779
779
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
780
- return /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Root, {
780
+ return /* @__PURE__ */ jsxs(ComboboxPrimitive.Root, {
781
781
  disabled: props.disabled,
782
782
  inputValue: props.searchValue,
783
783
  items: [...props.items],
@@ -796,24 +796,24 @@ var VirtualizedComboboxMultiple = (props) => {
796
796
  value: [...props.value],
797
797
  virtualized: true,
798
798
  children: [
799
- /* @__PURE__ */ jsxDEV5(ComboboxPrimitive.Trigger, {
799
+ /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
800
800
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
801
- }, undefined, false, undefined, this),
802
- /* @__PURE__ */ jsxDEV5(VirtualizedComboboxContent, {
801
+ }),
802
+ /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
803
803
  ...props,
804
804
  groupSelections: true,
805
805
  selectedValues: new Set(props.value.map(({ value }) => value)),
806
806
  virtualizerRef
807
- }, undefined, false, undefined, this)
807
+ })
808
808
  ]
809
- }, undefined, true, undefined, this);
809
+ });
810
810
  };
811
811
  function VirtualizedCombobox(props) {
812
- return props.multiple ? /* @__PURE__ */ jsxDEV5(VirtualizedComboboxMultiple, {
812
+ return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
813
813
  ...props
814
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV5(VirtualizedComboboxSingle, {
814
+ }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
815
815
  ...props
816
- }, undefined, false, undefined, this);
816
+ });
817
817
  }
818
818
  export {
819
819
  virtualizedComboboxMessages,
@@ -0,0 +1,136 @@
1
+ import { Effect, Schema } from "effect";
2
+ import { Tool, Toolkit } from "effect/unstable/ai";
3
+ import { type DocsCatalog, type DocsLocale } from "./docs-core.js";
4
+ export declare const searchDocumentation: (args_0: {
5
+ readonly docs: DocsCatalog;
6
+ readonly locale: DocsLocale;
7
+ readonly query: string;
8
+ }) => Effect.Effect<{
9
+ path: string;
10
+ title: string;
11
+ description: string;
12
+ heading?: string | undefined;
13
+ }[], never, never>;
14
+ export declare const readDocumentation: (args_0: {
15
+ readonly locale: DocsLocale;
16
+ readonly paths: ReadonlyArray<string>;
17
+ readonly docs: DocsCatalog;
18
+ }) => Effect.Effect<{
19
+ pages: {
20
+ readonly slug: string;
21
+ readonly path: string;
22
+ readonly title: string;
23
+ readonly description: string;
24
+ readonly icon: string;
25
+ readonly order: number;
26
+ readonly locale: string;
27
+ readonly section: string;
28
+ readonly type: "concept" | "how-to" | "reference" | "runbook" | "tutorial";
29
+ readonly legacySlugs?: readonly string[] | undefined;
30
+ readonly headings: readonly Schema.Struct.ReadonlySide<{
31
+ readonly depth: Schema.Literals<readonly [2, 3]>;
32
+ readonly id: Schema.String;
33
+ readonly title: Schema.String;
34
+ }, "Type">[];
35
+ readonly searchText: string;
36
+ readonly sourceFile: string;
37
+ readonly source: string;
38
+ }[];
39
+ missingPaths: string[];
40
+ }, never, never>;
41
+ export declare const makeChatDocumentation: (args_0: {
42
+ readonly locale: DocsLocale;
43
+ readonly docs: DocsCatalog;
44
+ }) => Effect.Effect<{
45
+ layer: import("effect/Layer").Layer<Tool.HandlersFor<{
46
+ readonly readDocumentation: Tool.Tool<"readDocumentation", {
47
+ readonly parameters: Schema.Struct<{
48
+ readonly paths: Schema.$Array<Schema.String>;
49
+ }>;
50
+ readonly success: Schema.Struct<{
51
+ readonly pages: Schema.$Array<Schema.Struct<{
52
+ readonly slug: Schema.String;
53
+ readonly path: Schema.String;
54
+ readonly title: Schema.String;
55
+ readonly description: Schema.String;
56
+ readonly icon: Schema.String;
57
+ readonly order: Schema.Number;
58
+ readonly locale: Schema.String;
59
+ readonly section: Schema.String;
60
+ readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
61
+ readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
62
+ readonly headings: Schema.$Array<Schema.Struct<{
63
+ readonly depth: Schema.Literals<readonly [2, 3]>;
64
+ readonly id: Schema.String;
65
+ readonly title: Schema.String;
66
+ }>>;
67
+ readonly searchText: Schema.String;
68
+ readonly sourceFile: Schema.String;
69
+ readonly source: Schema.String;
70
+ }>>;
71
+ readonly missingPaths: Schema.$Array<Schema.String>;
72
+ }>;
73
+ readonly failure: Schema.Never;
74
+ readonly failureMode: "error";
75
+ }, never>;
76
+ readonly searchDocumentation: Tool.Tool<"searchDocumentation", {
77
+ readonly parameters: Schema.Struct<{
78
+ readonly query: Schema.String;
79
+ }>;
80
+ readonly success: Schema.$Array<Schema.Struct<{
81
+ readonly path: Schema.String;
82
+ readonly title: Schema.String;
83
+ readonly description: Schema.String;
84
+ readonly heading: Schema.optional<Schema.String>;
85
+ }>>;
86
+ readonly failure: Schema.Never;
87
+ readonly failureMode: "error";
88
+ }, never>;
89
+ }>, never, never>;
90
+ systemPrompt: string;
91
+ toolkit: Toolkit.Toolkit<{
92
+ readonly readDocumentation: Tool.Tool<"readDocumentation", {
93
+ readonly parameters: Schema.Struct<{
94
+ readonly paths: Schema.$Array<Schema.String>;
95
+ }>;
96
+ readonly success: Schema.Struct<{
97
+ readonly pages: Schema.$Array<Schema.Struct<{
98
+ readonly slug: Schema.String;
99
+ readonly path: Schema.String;
100
+ readonly title: Schema.String;
101
+ readonly description: Schema.String;
102
+ readonly icon: Schema.String;
103
+ readonly order: Schema.Number;
104
+ readonly locale: Schema.String;
105
+ readonly section: Schema.String;
106
+ readonly type: Schema.Literals<readonly ["concept", "tutorial", "how-to", "reference", "runbook"]>;
107
+ readonly legacySlugs: Schema.optional<Schema.$Array<Schema.String>>;
108
+ readonly headings: Schema.$Array<Schema.Struct<{
109
+ readonly depth: Schema.Literals<readonly [2, 3]>;
110
+ readonly id: Schema.String;
111
+ readonly title: Schema.String;
112
+ }>>;
113
+ readonly searchText: Schema.String;
114
+ readonly sourceFile: Schema.String;
115
+ readonly source: Schema.String;
116
+ }>>;
117
+ readonly missingPaths: Schema.$Array<Schema.String>;
118
+ }>;
119
+ readonly failure: Schema.Never;
120
+ readonly failureMode: "error";
121
+ }, never>;
122
+ readonly searchDocumentation: Tool.Tool<"searchDocumentation", {
123
+ readonly parameters: Schema.Struct<{
124
+ readonly query: Schema.String;
125
+ }>;
126
+ readonly success: Schema.$Array<Schema.Struct<{
127
+ readonly path: Schema.String;
128
+ readonly title: Schema.String;
129
+ readonly description: Schema.String;
130
+ readonly heading: Schema.optional<Schema.String>;
131
+ }>>;
132
+ readonly failure: Schema.Never;
133
+ readonly failureMode: "error";
134
+ }, never>;
135
+ }>;
136
+ }, never, never>;