zen-code 3.0.4 → 4.0.0

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.
@@ -0,0 +1,67 @@
1
+ import { Command as p, Annotation as h } from "@langchain/langgraph";
2
+ import { tool as k, HumanMessage as m } from "langchain";
3
+ import { z as t } from "zod";
4
+ import { c as g } from "./graphBuilder-ulTm2bmI.mjs";
5
+ import "@langchain/openai";
6
+ const J = t.object({
7
+ task_store: t.record(t.string(), t.any()).default({})
8
+ });
9
+ g().build({
10
+ task_store: h({
11
+ reducer: (i, a) => ({ ...i, ...a }),
12
+ default: () => ({})
13
+ })
14
+ });
15
+ const f = t.object({
16
+ task_id: t.string().optional().describe("The task id to ask the subagent, if not provided, will use the tool call id"),
17
+ subagent_id: t.string(),
18
+ task_description: t.string().describe("Describe the user state and what you want the subagent to do."),
19
+ data_transfer: t.any().optional().describe("Data to transfer to the subagent.")
20
+ }), N = (i, a) => k(
21
+ async (o, d) => {
22
+ const n = d.state, s = o.task_id || d.toolCall.id;
23
+ let e = {
24
+ messages: []
25
+ };
26
+ s && n?.task_store?.[s] ? e = n?.task_store[s] : (e = JSON.parse(JSON.stringify(n)), e.messages = [], e.task_store = {});
27
+ const _ = await i(s, o, n);
28
+ e.messages.push(new m({ content: o.task_description })), o.data_transfer && e.messages.push(
29
+ new m({
30
+ content: `Here is the data to help you complete the task: ${JSON.stringify(
31
+ o.data_transfer,
32
+ null,
33
+ 2
34
+ )}`
35
+ })
36
+ );
37
+ const r = await _.invoke(e), u = r.messages.at(-1), l = {
38
+ task_store: {
39
+ ...n?.task_store || {},
40
+ [s]: r
41
+ },
42
+ messages: [
43
+ {
44
+ role: "tool",
45
+ content: `task_id: ${s}
46
+ ---
47
+ ` + (u?.text || ""),
48
+ tool_call_id: d.toolCall.id
49
+ }
50
+ ]
51
+ };
52
+ return a?.pass_through_keys?.forEach((c) => {
53
+ c in r && (l[c] = r[c]);
54
+ }), new p({
55
+ update: l
56
+ });
57
+ },
58
+ {
59
+ name: a?.name,
60
+ description: a?.description,
61
+ schema: f
62
+ }
63
+ );
64
+ export {
65
+ J as S,
66
+ N as a
67
+ };
@@ -1,7 +1,7 @@
1
1
  import { K as T } from "./kysely-Bchvsze0.mjs";
2
2
  import { F as r } from "./sql-CJsUpKEQ.mjs";
3
- import { B as f, T as l, c as y, m } from "./app-D748EsP_.mjs";
4
- import "./graphBuilder-B6OHvcgJ.mjs";
3
+ import { B as f, T as l, c as y, m } from "./app-QzdcE86p.mjs";
4
+ import "./graphBuilder-ulTm2bmI.mjs";
5
5
  const g = ["source", "step", "parents"];
6
6
  const E = g;
7
7
  class w extends f {
@@ -1,5 +1,5 @@
1
- import { T as l, B as N, W as k, m as y } from "./app-D748EsP_.mjs";
2
- import "./graphBuilder-B6OHvcgJ.mjs";
1
+ import { T as l, B as N, W as k, m as y } from "./app-QzdcE86p.mjs";
2
+ import "./graphBuilder-ulTm2bmI.mjs";
3
3
  import w from "pg";
4
4
  const S = (h) => [
5
5
  "checkpoints",
@@ -0,0 +1,253 @@
1
+ import { b as S, a as u, p as B, n as P, c as k, d as M, j as c, B as g, T as x, R as q } from "./MultiLineTextInput-DjNvaZzA.mjs";
2
+ import "chalk";
3
+ import { g as L } from "./_commonjsHelpers-ByX85dGu.mjs";
4
+ import R from "openai";
5
+ import F from "@anthropic-ai/sdk";
6
+ const H = (e, t = {}) => {
7
+ const { stdin: o, setRawMode: n, internal_exitOnCtrlC: m, internal_eventEmitter: a } = S();
8
+ u.useEffect(() => {
9
+ if (t.isActive !== !1)
10
+ return n(!0), () => {
11
+ n(!1);
12
+ };
13
+ }, [t.isActive, n]), u.useEffect(() => {
14
+ if (t.isActive === !1)
15
+ return;
16
+ const _ = (h) => {
17
+ const r = B(h), d = {
18
+ upArrow: r.name === "up",
19
+ downArrow: r.name === "down",
20
+ leftArrow: r.name === "left",
21
+ rightArrow: r.name === "right",
22
+ pageDown: r.name === "pagedown",
23
+ pageUp: r.name === "pageup",
24
+ home: r.name === "home",
25
+ end: r.name === "end",
26
+ return: r.name === "return",
27
+ escape: r.name === "escape",
28
+ ctrl: r.ctrl,
29
+ shift: r.shift,
30
+ tab: r.name === "tab",
31
+ backspace: r.name === "backspace",
32
+ delete: r.name === "delete",
33
+ // `parseKeypress` parses \u001B\u001B[A (meta + up arrow) as meta = false
34
+ // but with option = true, so we need to take this into account here
35
+ // to avoid breaking changes in Ink.
36
+ // TODO(vadimdemedes): consider removing this in the next major version.
37
+ meta: r.meta || r.name === "escape" || r.option
38
+ };
39
+ let l = r.ctrl ? r.name : r.sequence;
40
+ P.includes(r.name) && (l = ""), l.startsWith("\x1B") && (l = l.slice(1)), l.length === 1 && typeof l[0] == "string" && /[A-Z]/.test(l[0]) && (d.shift = !0), (!(l === "c" && d.ctrl) || !m) && k.batchedUpdates(() => {
41
+ e(l, d);
42
+ });
43
+ };
44
+ return a?.on("input", _), () => {
45
+ a?.removeListener("input", _);
46
+ };
47
+ }, [t.isActive, o, m, e]);
48
+ }, K = ({ option: e, isSelected: t, isHighlighted: o, isFocused: n, isComponentDisabled: m }) => {
49
+ const a = !n || m;
50
+ let _ = "white";
51
+ return e.disabled ? _ = "gray" : t ? _ = n ? "green" : "gray" : o && n ? _ = "cyan" : a && (_ = "gray"), /* @__PURE__ */ c.jsx(g, { children: /* @__PURE__ */ c.jsxs(x, { color: _, children: [
52
+ t ? "◉ " : "○ ",
53
+ e.label
54
+ ] }) });
55
+ }, V = ({ isSelected: e }) => /* @__PURE__ */ c.jsx(x, { color: e ? "green" : "gray", children: e ? "◉" : "○" }), N = ({ values: e }) => /* @__PURE__ */ c.jsx(c.Fragment, {}), Pt = ({
56
+ options: e,
57
+ values: t,
58
+ defaultValues: o = [],
59
+ onChange: n,
60
+ onSubmit: m,
61
+ disabled: a = !1,
62
+ highlightText: _,
63
+ itemComponent: h = K,
64
+ indicatorComponent: r = V,
65
+ statusComponent: d = N,
66
+ autoFocus: l = !0,
67
+ singleSelect: A = !1
68
+ }) => {
69
+ const { isFocused: C } = M({ autoFocus: l }), [f, y] = u.useState(t || o), [p, j] = u.useState(0);
70
+ u.useEffect(() => {
71
+ t !== void 0 && y(t);
72
+ }, [t]);
73
+ const D = u.useCallback(
74
+ (s) => {
75
+ if (a || e[s].disabled) return;
76
+ const i = e[s];
77
+ let v;
78
+ A ? v = f.includes(i.value) ? [] : [i.value] : v = f.includes(i.value) ? f.filter((w) => w !== i.value) : [...f, i.value], y(v), n?.(v);
79
+ },
80
+ [f, e, a, n, A]
81
+ ), E = u.useCallback(() => {
82
+ if (!a) {
83
+ if (f.length === 0 && e.length > 0) {
84
+ const s = e[p];
85
+ if (s && !s.disabled) {
86
+ n?.([s.value]), m?.([s.value]);
87
+ return;
88
+ }
89
+ }
90
+ m?.(f);
91
+ }
92
+ }, [f, a, m, e, p]);
93
+ H((s, i) => {
94
+ !C || a || (i.upArrow ? j((v) => Math.max(0, v - 1)) : i.downArrow ? j((v) => Math.min(e.length - 1, v + 1)) : i.return ? E() : s === " " && D(p));
95
+ });
96
+ const O = _ ? e.filter(
97
+ (s) => s.label.toLowerCase().includes(_.toLowerCase()) || s.value.toLowerCase().includes(_.toLowerCase())
98
+ ) : e;
99
+ return /* @__PURE__ */ c.jsxs(g, { flexDirection: "column", children: [
100
+ /* @__PURE__ */ c.jsx(g, { marginBottom: 1, children: /* @__PURE__ */ c.jsx(d, { values: f }) }),
101
+ /* @__PURE__ */ c.jsx(g, { flexDirection: "column", children: O.map((s, i) => {
102
+ const v = f.includes(s.value), w = i === p;
103
+ return /* @__PURE__ */ c.jsx(g, { children: /* @__PURE__ */ c.jsx(
104
+ h,
105
+ {
106
+ option: s,
107
+ isSelected: v,
108
+ isHighlighted: w,
109
+ isFocused: C,
110
+ isComponentDisabled: a
111
+ }
112
+ ) }, s.value);
113
+ }) })
114
+ ] });
115
+ }, T = { interval: 80, frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"] }, U = { interval: 80, frames: ["⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"] }, W = { interval: 80, frames: ["⠋", "⠙", "⠚", "⠞", "⠖", "⠦", "⠴", "⠲", "⠳", "⠓"] }, Y = { interval: 80, frames: ["⠄", "⠆", "⠇", "⠋", "⠙", "⠸", "⠰", "⠠", "⠰", "⠸", "⠙", "⠋", "⠇", "⠆"] }, $ = { interval: 80, frames: ["⠋", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋"] }, z = { interval: 80, frames: ["⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠴", "⠲", "⠒", "⠂", "⠂", "⠒", "⠚", "⠙", "⠉", "⠁"] }, Q = { interval: 80, frames: ["⠈", "⠉", "⠋", "⠓", "⠒", "⠐", "⠐", "⠒", "⠖", "⠦", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈"] }, Z = { interval: 80, frames: ["⠁", "⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈", "⠈"] }, G = { interval: 80, frames: ["⢹", "⢺", "⢼", "⣸", "⣇", "⡧", "⡗", "⡏"] }, J = { interval: 80, frames: ["⢄", "⢂", "⢁", "⡁", "⡈", "⡐", "⡠"] }, X = { interval: 100, frames: ["⠁", "⠂", "⠄", "⡀", "⢀", "⠠", "⠐", "⠈"] }, ee = { interval: 80, frames: ["⢀⠀", "⡀⠀", "⠄⠀", "⢂⠀", "⡂⠀", "⠅⠀", "⢃⠀", "⡃⠀", "⠍⠀", "⢋⠀", "⡋⠀", "⠍⠁", "⢋⠁", "⡋⠁", "⠍⠉", "⠋⠉", "⠋⠉", "⠉⠙", "⠉⠙", "⠉⠩", "⠈⢙", "⠈⡙", "⢈⠩", "⡀⢙", "⠄⡙", "⢂⠩", "⡂⢘", "⠅⡘", "⢃⠨", "⡃⢐", "⠍⡐", "⢋⠠", "⡋⢀", "⠍⡁", "⢋⠁", "⡋⠁", "⠍⠉", "⠋⠉", "⠋⠉", "⠉⠙", "⠉⠙", "⠉⠩", "⠈⢙", "⠈⡙", "⠈⠩", "⠀⢙", "⠀⡙", "⠀⠩", "⠀⢘", "⠀⡘", "⠀⠨", "⠀⢐", "⠀⡐", "⠀⠠", "⠀⢀", "⠀⡀"] }, te = { interval: 80, frames: ["⣼", "⣹", "⢻", "⠿", "⡟", "⣏", "⣧", "⣶"] }, re = { interval: 80, frames: ["⠀", "⠁", "⠂", "⠃", "⠄", "⠅", "⠆", "⠇", "⡀", "⡁", "⡂", "⡃", "⡄", "⡅", "⡆", "⡇", "⠈", "⠉", "⠊", "⠋", "⠌", "⠍", "⠎", "⠏", "⡈", "⡉", "⡊", "⡋", "⡌", "⡍", "⡎", "⡏", "⠐", "⠑", "⠒", "⠓", "⠔", "⠕", "⠖", "⠗", "⡐", "⡑", "⡒", "⡓", "⡔", "⡕", "⡖", "⡗", "⠘", "⠙", "⠚", "⠛", "⠜", "⠝", "⠞", "⠟", "⡘", "⡙", "⡚", "⡛", "⡜", "⡝", "⡞", "⡟", "⠠", "⠡", "⠢", "⠣", "⠤", "⠥", "⠦", "⠧", "⡠", "⡡", "⡢", "⡣", "⡤", "⡥", "⡦", "⡧", "⠨", "⠩", "⠪", "⠫", "⠬", "⠭", "⠮", "⠯", "⡨", "⡩", "⡪", "⡫", "⡬", "⡭", "⡮", "⡯", "⠰", "⠱", "⠲", "⠳", "⠴", "⠵", "⠶", "⠷", "⡰", "⡱", "⡲", "⡳", "⡴", "⡵", "⡶", "⡷", "⠸", "⠹", "⠺", "⠻", "⠼", "⠽", "⠾", "⠿", "⡸", "⡹", "⡺", "⡻", "⡼", "⡽", "⡾", "⡿", "⢀", "⢁", "⢂", "⢃", "⢄", "⢅", "⢆", "⢇", "⣀", "⣁", "⣂", "⣃", "⣄", "⣅", "⣆", "⣇", "⢈", "⢉", "⢊", "⢋", "⢌", "⢍", "⢎", "⢏", "⣈", "⣉", "⣊", "⣋", "⣌", "⣍", "⣎", "⣏", "⢐", "⢑", "⢒", "⢓", "⢔", "⢕", "⢖", "⢗", "⣐", "⣑", "⣒", "⣓", "⣔", "⣕", "⣖", "⣗", "⢘", "⢙", "⢚", "⢛", "⢜", "⢝", "⢞", "⢟", "⣘", "⣙", "⣚", "⣛", "⣜", "⣝", "⣞", "⣟", "⢠", "⢡", "⢢", "⢣", "⢤", "⢥", "⢦", "⢧", "⣠", "⣡", "⣢", "⣣", "⣤", "⣥", "⣦", "⣧", "⢨", "⢩", "⢪", "⢫", "⢬", "⢭", "⢮", "⢯", "⣨", "⣩", "⣪", "⣫", "⣬", "⣭", "⣮", "⣯", "⢰", "⢱", "⢲", "⢳", "⢴", "⢵", "⢶", "⢷", "⣰", "⣱", "⣲", "⣳", "⣴", "⣵", "⣶", "⣷", "⢸", "⢹", "⢺", "⢻", "⢼", "⢽", "⢾", "⢿", "⣸", "⣹", "⣺", "⣻", "⣼", "⣽", "⣾", "⣿"] }, ne = { interval: 80, frames: ["⠁", "⠂", "⠄", "⡀", "⡈", "⡐", "⡠", "⣀", "⣁", "⣂", "⣄", "⣌", "⣔", "⣤", "⣥", "⣦", "⣮", "⣶", "⣷", "⣿", "⡿", "⠿", "⢟", "⠟", "⡛", "⠛", "⠫", "⢋", "⠋", "⠍", "⡉", "⠉", "⠑", "⠡", "⢁"] }, se = { interval: 130, frames: ["-", "\\", "|", "/"] }, ae = { interval: 100, frames: ["⠂", "-", "–", "—", "–", "-"] }, _e = { interval: 100, frames: ["┤", "┘", "┴", "└", "├", "┌", "┬", "┐"] }, oe = { interval: 400, frames: [". ", ".. ", "...", " "] }, le = { interval: 200, frames: [". ", ".. ", "...", " ..", " .", " "] }, ie = { interval: 70, frames: ["✶", "✸", "✹", "✺", "✹", "✷"] }, ce = { interval: 80, frames: ["+", "x", "*"] }, me = { interval: 70, frames: ["_", "_", "_", "-", "`", "`", "'", "´", "-", "_", "_", "_"] }, fe = { interval: 100, frames: ["☱", "☲", "☴"] }, ve = { interval: 120, frames: ["▁", "▃", "▄", "▅", "▆", "▇", "▆", "▅", "▄", "▃"] }, ue = { interval: 120, frames: ["▏", "▎", "▍", "▌", "▋", "▊", "▉", "▊", "▋", "▌", "▍", "▎"] }, de = { interval: 140, frames: [" ", ".", "o", "O", "@", "*", " "] }, ge = { interval: 120, frames: [".", "o", "O", "°", "O", "o", "."] }, pe = { interval: 100, frames: ["▓", "▒", "░"] }, he = { interval: 120, frames: ["⠁", "⠂", "⠄", "⠂"] }, we = { interval: 120, frames: ["▖", "▘", "▝", "▗"] }, be = { interval: 100, frames: ["▌", "▀", "▐", "▄"] }, xe = { interval: 50, frames: ["◢", "◣", "◤", "◥"] }, Ae = { interval: 80, frames: ["010010", "001100", "100101", "111010", "111101", "010111", "101011", "111000", "110011", "110101"] }, Ce = { interval: 100, frames: ["◜", "◠", "◝", "◞", "◡", "◟"] }, ye = { interval: 120, frames: ["◡", "⊙", "◠"] }, je = { interval: 180, frames: ["◰", "◳", "◲", "◱"] }, Ie = { interval: 120, frames: ["◴", "◷", "◶", "◵"] }, De = { interval: 50, frames: ["◐", "◓", "◑", "◒"] }, Ee = { interval: 100, frames: ["╫", "╪"] }, Oe = { interval: 250, frames: ["⊶", "⊷"] }, Se = { interval: 80, frames: ["▫", "▪"] }, Be = { interval: 120, frames: ["□", "■"] }, Pe = { interval: 100, frames: ["■", "□", "▪", "▫"] }, ke = { interval: 100, frames: ["▮", "▯"] }, Me = { interval: 300, frames: ["ဝ", "၀"] }, qe = { interval: 80, frames: ["⦾", "⦿"] }, Le = { interval: 100, frames: ["◍", "◌"] }, Re = { interval: 100, frames: ["◉", "◎"] }, Fe = { interval: 100, frames: ["㊂", "㊀", "㊁"] }, He = { interval: 50, frames: ["⧇", "⧆"] }, Ke = { interval: 120, frames: ["☗", "☖"] }, Ve = { interval: 80, frames: ["=", "*", "-"] }, Ne = { interval: 100, frames: ["←", "↖", "↑", "↗", "→", "↘", "↓", "↙"] }, Te = { interval: 80, frames: ["⬆️ ", "↗️ ", "➡️ ", "↘️ ", "⬇️ ", "↙️ ", "⬅️ ", "↖️ "] }, Ue = { interval: 120, frames: ["▹▹▹▹▹", "▸▹▹▹▹", "▹▸▹▹▹", "▹▹▸▹▹", "▹▹▹▸▹", "▹▹▹▹▸"] }, We = { interval: 80, frames: ["[ ]", "[= ]", "[== ]", "[=== ]", "[====]", "[ ===]", "[ ==]", "[ =]", "[ ]", "[ =]", "[ ==]", "[ ===]", "[====]", "[=== ]", "[== ]", "[= ]"] }, Ye = { interval: 80, frames: ["( ● )", "( ● )", "( ● )", "( ● )", "( ●)", "( ● )", "( ● )", "( ● )", "( ● )", "(● )"] }, $e = { interval: 200, frames: ["😄 ", "😝 "] }, ze = { interval: 300, frames: ["🙈 ", "🙈 ", "🙉 ", "🙊 "] }, Qe = { interval: 100, frames: ["💛 ", "💙 ", "💜 ", "💚 ", "❤️ "] }, Ze = { interval: 100, frames: ["🕛 ", "🕐 ", "🕑 ", "🕒 ", "🕓 ", "🕔 ", "🕕 ", "🕖 ", "🕗 ", "🕘 ", "🕙 ", "🕚 "] }, Ge = { interval: 180, frames: ["🌍 ", "🌎 ", "🌏 "] }, Je = { interval: 17, frames: ["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "███████▁▁▁▁▁▁▁▁▁▁▁▁▁", "████████▁▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "██████████▁▁▁▁▁▁▁▁▁▁", "███████████▁▁▁▁▁▁▁▁▁", "█████████████▁▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁▁██████████████▁▁▁▁", "▁▁▁██████████████▁▁▁", "▁▁▁▁█████████████▁▁▁", "▁▁▁▁██████████████▁▁", "▁▁▁▁██████████████▁▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁██████████████▁", "▁▁▁▁▁▁██████████████", "▁▁▁▁▁▁██████████████", "▁▁▁▁▁▁▁█████████████", "▁▁▁▁▁▁▁█████████████", "▁▁▁▁▁▁▁▁████████████", "▁▁▁▁▁▁▁▁████████████", "▁▁▁▁▁▁▁▁▁███████████", "▁▁▁▁▁▁▁▁▁███████████", "▁▁▁▁▁▁▁▁▁▁██████████", "▁▁▁▁▁▁▁▁▁▁██████████", "▁▁▁▁▁▁▁▁▁▁▁▁████████", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█", "████████▁▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "█████████▁▁▁▁▁▁▁▁▁▁▁", "███████████▁▁▁▁▁▁▁▁▁", "████████████▁▁▁▁▁▁▁▁", "████████████▁▁▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "██████████████▁▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁██████████████▁▁▁▁▁", "▁▁▁█████████████▁▁▁▁", "▁▁▁▁▁████████████▁▁▁", "▁▁▁▁▁████████████▁▁▁", "▁▁▁▁▁▁███████████▁▁▁", "▁▁▁▁▁▁▁▁█████████▁▁▁", "▁▁▁▁▁▁▁▁█████████▁▁▁", "▁▁▁▁▁▁▁▁▁█████████▁▁", "▁▁▁▁▁▁▁▁▁█████████▁▁", "▁▁▁▁▁▁▁▁▁▁█████████▁", "▁▁▁▁▁▁▁▁▁▁▁████████▁", "▁▁▁▁▁▁▁▁▁▁▁████████▁", "▁▁▁▁▁▁▁▁▁▁▁▁███████▁", "▁▁▁▁▁▁▁▁▁▁▁▁███████▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁███████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁", "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"] }, Xe = { interval: 80, frames: ["🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 "] }, et = { interval: 140, frames: ["🚶 ", "🏃 "] }, tt = { interval: 80, frames: ["▐⠂ ▌", "▐⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂▌", "▐ ⠠▌", "▐ ⡀▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐⠠ ▌"] }, rt = { interval: 120, frames: ["▐|\\____________▌", "▐_|\\___________▌", "▐__|\\__________▌", "▐___|\\_________▌", "▐____|\\________▌", "▐_____|\\_______▌", "▐______|\\______▌", "▐_______|\\_____▌", "▐________|\\____▌", "▐_________|\\___▌", "▐__________|\\__▌", "▐___________|\\_▌", "▐____________|\\▌", "▐____________/|▌", "▐___________/|_▌", "▐__________/|__▌", "▐_________/|___▌", "▐________/|____▌", "▐_______/|_____▌", "▐______/|______▌", "▐_____/|_______▌", "▐____/|________▌", "▐___/|_________▌", "▐__/|__________▌", "▐_/|___________▌", "▐/|____________▌"] }, nt = { interval: 100, frames: ["d", "q", "p", "b"] }, st = { interval: 100, frames: ["☀️ ", "☀️ ", "☀️ ", "🌤 ", "⛅️ ", "🌥 ", "☁️ ", "🌧 ", "🌨 ", "🌧 ", "🌨 ", "🌧 ", "🌨 ", "⛈ ", "🌨 ", "🌧 ", "🌨 ", "☁️ ", "🌥 ", "⛅️ ", "🌤 ", "☀️ ", "☀️ "] }, at = { interval: 400, frames: ["🌲", "🎄"] }, _t = { interval: 80, frames: ["، ", "′ ", " ´ ", " ‾ ", " ⸌", " ⸊", " |", " ⁎", " ⁕", " ෴ ", " ⁓", " ", " ", " "] }, ot = { interval: 125, frames: ["∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙"] }, lt = { interval: 150, frames: ["-", "=", "≡"] }, it = { interval: 80, frames: ["ρββββββ", "βρβββββ", "ββρββββ", "βββρβββ", "ββββρββ", "βββββρβ", "ββββββρ"] }, ct = { interval: 160, frames: ["🤘 ", "🤟 ", "🖖 ", "✋ ", "🤚 ", "👆 "] }, mt = { interval: 80, frames: ["🤜    🤛 ", "🤜    🤛 ", "🤜    🤛 ", " 🤜  🤛  ", "  🤜🤛   ", " 🤜✨🤛   ", "🤜 ✨ 🤛  "] }, ft = { interval: 80, frames: [" 🧑⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 ", "🧑 ⚽️ 🧑 "] }, vt = { interval: 160, frames: ["😐 ", "😐 ", "😮 ", "😮 ", "😦 ", "😦 ", "😧 ", "😧 ", "🤯 ", "💥 ", "✨ ", "  ", "  ", "  "] }, ut = { interval: 160, frames: ["🔈 ", "🔉 ", "🔊 ", "🔉 "] }, dt = { interval: 100, frames: ["🔸 ", "🔶 ", "🟠 ", "🟠 ", "🔶 "] }, gt = { interval: 100, frames: ["🔹 ", "🔷 ", "🔵 ", "🔵 ", "🔷 "] }, pt = { interval: 100, frames: ["🔸 ", "🔶 ", "🟠 ", "🟠 ", "🔶 ", "🔹 ", "🔷 ", "🔵 ", "🔵 ", "🔷 "] }, ht = { interval: 100, frames: ["🕛 ", "🕚 ", "🕙 ", "🕘 ", "🕗 ", "🕖 ", "🕕 ", "🕔 ", "🕓 ", "🕒 ", "🕑 ", "🕐 "] }, wt = { interval: 80, frames: ["▰▱▱▱▱▱▱", "▰▰▱▱▱▱▱", "▰▰▰▱▱▱▱", "▰▰▰▰▱▱▱", "▰▰▰▰▰▱▱", "▰▰▰▰▰▰▱", "▰▰▰▰▰▰▰", "▰▱▱▱▱▱▱"] }, bt = { interval: 80, frames: [" ██████£££ ", "☺██████£££ ", "☺██████£££ ", "☺▓█████£££ ", "☺▓█████£££ ", "☺▒█████£££ ", "☺▒█████£££ ", "☺░█████£££ ", "☺░█████£££ ", "☺ █████£££ ", " ☺█████£££ ", " ☺█████£££ ", " ☺▓████£££ ", " ☺▓████£££ ", " ☺▒████£££ ", " ☺▒████£££ ", " ☺░████£££ ", " ☺░████£££ ", " ☺ ████£££ ", " ☺████£££ ", " ☺████£££ ", " ☺▓███£££ ", " ☺▓███£££ ", " ☺▒███£££ ", " ☺▒███£££ ", " ☺░███£££ ", " ☺░███£££ ", " ☺ ███£££ ", " ☺███£££ ", " ☺███£££ ", " ☺▓██£££ ", " ☺▓██£££ ", " ☺▒██£££ ", " ☺▒██£££ ", " ☺░██£££ ", " ☺░██£££ ", " ☺ ██£££ ", " ☺██£££ ", " ☺██£££ ", " ☺▓█£££ ", " ☺▓█£££ ", " ☺▒█£££ ", " ☺▒█£££ ", " ☺░█£££ ", " ☺░█£££ ", " ☺ █£££ ", " ☺█£££ ", " ☺█£££ ", " ☺▓£££ ", " ☺▓£££ ", " ☺▒£££ ", " ☺▒£££ ", " ☺░£££ ", " ☺░£££ ", " ☺ £££ ", " ☺£££ ", " ☺£££ ", " ☺▓££ ", " ☺▓££ ", " ☺▒££ ", " ☺▒££ ", " ☺░££ ", " ☺░££ ", " ☺ ££ ", " ☺££ ", " ☺££ ", " ☺▓£ ", " ☺▓£ ", " ☺▒£ ", " ☺▒£ ", " ☺░£ ", " ☺░£ ", " ☺ £ ", " ☺£ ", " ☺£ ", " ☺▓ ", " ☺▓ ", " ☺▒ ", " ☺▒ ", " ☺░ ", " ☺░ ", " ☺ ", " ☺ &", " ☺ ☼&", " ☺ ☼ &", " ☺☼ &", " ☺☼ & ", " ‼ & ", " ☺ & ", " ‼ & ", " ☺ & ", " ‼ & ", " ☺ & ", "‼ & ", " & ", " & ", " & ░ ", " & ▒ ", " & ▓ ", " & £ ", " & ░£ ", " & ▒£ ", " & ▓£ ", " & ££ ", " & ░££ ", " & ▒££ ", "& ▓££ ", "& £££ ", " ░£££ ", " ▒£££ ", " ▓£££ ", " █£££ ", " ░█£££ ", " ▒█£££ ", " ▓█£££ ", " ██£££ ", " ░██£££ ", " ▒██£££ ", " ▓██£££ ", " ███£££ ", " ░███£££ ", " ▒███£££ ", " ▓███£££ ", " ████£££ ", " ░████£££ ", " ▒████£££ ", " ▓████£££ ", " █████£££ ", " ░█████£££ ", " ▒█████£££ ", " ▓█████£££ ", " ██████£££ ", " ██████£££ "] }, xt = {
116
+ dots: T,
117
+ dots2: U,
118
+ dots3: W,
119
+ dots4: Y,
120
+ dots5: $,
121
+ dots6: z,
122
+ dots7: Q,
123
+ dots8: Z,
124
+ dots9: G,
125
+ dots10: J,
126
+ dots11: X,
127
+ dots12: ee,
128
+ dots13: te,
129
+ dots8Bit: re,
130
+ sand: ne,
131
+ line: se,
132
+ line2: ae,
133
+ pipe: _e,
134
+ simpleDots: oe,
135
+ simpleDotsScrolling: le,
136
+ star: ie,
137
+ star2: ce,
138
+ flip: me,
139
+ hamburger: fe,
140
+ growVertical: ve,
141
+ growHorizontal: ue,
142
+ balloon: de,
143
+ balloon2: ge,
144
+ noise: pe,
145
+ bounce: he,
146
+ boxBounce: we,
147
+ boxBounce2: be,
148
+ triangle: xe,
149
+ binary: Ae,
150
+ arc: Ce,
151
+ circle: ye,
152
+ squareCorners: je,
153
+ circleQuarters: Ie,
154
+ circleHalves: De,
155
+ squish: Ee,
156
+ toggle: Oe,
157
+ toggle2: Se,
158
+ toggle3: Be,
159
+ toggle4: Pe,
160
+ toggle5: ke,
161
+ toggle6: Me,
162
+ toggle7: qe,
163
+ toggle8: Le,
164
+ toggle9: Re,
165
+ toggle10: Fe,
166
+ toggle11: He,
167
+ toggle12: Ke,
168
+ toggle13: Ve,
169
+ arrow: Ne,
170
+ arrow2: Te,
171
+ arrow3: Ue,
172
+ bouncingBar: We,
173
+ bouncingBall: Ye,
174
+ smiley: $e,
175
+ monkey: ze,
176
+ hearts: Qe,
177
+ clock: Ze,
178
+ earth: Ge,
179
+ material: Je,
180
+ moon: Xe,
181
+ runner: et,
182
+ pong: tt,
183
+ shark: rt,
184
+ dqpb: nt,
185
+ weather: st,
186
+ christmas: at,
187
+ grenade: _t,
188
+ point: ot,
189
+ layer: lt,
190
+ betaWave: it,
191
+ fingerDance: ct,
192
+ fistBump: mt,
193
+ soccerHeader: ft,
194
+ mindblown: vt,
195
+ speaker: ut,
196
+ orangePulse: dt,
197
+ bluePulse: gt,
198
+ orangeBluePulse: pt,
199
+ timeTravel: ht,
200
+ aesthetic: wt,
201
+ dwarfFortress: bt
202
+ };
203
+ var b, I;
204
+ function At() {
205
+ if (I) return b;
206
+ I = 1;
207
+ const e = Object.assign({}, xt), t = Object.keys(e);
208
+ return Object.defineProperty(e, "random", {
209
+ get() {
210
+ const o = Math.floor(Math.random() * t.length), n = t[o];
211
+ return e[n];
212
+ }
213
+ }), b = e, b;
214
+ }
215
+ var Ct = At();
216
+ const yt = /* @__PURE__ */ L(Ct);
217
+ function kt({ type: e = "dots" }) {
218
+ const [t, o] = u.useState(0), n = yt[e];
219
+ return u.useEffect(() => {
220
+ const m = setInterval(() => {
221
+ o((a) => a === n.frames.length - 1 ? 0 : a + 1);
222
+ }, n.interval);
223
+ return () => {
224
+ clearInterval(m);
225
+ };
226
+ }, [n]), q.createElement(x, null, n.frames[t]);
227
+ }
228
+ const jt = async () => {
229
+ if (!process.env.ANTHROPIC_API_KEY) return [];
230
+ let e = [];
231
+ for await (const t of new F().beta.models.list())
232
+ e.push({
233
+ id: t.id,
234
+ name: t.display_name,
235
+ provider: "anthropic"
236
+ });
237
+ return e;
238
+ }, It = async () => process.env.OPENAI_API_KEY ? new R().models.list().then(
239
+ (e) => e.data.map((t) => ({
240
+ id: t.id,
241
+ name: t.id,
242
+ provider: "openai"
243
+ })).sort((t, o) => t.id.localeCompare(o.id))
244
+ ) : [], Mt = async () => Promise.all([
245
+ jt().catch((e) => (console.log(e), [])),
246
+ It().catch((e) => (console.log(e), []))
247
+ ]).then((e) => e.flat());
248
+ export {
249
+ Pt as M,
250
+ kt as S,
251
+ Mt as g,
252
+ H as u
253
+ };