@actioneer/ads 0.2.3 → 0.3.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/components/ai-elements/chain-of-thought.d.ts +88 -19
- package/components/ai-elements/chain-of-thought.js +358 -149
- package/components/ai-elements/chart.d.ts +30 -0
- package/components/ai-elements/chart.js +303 -0
- package/components/ai-elements/index.d.ts +2 -1
- package/components/ai-elements/message.d.ts +19 -4
- package/components/ai-elements/message.js +177 -130
- package/components/ai-elements/research-activity.d.ts +45 -0
- package/components/ai-elements/research-activity.js +260 -0
- package/components/ai-elements/task-progress.js +69 -66
- package/components/ai-elements/tool.js +42 -38
- package/components/answer.d.ts +19 -0
- package/components/answer.js +363 -300
- package/components/assistant-ui/attachment.js +5 -1
- package/components/assistant-ui/composer-deep-research.js +44 -29
- package/components/assistant-ui/composer-harness.js +55 -38
- package/components/assistant-ui/composer.js +16 -16
- package/components/assistant-ui/index.d.ts +0 -1
- package/components/assistant-ui/message.d.ts +7 -0
- package/components/assistant-ui/message.js +64 -51
- package/components/assistant-ui/primitives.d.ts +1 -1
- package/components/assistant-ui/thread-context.d.ts +2 -0
- package/components/assistant-ui/thread.js +34 -32
- package/components/brand-texture.d.ts +37 -0
- package/components/brand-texture.js +54 -0
- package/components/chart.d.ts +64 -2
- package/components/chart.js +717 -456
- package/components/code-block.d.ts +36 -0
- package/components/code-block.js +136 -0
- package/components/command-palette.d.ts +43 -0
- package/components/command-palette.js +146 -0
- package/components/drawer.d.ts +1 -1
- package/components/file-dropzone.d.ts +32 -0
- package/components/file-dropzone.js +134 -0
- package/components/index.d.ts +11 -0
- package/components/index.js +480 -430
- package/components/infinite-canvas.d.ts +50 -0
- package/components/infinite-canvas.js +215 -0
- package/components/page-header.d.ts +22 -0
- package/components/page-header.js +52 -0
- package/components/resizable-panel.d.ts +29 -0
- package/components/resizable-panel.js +102 -0
- package/components/reveal.d.ts +36 -0
- package/components/reveal.js +35 -0
- package/components/scroll-area.d.ts +19 -0
- package/components/scroll-area.js +57 -0
- package/components/setting-row.d.ts +35 -0
- package/components/setting-row.js +86 -0
- package/components/sidebar.d.ts +4 -1
- package/components/sidebar.js +134 -132
- package/components/stepper.d.ts +32 -0
- package/components/stepper.js +113 -0
- package/components/table.js +16 -15
- package/components/tabs.js +1 -1
- package/hooks/agents-ui/voice-visualizer-types.js +1 -0
- package/lib/icons.d.ts +24 -0
- package/lib/icons.js +100 -110
- package/lib/motion.d.ts +5 -3
- package/lib/motion.js +46 -20
- package/lib/router.js +19 -0
- package/lib/utils.js +5 -0
- package/llms.txt +143 -39
- package/manifest.json +1232 -100
- package/package.json +2 -2
- package/styles.css +71 -28
- package/theme.css +19 -15
- package/components/ai-elements/reasoning.d.ts +0 -26
- package/components/ai-elements/reasoning.js +0 -131
- package/components/assistant-ui/smart-message-text.d.ts +0 -15
- package/components/assistant-ui/smart-message-text.js +0 -29
|
@@ -4,48 +4,52 @@ import { isValidElement as c } from "react";
|
|
|
4
4
|
import { Collapsible as u, CollapsibleContent as m, CollapsibleTrigger as p } from "../collapsible.js";
|
|
5
5
|
import { Badge as f } from "../badge.js";
|
|
6
6
|
import { Wrench as g, ChevronDown as h, CloseCircle as x, CheckCircle as b, Clock as N, CircleDashed as v } from "../../lib/icons.js";
|
|
7
|
-
import { cn as
|
|
8
|
-
const
|
|
7
|
+
import { cn as r } from "../../lib/cn.js";
|
|
8
|
+
const w = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
9
9
|
u,
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
11
|
+
className: r(
|
|
12
12
|
"not-prose group/tool w-full overflow-hidden rounded-xl bg-card",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
|
-
...
|
|
15
|
+
...t
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
|
-
|
|
19
|
-
const
|
|
18
|
+
w.displayName = "Tool";
|
|
19
|
+
const y = {
|
|
20
20
|
"input-streaming": { label: "Pending", color: "default", icon: v },
|
|
21
21
|
"input-available": { label: "Running", color: "info", icon: N, pulse: !0 },
|
|
22
22
|
"output-available": { label: "Completed", color: "success", icon: b },
|
|
23
23
|
"output-error": { label: "Error", color: "danger", icon: x }
|
|
24
24
|
}, C = ({ state: e }) => {
|
|
25
|
-
const { label:
|
|
26
|
-
return /* @__PURE__ */ l(f, { variant: "soft", color:
|
|
25
|
+
const { label: t, color: n, icon: a, pulse: i } = y[e];
|
|
26
|
+
return /* @__PURE__ */ l(f, { variant: "soft", color: n, children: [
|
|
27
27
|
/* @__PURE__ */ o(
|
|
28
28
|
a,
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: r(
|
|
31
31
|
"size-3",
|
|
32
32
|
i && "animate-pulse motion-reduce:animate-none"
|
|
33
33
|
),
|
|
34
34
|
"aria-hidden": !0
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
|
-
|
|
37
|
+
t
|
|
38
38
|
] });
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
|
+
function T(e) {
|
|
41
|
+
return e.split("-").slice(1).join("-") || e;
|
|
42
|
+
}
|
|
43
|
+
const S = ({
|
|
40
44
|
className: e,
|
|
41
|
-
title:
|
|
42
|
-
type:
|
|
45
|
+
title: t,
|
|
46
|
+
type: n,
|
|
43
47
|
state: a,
|
|
44
48
|
...i
|
|
45
49
|
}) => /* @__PURE__ */ l(
|
|
46
50
|
p,
|
|
47
51
|
{
|
|
48
|
-
className:
|
|
52
|
+
className: r(
|
|
49
53
|
"group/tool-header flex w-full items-center justify-between gap-4 px-4 py-3 text-left transition-colors hover:bg-muted motion-reduce:transition-none",
|
|
50
54
|
"outline-none focus-visible:ring-3 focus-visible:ring-ring",
|
|
51
55
|
e
|
|
@@ -54,7 +58,7 @@ const w = {
|
|
|
54
58
|
children: [
|
|
55
59
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
56
60
|
/* @__PURE__ */ o(g, { className: "size-4 shrink-0 text-tertiary", "aria-hidden": !0 }),
|
|
57
|
-
/* @__PURE__ */ o("span", { className: "font-medium text-base", children:
|
|
61
|
+
/* @__PURE__ */ o("span", { className: "font-medium text-base", children: t ?? T(n) }),
|
|
58
62
|
/* @__PURE__ */ o(C, { state: a })
|
|
59
63
|
] }),
|
|
60
64
|
/* @__PURE__ */ o(
|
|
@@ -67,50 +71,50 @@ const w = {
|
|
|
67
71
|
]
|
|
68
72
|
}
|
|
69
73
|
);
|
|
70
|
-
|
|
71
|
-
const
|
|
74
|
+
S.displayName = "ToolHeader";
|
|
75
|
+
const j = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
72
76
|
m,
|
|
73
77
|
{
|
|
74
|
-
className:
|
|
78
|
+
className: r(
|
|
75
79
|
"overflow-hidden text-foreground outline-none",
|
|
76
80
|
"data-[state=closed]:pointer-events-none",
|
|
77
81
|
e
|
|
78
82
|
),
|
|
79
|
-
...
|
|
83
|
+
...t
|
|
80
84
|
}
|
|
81
85
|
);
|
|
82
|
-
|
|
86
|
+
j.displayName = "ToolContent";
|
|
83
87
|
const s = ({
|
|
84
88
|
code: e,
|
|
85
|
-
className:
|
|
89
|
+
className: t
|
|
86
90
|
}) => /* @__PURE__ */ o(
|
|
87
91
|
"pre",
|
|
88
92
|
{
|
|
89
|
-
className:
|
|
93
|
+
className: r(
|
|
90
94
|
"overflow-x-auto rounded-md bg-surface p-3 text-xs leading-relaxed text-foreground tabular-nums",
|
|
91
|
-
|
|
95
|
+
t
|
|
92
96
|
),
|
|
93
97
|
children: /* @__PURE__ */ o("code", { children: e })
|
|
94
98
|
}
|
|
95
|
-
), d = ({ children: e }) => /* @__PURE__ */ o("h4", { className: "text-xs font-medium uppercase tracking-wide text-tertiary", children: e }),
|
|
99
|
+
), d = ({ children: e }) => /* @__PURE__ */ o("h4", { className: "text-xs font-medium uppercase tracking-wide text-tertiary", children: e }), k = ({ className: e, input: t, ...n }) => /* @__PURE__ */ l("div", { className: r("space-y-2 overflow-hidden p-4", e), ...n, children: [
|
|
96
100
|
/* @__PURE__ */ o(d, { children: "Parameters" }),
|
|
97
|
-
/* @__PURE__ */ o(s, { code: JSON.stringify(
|
|
101
|
+
/* @__PURE__ */ o(s, { code: JSON.stringify(t, null, 2) })
|
|
98
102
|
] });
|
|
99
|
-
|
|
100
|
-
const
|
|
103
|
+
k.displayName = "ToolInput";
|
|
104
|
+
const O = (e) => typeof e == "object" && e !== null && !c(e) ? /* @__PURE__ */ o(s, { code: JSON.stringify(e, null, 2) }) : typeof e == "string" ? /* @__PURE__ */ o("div", { className: "rounded-md bg-surface p-3 text-xs leading-relaxed text-foreground whitespace-pre-wrap", children: e }) : e, P = ({
|
|
101
105
|
className: e,
|
|
102
|
-
output:
|
|
103
|
-
errorText:
|
|
106
|
+
output: t,
|
|
107
|
+
errorText: n,
|
|
104
108
|
...a
|
|
105
|
-
}) =>
|
|
106
|
-
/* @__PURE__ */ o(d, { children:
|
|
107
|
-
|
|
109
|
+
}) => t || n ? /* @__PURE__ */ l("div", { className: r("space-y-2 p-4", e), ...a, children: [
|
|
110
|
+
/* @__PURE__ */ o(d, { children: n ? "Error" : "Result" }),
|
|
111
|
+
n ? /* @__PURE__ */ o("div", { className: "rounded-md bg-danger-50 p-3 text-xs leading-relaxed text-danger-700 whitespace-pre-wrap", children: n }) : /* @__PURE__ */ o("div", { className: "overflow-x-auto text-xs text-foreground [&_table]:w-full", children: O(t) })
|
|
108
112
|
] }) : null;
|
|
109
|
-
|
|
113
|
+
P.displayName = "ToolOutput";
|
|
110
114
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
w as Tool,
|
|
116
|
+
j as ToolContent,
|
|
117
|
+
S as ToolHeader,
|
|
118
|
+
k as ToolInput,
|
|
119
|
+
P as ToolOutput
|
|
116
120
|
};
|
package/components/answer.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const AnswerSourceSchema: z.ZodObject<{
|
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
label: z.ZodString;
|
|
22
22
|
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
href: z.ZodOptional<z.ZodString>;
|
|
23
24
|
}, z.core.$strip>;
|
|
24
25
|
export declare const AnswerSignalSchema: z.ZodObject<{
|
|
25
26
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -44,6 +45,7 @@ export declare const ComparisonAnswerSchema: z.ZodObject<{
|
|
|
44
45
|
}, z.core.$strip>], null>;
|
|
45
46
|
rows: z.ZodArray<z.ZodObject<{
|
|
46
47
|
label: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodString>;
|
|
47
49
|
values: z.ZodTuple<[z.ZodObject<{
|
|
48
50
|
value: z.ZodString;
|
|
49
51
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -103,6 +105,7 @@ export declare const ComparisonAnswerSchema: z.ZodObject<{
|
|
|
103
105
|
id: z.ZodString;
|
|
104
106
|
label: z.ZodString;
|
|
105
107
|
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
href: z.ZodOptional<z.ZodString>;
|
|
106
109
|
}, z.core.$strip>>>;
|
|
107
110
|
}, z.core.$strip>;
|
|
108
111
|
export declare const TrendAnswerSchema: z.ZodObject<{
|
|
@@ -202,6 +205,7 @@ export declare const TrendAnswerSchema: z.ZodObject<{
|
|
|
202
205
|
id: z.ZodString;
|
|
203
206
|
label: z.ZodString;
|
|
204
207
|
description: z.ZodOptional<z.ZodString>;
|
|
208
|
+
href: z.ZodOptional<z.ZodString>;
|
|
205
209
|
}, z.core.$strip>>>;
|
|
206
210
|
}, z.core.$strip>;
|
|
207
211
|
export declare const StatusAnswerSchema: z.ZodObject<{
|
|
@@ -256,6 +260,7 @@ export declare const StatusAnswerSchema: z.ZodObject<{
|
|
|
256
260
|
id: z.ZodString;
|
|
257
261
|
label: z.ZodString;
|
|
258
262
|
description: z.ZodOptional<z.ZodString>;
|
|
263
|
+
href: z.ZodOptional<z.ZodString>;
|
|
259
264
|
}, z.core.$strip>>>;
|
|
260
265
|
}, z.core.$strip>;
|
|
261
266
|
export declare const BreakdownAnswerSchema: z.ZodObject<{
|
|
@@ -302,6 +307,7 @@ export declare const BreakdownAnswerSchema: z.ZodObject<{
|
|
|
302
307
|
id: z.ZodString;
|
|
303
308
|
label: z.ZodString;
|
|
304
309
|
description: z.ZodOptional<z.ZodString>;
|
|
310
|
+
href: z.ZodOptional<z.ZodString>;
|
|
305
311
|
}, z.core.$strip>>>;
|
|
306
312
|
}, z.core.$strip>;
|
|
307
313
|
export declare const ExplanationAnswerSchema: z.ZodObject<{
|
|
@@ -335,6 +341,7 @@ export declare const ExplanationAnswerSchema: z.ZodObject<{
|
|
|
335
341
|
id: z.ZodString;
|
|
336
342
|
label: z.ZodString;
|
|
337
343
|
description: z.ZodOptional<z.ZodString>;
|
|
344
|
+
href: z.ZodOptional<z.ZodString>;
|
|
338
345
|
}, z.core.$strip>>>;
|
|
339
346
|
}, z.core.$strip>;
|
|
340
347
|
/** The complete model-facing contract. No free-form layout nodes are allowed. */
|
|
@@ -349,6 +356,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
349
356
|
}, z.core.$strip>], null>;
|
|
350
357
|
rows: z.ZodArray<z.ZodObject<{
|
|
351
358
|
label: z.ZodString;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
352
360
|
values: z.ZodTuple<[z.ZodObject<{
|
|
353
361
|
value: z.ZodString;
|
|
354
362
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -408,6 +416,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
408
416
|
id: z.ZodString;
|
|
409
417
|
label: z.ZodString;
|
|
410
418
|
description: z.ZodOptional<z.ZodString>;
|
|
419
|
+
href: z.ZodOptional<z.ZodString>;
|
|
411
420
|
}, z.core.$strip>>>;
|
|
412
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
413
422
|
kind: z.ZodLiteral<"trend">;
|
|
@@ -506,6 +515,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
506
515
|
id: z.ZodString;
|
|
507
516
|
label: z.ZodString;
|
|
508
517
|
description: z.ZodOptional<z.ZodString>;
|
|
518
|
+
href: z.ZodOptional<z.ZodString>;
|
|
509
519
|
}, z.core.$strip>>>;
|
|
510
520
|
}, z.core.$strip>, z.ZodObject<{
|
|
511
521
|
kind: z.ZodLiteral<"status">;
|
|
@@ -559,6 +569,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
559
569
|
id: z.ZodString;
|
|
560
570
|
label: z.ZodString;
|
|
561
571
|
description: z.ZodOptional<z.ZodString>;
|
|
572
|
+
href: z.ZodOptional<z.ZodString>;
|
|
562
573
|
}, z.core.$strip>>>;
|
|
563
574
|
}, z.core.$strip>, z.ZodObject<{
|
|
564
575
|
kind: z.ZodLiteral<"breakdown">;
|
|
@@ -604,6 +615,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
604
615
|
id: z.ZodString;
|
|
605
616
|
label: z.ZodString;
|
|
606
617
|
description: z.ZodOptional<z.ZodString>;
|
|
618
|
+
href: z.ZodOptional<z.ZodString>;
|
|
607
619
|
}, z.core.$strip>>>;
|
|
608
620
|
}, z.core.$strip>, z.ZodObject<{
|
|
609
621
|
kind: z.ZodLiteral<"explanation">;
|
|
@@ -636,6 +648,7 @@ export declare const AnswerSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
636
648
|
id: z.ZodString;
|
|
637
649
|
label: z.ZodString;
|
|
638
650
|
description: z.ZodOptional<z.ZodString>;
|
|
651
|
+
href: z.ZodOptional<z.ZodString>;
|
|
639
652
|
}, z.core.$strip>>>;
|
|
640
653
|
}, z.core.$strip>], "kind">;
|
|
641
654
|
export type AnswerTone = z.infer<typeof AnswerToneSchema>;
|
|
@@ -662,6 +675,7 @@ export declare const answerTool: {
|
|
|
662
675
|
}, z.core.$strip>], null>;
|
|
663
676
|
rows: z.ZodArray<z.ZodObject<{
|
|
664
677
|
label: z.ZodString;
|
|
678
|
+
description: z.ZodOptional<z.ZodString>;
|
|
665
679
|
values: z.ZodTuple<[z.ZodObject<{
|
|
666
680
|
value: z.ZodString;
|
|
667
681
|
detail: z.ZodOptional<z.ZodString>;
|
|
@@ -721,6 +735,7 @@ export declare const answerTool: {
|
|
|
721
735
|
id: z.ZodString;
|
|
722
736
|
label: z.ZodString;
|
|
723
737
|
description: z.ZodOptional<z.ZodString>;
|
|
738
|
+
href: z.ZodOptional<z.ZodString>;
|
|
724
739
|
}, z.core.$strip>>>;
|
|
725
740
|
}, z.core.$strip>, z.ZodObject<{
|
|
726
741
|
kind: z.ZodLiteral<"trend">;
|
|
@@ -819,6 +834,7 @@ export declare const answerTool: {
|
|
|
819
834
|
id: z.ZodString;
|
|
820
835
|
label: z.ZodString;
|
|
821
836
|
description: z.ZodOptional<z.ZodString>;
|
|
837
|
+
href: z.ZodOptional<z.ZodString>;
|
|
822
838
|
}, z.core.$strip>>>;
|
|
823
839
|
}, z.core.$strip>, z.ZodObject<{
|
|
824
840
|
kind: z.ZodLiteral<"status">;
|
|
@@ -872,6 +888,7 @@ export declare const answerTool: {
|
|
|
872
888
|
id: z.ZodString;
|
|
873
889
|
label: z.ZodString;
|
|
874
890
|
description: z.ZodOptional<z.ZodString>;
|
|
891
|
+
href: z.ZodOptional<z.ZodString>;
|
|
875
892
|
}, z.core.$strip>>>;
|
|
876
893
|
}, z.core.$strip>, z.ZodObject<{
|
|
877
894
|
kind: z.ZodLiteral<"breakdown">;
|
|
@@ -917,6 +934,7 @@ export declare const answerTool: {
|
|
|
917
934
|
id: z.ZodString;
|
|
918
935
|
label: z.ZodString;
|
|
919
936
|
description: z.ZodOptional<z.ZodString>;
|
|
937
|
+
href: z.ZodOptional<z.ZodString>;
|
|
920
938
|
}, z.core.$strip>>>;
|
|
921
939
|
}, z.core.$strip>, z.ZodObject<{
|
|
922
940
|
kind: z.ZodLiteral<"explanation">;
|
|
@@ -949,6 +967,7 @@ export declare const answerTool: {
|
|
|
949
967
|
id: z.ZodString;
|
|
950
968
|
label: z.ZodString;
|
|
951
969
|
description: z.ZodOptional<z.ZodString>;
|
|
970
|
+
href: z.ZodOptional<z.ZodString>;
|
|
952
971
|
}, z.core.$strip>>>;
|
|
953
972
|
}, z.core.$strip>], "kind">;
|
|
954
973
|
};
|