@agentage/components 0.21.0 → 0.22.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.
- package/README.md +15 -11
- package/dist/components/accordion.trigger.js +1 -1
- package/dist/components/approval-bar.d.ts +14 -0
- package/dist/components/approval-bar.d.ts.map +1 -0
- package/dist/components/approval-bar.js +40 -0
- package/dist/components/chat.icons.d.ts +6 -0
- package/dist/components/chat.icons.d.ts.map +1 -0
- package/dist/components/chat.icons.js +23 -0
- package/dist/components/check-list.js +1 -1
- package/dist/components/code-block.body.d.ts +7 -0
- package/dist/components/code-block.body.d.ts.map +1 -0
- package/dist/components/code-block.body.js +24 -0
- package/dist/components/code-block.d.ts +5 -1
- package/dist/components/code-block.d.ts.map +1 -1
- package/dist/components/code-block.js +39 -37
- package/dist/components/context-meter.d.ts +16 -0
- package/dist/components/context-meter.d.ts.map +1 -0
- package/dist/components/context-meter.js +58 -0
- package/dist/components/conversation.d.ts +13 -0
- package/dist/components/conversation.d.ts.map +1 -0
- package/dist/components/conversation.js +61 -0
- package/dist/components/data-table.variants.d.ts.map +1 -1
- package/dist/components/data-table.variants.js +2 -2
- package/dist/components/data-view.board-card.d.ts.map +1 -1
- package/dist/components/data-view.board-card.js +1 -1
- package/dist/components/data-view.d.ts +1 -1
- package/dist/components/data-view.d.ts.map +1 -1
- package/dist/components/data-view.hooks.d.ts +2 -3
- package/dist/components/data-view.hooks.d.ts.map +1 -1
- package/dist/components/data-view.hooks.js +7 -7
- package/dist/components/data-view.types.d.ts +6 -4
- package/dist/components/data-view.types.d.ts.map +1 -1
- package/dist/components/description-list.property.js +1 -1
- package/dist/components/group-header.js +1 -1
- package/dist/components/index.d.ts +19 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +10 -1
- package/dist/components/log-view.row.d.ts.map +1 -1
- package/dist/components/log-view.row.js +26 -27
- package/dist/components/markdown.d.ts +11 -0
- package/dist/components/markdown.d.ts.map +1 -0
- package/dist/components/markdown.js +21 -0
- package/dist/components/markdown.parts.d.ts +4 -0
- package/dist/components/markdown.parts.d.ts.map +1 -0
- package/dist/components/markdown.parts.js +91 -0
- package/dist/components/menu.variants.js +1 -1
- package/dist/components/message.d.ts +10 -0
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/message.js +22 -0
- package/dist/components/prompt-input.d.ts +22 -0
- package/dist/components/prompt-input.d.ts.map +1 -0
- package/dist/components/prompt-input.js +59 -0
- package/dist/components/reasoning.d.ts +13 -0
- package/dist/components/reasoning.d.ts.map +1 -0
- package/dist/components/reasoning.js +43 -0
- package/dist/components/row.variants.d.ts.map +1 -1
- package/dist/components/row.variants.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tool-call.d.ts +25 -0
- package/dist/components/tool-call.d.ts.map +1 -0
- package/dist/components/tool-call.js +52 -0
- package/dist/components/tool-call.parts.d.ts +29 -0
- package/dist/components/tool-call.parts.d.ts.map +1 -0
- package/dist/components/tool-call.parts.js +96 -0
- package/dist/components/tool-group.d.ts +20 -0
- package/dist/components/tool-group.d.ts.map +1 -0
- package/dist/components/tool-group.js +49 -0
- package/dist/index.js +10 -1
- package/dist/lib/highlight-code.d.ts +9 -0
- package/dist/lib/highlight-code.d.ts.map +1 -0
- package/dist/lib/highlight-code.js +67 -0
- package/dist/lib/utils.d.ts +4 -4
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/package.json +40 -4
- package/src/styles/syntax.css +92 -0
- package/src/styles/theme.css +3 -0
- package/src/styles/tokens.css +68 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { useControlled as t } from "../lib/use-controlled.js";
|
|
4
|
+
import { BulbIcon as n } from "./chat.icons.js";
|
|
5
|
+
import { Disclosure as r } from "./disclosure.js";
|
|
6
|
+
import { ToolRow as i } from "./tool-call.parts.js";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
// src/components/reasoning.tsx
|
|
10
|
+
var c = a.forwardRef(({ seconds: c, status: l = "done", open: u, defaultOpen: d = !1, onOpenChange: f, className: p, children: m, ...h }, g) => {
|
|
11
|
+
let [_, v] = t(u, d, f), y = a.useId(), b = m != null && m !== "", x = String(Math.round(c));
|
|
12
|
+
return /* @__PURE__ */ s("div", {
|
|
13
|
+
ref: g,
|
|
14
|
+
className: e("min-w-0", p),
|
|
15
|
+
"data-slot": "reasoning",
|
|
16
|
+
...h,
|
|
17
|
+
children: [/* @__PURE__ */ o(i, {
|
|
18
|
+
glyph: /* @__PURE__ */ o("span", {
|
|
19
|
+
className: "text-muted-foreground",
|
|
20
|
+
children: /* @__PURE__ */ o(n, {})
|
|
21
|
+
}),
|
|
22
|
+
nested: !0,
|
|
23
|
+
open: b ? _ : void 0,
|
|
24
|
+
"aria-controls": b ? y : void 0,
|
|
25
|
+
onClick: () => v(!_),
|
|
26
|
+
className: "pl-0.5",
|
|
27
|
+
children: /* @__PURE__ */ o("span", {
|
|
28
|
+
className: e("min-w-0 flex-1 truncate text-ui", l === "done" ? "text-muted-foreground" : "text-foreground"),
|
|
29
|
+
children: l === "running" ? `Thinking ${x} s` : `Thought for ${x} s`
|
|
30
|
+
})
|
|
31
|
+
}), b && /* @__PURE__ */ o(r, {
|
|
32
|
+
open: _,
|
|
33
|
+
id: y,
|
|
34
|
+
shrink: !0,
|
|
35
|
+
children: /* @__PURE__ */ o("div", {
|
|
36
|
+
className: "mb-0.5 ml-2 mt-0.5 border-l-2 border-border py-0.5 pl-3 text-ui leading-[1.55] text-muted-foreground",
|
|
37
|
+
children: m
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
c.displayName = "Reasoning";
|
|
43
|
+
export { c as Reasoning };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row.variants.d.ts","sourceRoot":"","sources":["../../src/components/row.variants.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;
|
|
1
|
+
{"version":3,"file":"row.variants.d.ts","sourceRoot":"","sources":["../../src/components/row.variants.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;8EA4BvB,CAAC"}
|
|
@@ -10,7 +10,7 @@ var n = t("relative flex w-full min-w-0 items-center text-left text-ui transitio
|
|
|
10
10
|
stacked: "h-[54px] flex-col items-stretch justify-center gap-0.5 px-2.5"
|
|
11
11
|
},
|
|
12
12
|
interactive: {
|
|
13
|
-
true: ["cursor-pointer hover:bg-accent", "hover:
|
|
13
|
+
true: ["cursor-pointer hover:bg-accent", "hover:on-accent"],
|
|
14
14
|
false: ""
|
|
15
15
|
},
|
|
16
16
|
selected: {
|
package/dist/components/table.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as t from "react";
|
|
|
3
3
|
import { cva as n } from "class-variance-authority";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
// src/components/table.tsx
|
|
6
|
-
var i = "h-8 bg-background px-3 text-left align-middle text-xs font-normal text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0", a = "h-9 px-3 py-0 align-middle [&:has([role=checkbox])]:pr-0", o = e("border-b border-border transition-colors duration-fast hover:bg-accent data-[state=selected]:bg-accent", "hover:
|
|
6
|
+
var i = "h-8 bg-background px-3 text-left align-middle text-xs font-normal text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0", a = "h-9 px-3 py-0 align-middle [&:has([role=checkbox])]:pr-0", o = e("border-b border-border transition-colors duration-fast hover:bg-accent data-[state=selected]:bg-accent", "hover:on-accent", "data-[state=selected]:on-accent"), s = n("", {
|
|
7
7
|
variants: { sticky: {
|
|
8
8
|
true: "sticky top-0 z-10",
|
|
9
9
|
false: ""
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ToolCallStatus } from './tool-call.parts.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type { ToolCallStatus } from './tool-call.parts.js';
|
|
4
|
+
export interface ToolCallProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
|
+
/** The tool, as `server.tool`; the server prefix is dimmed. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** One line after the name, for example the main argument or the error. */
|
|
8
|
+
summary?: React.ReactNode;
|
|
9
|
+
status: ToolCallStatus;
|
|
10
|
+
/** For example "1.7 s". */
|
|
11
|
+
duration?: React.ReactNode;
|
|
12
|
+
/** Arguments: an object is shown as highlighted JSON, a string as is. */
|
|
13
|
+
input?: unknown;
|
|
14
|
+
/** Result, or the error text when `status` is `failed`. */
|
|
15
|
+
output?: unknown;
|
|
16
|
+
open?: boolean;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
onOpenChange?: (open: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* One tool call: a 32 px row (status, name, summary, duration) that opens its input and output.
|
|
22
|
+
* `children` go between input and output, for example an ApprovalBar while `status` is `waiting`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ToolCall: React.ForwardRefExoticComponent<ToolCallProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
//# sourceMappingURL=tool-call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../src/components/tool-call.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACxF,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,sFA0EpB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { useControlled as t } from "../lib/use-controlled.js";
|
|
4
|
+
import { Disclosure as n } from "./disclosure.js";
|
|
5
|
+
import { Payload as r, StatusMark as i, ToolGroupContext as a, ToolName as o, ToolRow as s } from "./tool-call.parts.js";
|
|
6
|
+
import * as c from "react";
|
|
7
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
// src/components/tool-call.tsx
|
|
9
|
+
var d = c.forwardRef(({ name: d, summary: f, status: p, duration: m, input: h, output: g, open: _, defaultOpen: v = !1, onOpenChange: y, className: b, children: x, ...S }, C) => {
|
|
10
|
+
let w = c.useContext(a), [T, E] = t(_, v, y), D = c.useId(), O = h !== void 0 || g !== void 0 || x != null, k = p === "failed";
|
|
11
|
+
return /* @__PURE__ */ u("div", {
|
|
12
|
+
ref: C,
|
|
13
|
+
className: e("min-w-0", !w && "rounded-lg border border-border bg-background", !w && p === "waiting" && "border-primary/60", b),
|
|
14
|
+
"data-slot": "tool-call",
|
|
15
|
+
"data-status": p,
|
|
16
|
+
...S,
|
|
17
|
+
children: [/* @__PURE__ */ u(s, {
|
|
18
|
+
glyph: /* @__PURE__ */ l(i, { status: p }),
|
|
19
|
+
duration: m,
|
|
20
|
+
nested: w,
|
|
21
|
+
open: O ? T : void 0,
|
|
22
|
+
"aria-controls": O ? D : void 0,
|
|
23
|
+
onClick: () => E(!T),
|
|
24
|
+
children: [/* @__PURE__ */ l(o, { name: d }), /* @__PURE__ */ l("span", {
|
|
25
|
+
className: e("min-w-0 flex-1 truncate text-xs", k ? "text-destructive" : "text-muted-foreground"),
|
|
26
|
+
children: f
|
|
27
|
+
})]
|
|
28
|
+
}), O && /* @__PURE__ */ l(n, {
|
|
29
|
+
open: T,
|
|
30
|
+
id: D,
|
|
31
|
+
shrink: !0,
|
|
32
|
+
children: /* @__PURE__ */ u("div", {
|
|
33
|
+
className: e("flex flex-col gap-1.5 px-2.5 pb-2.5 pt-2", !w && "border-t border-border"),
|
|
34
|
+
"data-slot": "tool-call-body",
|
|
35
|
+
children: [
|
|
36
|
+
h !== void 0 && /* @__PURE__ */ l(r, {
|
|
37
|
+
label: "Input",
|
|
38
|
+
value: h
|
|
39
|
+
}),
|
|
40
|
+
x,
|
|
41
|
+
g !== void 0 && /* @__PURE__ */ l(r, {
|
|
42
|
+
label: k ? "Error" : "Output",
|
|
43
|
+
value: g,
|
|
44
|
+
error: k
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
d.displayName = "ToolCall";
|
|
52
|
+
export { d as ToolCall };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StatusGlyphProps } from './status-glyph.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ToolCallStatus = 'running' | 'succeeded' | 'failed' | 'waiting';
|
|
4
|
+
export declare const TOOL_GLYPH: Record<ToolCallStatus, Pick<StatusGlyphProps, 'shape' | 'tone' | 'pulse' | 'label'>>;
|
|
5
|
+
/** Set by ToolGroup: its calls render as flat 28 px rows inside the group body. */
|
|
6
|
+
export declare const ToolGroupContext: React.Context<boolean>;
|
|
7
|
+
/** `server.tool` with the server prefix dimmed. */
|
|
8
|
+
export declare const ToolName: ({ name }: {
|
|
9
|
+
name: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export interface ToolRowProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
|
+
glyph: React.ReactNode;
|
|
13
|
+
duration?: React.ReactNode;
|
|
14
|
+
/** Set when the row toggles a body: it is a button with a turning chevron. */
|
|
15
|
+
open?: boolean;
|
|
16
|
+
nested?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** The one header row of a tool call, group or reasoning line: glyph, text, duration, chevron. */
|
|
19
|
+
export declare const ToolRow: ({ glyph, duration, open, nested, className, children, ...props }: ToolRowProps) => React.JSX.Element;
|
|
20
|
+
export declare const StatusMark: ({ status }: {
|
|
21
|
+
status: ToolCallStatus;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
/** One labelled payload (Input, Output or Error): JSON highlighted, errors in the danger tone. */
|
|
24
|
+
export declare const Payload: ({ label, value, error, }: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: unknown;
|
|
27
|
+
error?: boolean;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
|
+
//# sourceMappingURL=tool-call.parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-call.parts.d.ts","sourceRoot":"","sources":["../../src/components/tool-call.parts.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5E,eAAO,MAAM,UAAU,EAAE,MAAM,CAC7B,cAAc,EACd,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,CAM7D,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,wBAA6B,CAAC;AAE3D,mDAAmD;AACnD,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,sBAQlD,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACjF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8EAA8E;IAC9E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAID,kGAAkG;AAClG,eAAO,MAAM,OAAO,GAAI,kEAQrB,YAAY,sBAkCd,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,YAAY;IAAE,MAAM,EAAE,cAAc,CAAA;CAAE,sBAEhE,CAAC;AAoBF,kGAAkG;AAClG,eAAO,MAAM,OAAO,GAAI,0BAIrB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,sBA0BA,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { MUTED_ON_HOVER as e, cn as t } from "../lib/utils.js";
|
|
3
|
+
import { highlightCode as n } from "../lib/highlight-code.js";
|
|
4
|
+
import { DisclosureChevron as r } from "./disclosure.js";
|
|
5
|
+
import { StatusGlyph as i } from "./status-glyph.js";
|
|
6
|
+
import * as a from "react";
|
|
7
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
// src/components/tool-call.parts.tsx
|
|
9
|
+
var l = {
|
|
10
|
+
running: {
|
|
11
|
+
shape: "disc",
|
|
12
|
+
tone: "primary",
|
|
13
|
+
pulse: !0,
|
|
14
|
+
label: "Running"
|
|
15
|
+
},
|
|
16
|
+
succeeded: {
|
|
17
|
+
shape: "check",
|
|
18
|
+
tone: "success",
|
|
19
|
+
label: "Succeeded"
|
|
20
|
+
},
|
|
21
|
+
failed: {
|
|
22
|
+
shape: "cross",
|
|
23
|
+
tone: "destructive",
|
|
24
|
+
label: "Failed"
|
|
25
|
+
},
|
|
26
|
+
waiting: {
|
|
27
|
+
shape: "alert",
|
|
28
|
+
tone: "primary",
|
|
29
|
+
label: "Waiting for approval"
|
|
30
|
+
}
|
|
31
|
+
}, u = a.createContext(!1), d = ({ name: e }) => {
|
|
32
|
+
let t = e.indexOf(".");
|
|
33
|
+
return /* @__PURE__ */ c("span", {
|
|
34
|
+
className: "flex-none whitespace-nowrap font-mono text-xs text-foreground",
|
|
35
|
+
children: [t > 0 && /* @__PURE__ */ s("span", {
|
|
36
|
+
className: "text-muted-foreground",
|
|
37
|
+
children: e.slice(0, t + 1)
|
|
38
|
+
}), t > 0 ? e.slice(t + 1) : e]
|
|
39
|
+
});
|
|
40
|
+
}, f = "flex w-full min-w-0 items-center gap-2 pl-2.5 pr-1.5 text-left", p = ({ glyph: n, duration: i, open: a, nested: l, className: u, children: d, ...p }) => {
|
|
41
|
+
let m = /* @__PURE__ */ c(o, { children: [
|
|
42
|
+
/* @__PURE__ */ s("span", {
|
|
43
|
+
className: "grid size-3.5 flex-none place-items-center",
|
|
44
|
+
children: n
|
|
45
|
+
}),
|
|
46
|
+
d,
|
|
47
|
+
i !== void 0 && /* @__PURE__ */ s("span", {
|
|
48
|
+
className: "w-11 flex-none text-right text-xs tabular-nums text-muted-foreground",
|
|
49
|
+
children: i
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ s("span", {
|
|
52
|
+
className: "grid size-4 flex-none place-items-center",
|
|
53
|
+
children: a !== void 0 && /* @__PURE__ */ s(r, { open: a })
|
|
54
|
+
})
|
|
55
|
+
] }), h = l ? "h-7" : "h-8";
|
|
56
|
+
return a === void 0 ? /* @__PURE__ */ s("div", {
|
|
57
|
+
className: t(f, h, "cursor-default", u),
|
|
58
|
+
children: m
|
|
59
|
+
}) : /* @__PURE__ */ s("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
"aria-expanded": a,
|
|
62
|
+
className: t(f, h, "rounded-lg hover:bg-accent focus-ring", e, u),
|
|
63
|
+
...p,
|
|
64
|
+
children: m
|
|
65
|
+
});
|
|
66
|
+
}, m = ({ status: e }) => /* @__PURE__ */ s(i, { ...l[e] }), h = (e) => {
|
|
67
|
+
try {
|
|
68
|
+
return String(e);
|
|
69
|
+
} catch {
|
|
70
|
+
return "[unprintable value]";
|
|
71
|
+
}
|
|
72
|
+
}, g = (e) => {
|
|
73
|
+
if (typeof e == "string") return e;
|
|
74
|
+
try {
|
|
75
|
+
return JSON.stringify(e, null, 2) ?? h(e);
|
|
76
|
+
} catch {
|
|
77
|
+
return h(e);
|
|
78
|
+
}
|
|
79
|
+
}, _ = ({ label: e, value: r, error: i }) => {
|
|
80
|
+
let o = a.useMemo(() => g(r), [r]), l = a.useMemo(() => i ? null : n(o, "json"), [o, i]);
|
|
81
|
+
return /* @__PURE__ */ c("div", {
|
|
82
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
83
|
+
children: [/* @__PURE__ */ s("span", {
|
|
84
|
+
className: "flex h-5 items-center text-2xs uppercase tracking-[0.08em] text-muted-foreground",
|
|
85
|
+
children: e
|
|
86
|
+
}), /* @__PURE__ */ s("pre", {
|
|
87
|
+
tabIndex: 0,
|
|
88
|
+
className: t("m-0 max-h-[180px] overflow-auto whitespace-pre-wrap rounded-md border border-border bg-card px-2 py-1.5 font-mono text-xs leading-[1.55] [overflow-wrap:anywhere] focus-ring", i && "text-destructive"),
|
|
89
|
+
children: l === null ? o : /* @__PURE__ */ s("code", {
|
|
90
|
+
className: "hljs",
|
|
91
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
92
|
+
})
|
|
93
|
+
})]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
export { _ as Payload, m as StatusMark, l as TOOL_GLYPH, u as ToolGroupContext, d as ToolName, p as ToolRow };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ToolGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
/** `running` reads "Step N of M", `succeeded` "Completed N steps", `failed` "Stopped at step N". */
|
|
4
|
+
status: 'running' | 'succeeded' | 'failed';
|
|
5
|
+
/**
|
|
6
|
+
* M in "Step N of M": the planned number of steps. Default: the number of calls so far. N counts
|
|
7
|
+
* the direct `ToolCall` children only; calls nested inside a wrapper element are not counted.
|
|
8
|
+
*/
|
|
9
|
+
total?: number;
|
|
10
|
+
/** For example "3.1 s". */
|
|
11
|
+
duration?: React.ReactNode;
|
|
12
|
+
/** Replaces the counted title. */
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
onOpenChange?: (open: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
/** A run of ToolCall steps folded under one 32 px row; open it to see each call. */
|
|
19
|
+
export declare const ToolGroup: React.ForwardRefExoticComponent<ToolGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
//# sourceMappingURL=tool-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-group.d.ts","sourceRoot":"","sources":["../../src/components/tool-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzF,oGAAoG;IACpG,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAQD,oFAAoF;AACpF,eAAO,MAAM,SAAS,uFAuDrB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { useControlled as t } from "../lib/use-controlled.js";
|
|
4
|
+
import { Disclosure as n } from "./disclosure.js";
|
|
5
|
+
import { StatusMark as r, ToolGroupContext as i, ToolRow as a } from "./tool-call.parts.js";
|
|
6
|
+
import * as o from "react";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
// src/components/tool-group.tsx
|
|
9
|
+
var l = (e) => {
|
|
10
|
+
let t = o.Children.toArray(e).filter(o.isValidElement).at(-1)?.props;
|
|
11
|
+
return typeof t?.name == "string" ? t.name : void 0;
|
|
12
|
+
}, u = o.forwardRef(({ status: u, total: d, duration: f, label: p, open: m, defaultOpen: h = !1, onOpenChange: g, className: _, children: v, ...y }, b) => {
|
|
13
|
+
let [x, S] = t(m, h, g), C = o.useId(), w = o.Children.toArray(v).filter(o.isValidElement).length, T = p ?? (u === "running" ? `Step ${String(w)} of ${String(Math.max(d ?? w, w))}` : u === "failed" ? `Stopped at step ${String(w)}` : `Completed ${String(w)} ${w === 1 ? "step" : "steps"}`), E = u === "running" ? l(v) : void 0;
|
|
14
|
+
return /* @__PURE__ */ c("div", {
|
|
15
|
+
ref: b,
|
|
16
|
+
className: e("min-w-0 rounded-lg border border-border bg-background", _),
|
|
17
|
+
"data-slot": "tool-group",
|
|
18
|
+
"data-status": u,
|
|
19
|
+
...y,
|
|
20
|
+
children: [/* @__PURE__ */ c(a, {
|
|
21
|
+
glyph: /* @__PURE__ */ s(r, { status: u }),
|
|
22
|
+
duration: f,
|
|
23
|
+
open: x,
|
|
24
|
+
"aria-controls": C,
|
|
25
|
+
onClick: () => S(!x),
|
|
26
|
+
children: [/* @__PURE__ */ s("span", {
|
|
27
|
+
className: "flex-none whitespace-nowrap text-xs text-foreground",
|
|
28
|
+
children: T
|
|
29
|
+
}), /* @__PURE__ */ s("span", {
|
|
30
|
+
className: "min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",
|
|
31
|
+
children: E
|
|
32
|
+
})]
|
|
33
|
+
}), /* @__PURE__ */ s(n, {
|
|
34
|
+
open: x,
|
|
35
|
+
id: C,
|
|
36
|
+
shrink: !0,
|
|
37
|
+
children: /* @__PURE__ */ s("div", {
|
|
38
|
+
className: "border-t border-border py-1",
|
|
39
|
+
"data-slot": "tool-group-body",
|
|
40
|
+
children: /* @__PURE__ */ s(i.Provider, {
|
|
41
|
+
value: !0,
|
|
42
|
+
children: v
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
u.displayName = "ToolGroup";
|
|
49
|
+
export { u as ToolGroup };
|
package/dist/index.js
CHANGED
|
@@ -93,4 +93,13 @@ import { Tooltip as Jt } from "./components/tooltip.js";
|
|
|
93
93
|
import { ActionBar as Yt } from "./components/action-bar.js";
|
|
94
94
|
import { DirtyBar as Xt } from "./components/dirty-bar.js";
|
|
95
95
|
import { ToastProvider as Zt, useToast as Qt } from "./components/toast.js";
|
|
96
|
-
|
|
96
|
+
import { ApprovalBar as $t } from "./components/approval-bar.js";
|
|
97
|
+
import { ContextMeter as en, meterTone as tn } from "./components/context-meter.js";
|
|
98
|
+
import { Conversation as nn } from "./components/conversation.js";
|
|
99
|
+
import { Markdown as rn } from "./components/markdown.js";
|
|
100
|
+
import { Message as an } from "./components/message.js";
|
|
101
|
+
import { PromptInput as on } from "./components/prompt-input.js";
|
|
102
|
+
import { Reasoning as sn } from "./components/reasoning.js";
|
|
103
|
+
import { ToolCall as cn } from "./components/tool-call.js";
|
|
104
|
+
import { ToolGroup as ln } from "./components/tool-group.js";
|
|
105
|
+
export { tt as Accordion, nt as AccordionContent, rt as AccordionItem, et as AccordionTrigger, Yt as ActionBar, Ge as ActiveFilters, dt as Alert, $t as ApprovalBar, t as Avatar, n as Badge, W as Breadcrumb, G as BreadcrumbItem, K as BreadcrumbLink, q as BreadcrumbList, J as BreadcrumbPage, Y as BreadcrumbSeparator, i as Button, ze as Card, Fe as CardAction, Be as CardContent, Ie as CardDescription, Ve as CardFooter, Le as CardHeader, Pe as CardMeta, Re as CardTitle, it as CheckItem, at as CheckList, y as Checkbox, a as Chip, ot as CodeBlock, ct as Collapsible, lt as CollapsibleContent, ut as CollapsibleTrigger, Ft as Command, jt as CommandEmpty, Mt as CommandGroup, Nt as CommandItem, Pt as CommandSeparator, gt as ContentBlocks, en as ContextMeter, nn as Conversation, o as CopyButton, ue as DataTree, Xe as DataView, E as DatePicker, ft as DescriptionDetail, pt as DescriptionGroup, mt as DescriptionList, ht as DescriptionTerm, It as Dialog, Lt as DialogFooter, Xt as DirtyBar, S as Disclosure, We as DisplayMenu, ke as DropdownMenu, Ce as DropdownMenuCheckboxItem, we as DropdownMenuItem, Te as DropdownMenuLabel, Ee as DropdownMenuRadioGroup, De as DropdownMenuRadioItem, Oe as DropdownMenuSeparator, de as EMPTY_LIST_CONTROLS, je as EmptyState, Ue as FilterMenu, D as FormField, me as GroupHeader, s as IconButton, st as InlineCode, O as InlineEdit, C as Input, c as Kbd, k as Label, Qe as List, Ze as ListRow, qe as ListToolbar, Je as ListToolbarEnd, $e as LogView, rn as Markdown, an as Message, X as MetaItem, Tt as MiniBars, B as NavRow, V as NavTree, l as PRIORITY_LABEL, Z as PageHeader, Q as Pagination, T as Popover, u as PriorityGlyph, wt as Progress, on as PromptInput, _t as Property, xt as PropertyDate, St as PropertyMultiSelect, Ct as PropertySelect, vt as PropertyText, yt as PropertyValue, d as Prose, A as RadioGroup, j as RadioGroupItem, sn as Reasoning, Ne as RelativeTime, Vt as ResizableHandle, Ht as ResizablePanel, Ut as ResizablePanelGroup, Gt as ResizableSplit, Kt as ResizableSplitPrepaint, M as SecretInput, N as Section, $ as SectionIndex, P as SectionLabel, F as Select, qt as Sheet, ee as Sidebar, te as SidebarContent, ne as SidebarFooter, re as SidebarGroup, ie as SidebarGroupLabel, ae as SidebarHeader, f as Skeleton, Et as Sparkline, p as Spinner, Dt as StatCard, Ot as StatusBar, m as StatusGlyph, kt as Step, At as StepList, I as Switch, he as Table, ge as TableBody, _e as TableCaption, ve as TableCell, ye as TableFooter, be as TableHead, xe as TableHeader, Se as TableRow, se as Tabs, ce as TabsContent, le as TabsList, oe as TabsTrigger, w as Textarea, Zt as ToastProvider, L as ToggleButton, R as ToggleGroup, cn as ToolCall, ln as ToolGroup, He as ToolbarSearch, Ye as ToolbarToggle, Jt as Tooltip, H as TreeSelect, z as Truncate, Ke as ViewSwitch, fe as activeFilterCount, _ as activeSection, h as announce, pe as applyListControls, r as buttonVariants, e as cn, U as describeCron, bt as formatPropertyDate, Me as formatRelativeTime, tn as meterTone, b as parseRelativeRange, Rt as resizableSplitCollapsedVar, zt as resizableSplitPrepaint, Bt as resizableSplitVar, x as resolveDateRange, g as useAnnounce, Ae as useListControls, Wt as useResizableSplit, v as useScrollSpy, Qt as useToast };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** The registered language a name or alias resolves to, or undefined when it is not known. */
|
|
2
|
+
export declare const codeLanguage: (language?: string) => string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Highlighted HTML for `code`, or null for an unknown language. The output is escaped by
|
|
5
|
+
* highlight.js (only its own `hljs-*` spans are markup), so it is safe as inner HTML. It never
|
|
6
|
+
* throws: if highlighting fails, the escaped plain text comes back.
|
|
7
|
+
*/
|
|
8
|
+
export declare const highlightCode: (code: string, language?: string) => string | null;
|
|
9
|
+
//# sourceMappingURL=highlight-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight-code.d.ts","sourceRoot":"","sources":["../../src/lib/highlight-code.ts"],"names":[],"mappings":"AA+DA,8FAA8F;AAC9F,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,KAAG,MAAM,GAAG,SAKzD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,WAAW,MAAM,KAAG,MAAM,GAAG,IASxE,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import e from "highlight.js/lib/core";
|
|
2
|
+
import t from "highlight.js/lib/languages/bash";
|
|
3
|
+
import n from "highlight.js/lib/languages/css";
|
|
4
|
+
import r from "highlight.js/lib/languages/diff";
|
|
5
|
+
import i from "highlight.js/lib/languages/dockerfile";
|
|
6
|
+
import a from "highlight.js/lib/languages/go";
|
|
7
|
+
import o from "highlight.js/lib/languages/javascript";
|
|
8
|
+
import s from "highlight.js/lib/languages/json";
|
|
9
|
+
import c from "highlight.js/lib/languages/markdown";
|
|
10
|
+
import l from "highlight.js/lib/languages/python";
|
|
11
|
+
import u from "highlight.js/lib/languages/shell";
|
|
12
|
+
import d from "highlight.js/lib/languages/sql";
|
|
13
|
+
import f from "highlight.js/lib/languages/typescript";
|
|
14
|
+
import p from "highlight.js/lib/languages/xml";
|
|
15
|
+
import m from "highlight.js/lib/languages/yaml";
|
|
16
|
+
// src/lib/highlight-code.ts
|
|
17
|
+
var h = {
|
|
18
|
+
typescript: f,
|
|
19
|
+
javascript: o,
|
|
20
|
+
bash: t,
|
|
21
|
+
shell: u,
|
|
22
|
+
yaml: m,
|
|
23
|
+
json: s,
|
|
24
|
+
python: l,
|
|
25
|
+
sql: d,
|
|
26
|
+
diff: r,
|
|
27
|
+
xml: p,
|
|
28
|
+
css: n,
|
|
29
|
+
markdown: c,
|
|
30
|
+
go: a,
|
|
31
|
+
dockerfile: i
|
|
32
|
+
}, g = {
|
|
33
|
+
"&": "&",
|
|
34
|
+
"<": "<",
|
|
35
|
+
">": ">",
|
|
36
|
+
"\"": """,
|
|
37
|
+
"'": "'"
|
|
38
|
+
}, _ = (e) => e.replace(/[&<>"']/g, (e) => g[e] ?? e), v = {
|
|
39
|
+
ts: "typescript",
|
|
40
|
+
tsx: "typescript",
|
|
41
|
+
js: "javascript",
|
|
42
|
+
jsx: "javascript",
|
|
43
|
+
sh: "bash",
|
|
44
|
+
zsh: "bash",
|
|
45
|
+
yml: "yaml",
|
|
46
|
+
html: "xml"
|
|
47
|
+
}, y = !1, b = () => {
|
|
48
|
+
if (!y) {
|
|
49
|
+
for (let [t, n] of Object.entries(h)) e.registerLanguage(t, n);
|
|
50
|
+
y = !0;
|
|
51
|
+
}
|
|
52
|
+
}, x = (e) => {
|
|
53
|
+
let t = e?.trim().toLowerCase();
|
|
54
|
+
if (t) return Object.hasOwn(h, t) ? t : Object.hasOwn(v, t) ? v[t] : void 0;
|
|
55
|
+
}, S = (t, n) => {
|
|
56
|
+
let r = x(n);
|
|
57
|
+
if (!r) return null;
|
|
58
|
+
try {
|
|
59
|
+
return b(), e.highlight(t, {
|
|
60
|
+
language: r,
|
|
61
|
+
ignoreIllegals: !0
|
|
62
|
+
}).value;
|
|
63
|
+
} catch {
|
|
64
|
+
return _(t);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export { x as codeLanguage, S as highlightCode };
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* The `on-accent` class (src/styles/tokens.css): muted and destructive text on an accent surface
|
|
5
|
+
* keeps AA contrast in both themes.
|
|
6
6
|
*/
|
|
7
|
-
export declare const MUTED_ON_ACCENT = "
|
|
7
|
+
export declare const MUTED_ON_ACCENT = "on-accent";
|
|
8
8
|
/** `MUTED_ON_ACCENT` for surfaces that turn accent on hover. */
|
|
9
|
-
export declare const MUTED_ON_HOVER = "hover:
|
|
9
|
+
export declare const MUTED_ON_HOVER = "hover:on-accent";
|
|
10
10
|
/** Default number format: a fixed locale, so the server and the browser render the same text. */
|
|
11
11
|
export declare const formatNumber: (n: number) => string;
|
|
12
12
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAM7C,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,KAAG,MAA+B,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAM7C,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,KAAG,MAA+B,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,gEAAgE;AAChE,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAEhD,iGAAiG;AACjG,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,KAAG,MAAmC,CAAC"}
|
package/dist/lib/utils.js
CHANGED
|
@@ -5,5 +5,5 @@ var n = t({ extend: { theme: { text: [
|
|
|
5
5
|
"3xs",
|
|
6
6
|
"2xs",
|
|
7
7
|
"ui"
|
|
8
|
-
] } } }), r = (...t) => n(e(t)), i = "
|
|
8
|
+
] } } }), r = (...t) => n(e(t)), i = "on-accent", a = "hover:on-accent", o = (e) => e.toLocaleString("en-US");
|
|
9
9
|
export { i as MUTED_ON_ACCENT, a as MUTED_ON_HOVER, r as cn, o as formatNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Agentage Components - OKLCH design tokens and accessible React 19 components. RSC-safe (per-module \"use client\"), Tailwind CSS v4, tree-shakeable ESM with per-component subpath exports.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
"types": "./dist/components/alert.d.ts",
|
|
53
53
|
"import": "./dist/components/alert.js"
|
|
54
54
|
},
|
|
55
|
+
"./approval-bar": {
|
|
56
|
+
"types": "./dist/components/approval-bar.d.ts",
|
|
57
|
+
"import": "./dist/components/approval-bar.js"
|
|
58
|
+
},
|
|
55
59
|
"./avatar": {
|
|
56
60
|
"types": "./dist/components/avatar.d.ts",
|
|
57
61
|
"import": "./dist/components/avatar.js"
|
|
@@ -104,6 +108,14 @@
|
|
|
104
108
|
"types": "./dist/components/content-blocks.d.ts",
|
|
105
109
|
"import": "./dist/components/content-blocks.js"
|
|
106
110
|
},
|
|
111
|
+
"./context-meter": {
|
|
112
|
+
"types": "./dist/components/context-meter.d.ts",
|
|
113
|
+
"import": "./dist/components/context-meter.js"
|
|
114
|
+
},
|
|
115
|
+
"./conversation": {
|
|
116
|
+
"types": "./dist/components/conversation.d.ts",
|
|
117
|
+
"import": "./dist/components/conversation.js"
|
|
118
|
+
},
|
|
107
119
|
"./copy-button": {
|
|
108
120
|
"types": "./dist/components/copy-button.d.ts",
|
|
109
121
|
"import": "./dist/components/copy-button.js"
|
|
@@ -196,6 +208,14 @@
|
|
|
196
208
|
"types": "./dist/components/log-view.d.ts",
|
|
197
209
|
"import": "./dist/components/log-view.js"
|
|
198
210
|
},
|
|
211
|
+
"./markdown": {
|
|
212
|
+
"types": "./dist/components/markdown.d.ts",
|
|
213
|
+
"import": "./dist/components/markdown.js"
|
|
214
|
+
},
|
|
215
|
+
"./message": {
|
|
216
|
+
"types": "./dist/components/message.d.ts",
|
|
217
|
+
"import": "./dist/components/message.js"
|
|
218
|
+
},
|
|
199
219
|
"./nav-tree": {
|
|
200
220
|
"types": "./dist/components/nav-tree.d.ts",
|
|
201
221
|
"import": "./dist/components/nav-tree.js"
|
|
@@ -220,6 +240,10 @@
|
|
|
220
240
|
"types": "./dist/components/progress.d.ts",
|
|
221
241
|
"import": "./dist/components/progress.js"
|
|
222
242
|
},
|
|
243
|
+
"./prompt-input": {
|
|
244
|
+
"types": "./dist/components/prompt-input.d.ts",
|
|
245
|
+
"import": "./dist/components/prompt-input.js"
|
|
246
|
+
},
|
|
223
247
|
"./property-date": {
|
|
224
248
|
"types": "./dist/components/property-date.d.ts",
|
|
225
249
|
"import": "./dist/components/property-date.js"
|
|
@@ -240,6 +264,10 @@
|
|
|
240
264
|
"types": "./dist/components/radio-group.d.ts",
|
|
241
265
|
"import": "./dist/components/radio-group.js"
|
|
242
266
|
},
|
|
267
|
+
"./reasoning": {
|
|
268
|
+
"types": "./dist/components/reasoning.d.ts",
|
|
269
|
+
"import": "./dist/components/reasoning.js"
|
|
270
|
+
},
|
|
243
271
|
"./relative-time": {
|
|
244
272
|
"types": "./dist/components/relative-time.d.ts",
|
|
245
273
|
"import": "./dist/components/relative-time.js"
|
|
@@ -332,6 +360,14 @@
|
|
|
332
360
|
"types": "./dist/components/toggle-group.d.ts",
|
|
333
361
|
"import": "./dist/components/toggle-group.js"
|
|
334
362
|
},
|
|
363
|
+
"./tool-call": {
|
|
364
|
+
"types": "./dist/components/tool-call.d.ts",
|
|
365
|
+
"import": "./dist/components/tool-call.js"
|
|
366
|
+
},
|
|
367
|
+
"./tool-group": {
|
|
368
|
+
"types": "./dist/components/tool-group.d.ts",
|
|
369
|
+
"import": "./dist/components/tool-group.js"
|
|
370
|
+
},
|
|
335
371
|
"./tooltip": {
|
|
336
372
|
"types": "./dist/components/tooltip.d.ts",
|
|
337
373
|
"import": "./dist/components/tooltip.js"
|
|
@@ -405,6 +441,9 @@
|
|
|
405
441
|
"@radix-ui/react-slot": "^1.2.4",
|
|
406
442
|
"class-variance-authority": "^0.7.1",
|
|
407
443
|
"clsx": "^2.1.1",
|
|
444
|
+
"highlight.js": "^11.12.0",
|
|
445
|
+
"react-markdown": "^10.1.0",
|
|
446
|
+
"remark-gfm": "^4.0.1",
|
|
408
447
|
"tailwind-merge": "^3.7.0"
|
|
409
448
|
},
|
|
410
449
|
"peerDependencies": {
|
|
@@ -436,15 +475,12 @@
|
|
|
436
475
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
437
476
|
"eslint-plugin-prettier": "^5.5.7",
|
|
438
477
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
439
|
-
"highlight.js": "^11.12.0",
|
|
440
478
|
"jsdom": "^31.0.1",
|
|
441
479
|
"postcss": "^8.5.33",
|
|
442
480
|
"prettier": "^3.10.1",
|
|
443
481
|
"react": "^19.3.1",
|
|
444
482
|
"react-dom": "^19.3.1",
|
|
445
|
-
"react-markdown": "^10.1.0",
|
|
446
483
|
"rehype-raw": "^7.0.0",
|
|
447
|
-
"remark-gfm": "^4.0.1",
|
|
448
484
|
"tailwindcss": "^4.3.1",
|
|
449
485
|
"typescript": "^6.0.3",
|
|
450
486
|
"vite": "^8.3.7",
|