@opentiny/tiny-robot 0.4.2-alpha.0 → 0.4.2-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-group/index.js +5 -5
- package/dist/anchor/index.js +856 -0
- package/dist/attachments/index.js +326 -269
- package/dist/bubble/index.js +10 -9
- package/dist/container/index.js +13 -13
- package/dist/dropdown-menu/index.js +17 -17
- package/dist/feedback/index.js +2 -2
- package/dist/flow-layout-buttons/index.js +1 -1
- package/dist/index.d.ts +1306 -803
- package/dist/index.js +152 -137
- package/dist/index2.js +152 -126
- package/dist/index3.js +1 -1
- package/dist/index4.js +393 -324
- package/dist/index5.js +230 -177
- package/dist/index6.js +592 -503
- package/dist/index7.js +42 -42
- package/dist/layout/index.js +1243 -0
- package/dist/mcp-server-picker/index.js +178 -177
- package/dist/sender/index.js +1575 -1467
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +12 -12
- package/dist/suggestion-popover/index.js +122 -125
- package/dist/welcome/index.js +9 -9
- package/package.json +19 -13
- package/dist/no-data.js +0 -4
package/dist/bubble/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { B as a, a as b, b as
|
|
1
|
+
import { B as a, a as b, b as u, c as r, d as l, e as n, f as t, g as B, h as o, i as d, j as i, k as g } from "../index6.js";
|
|
2
2
|
export {
|
|
3
3
|
a as Bubble,
|
|
4
4
|
b as BubbleList,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
u as BubbleProvider,
|
|
6
|
+
r as BubbleRendererMatchPriority,
|
|
7
7
|
l as BubbleRenderers,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
B as
|
|
11
|
-
o as
|
|
12
|
-
d as
|
|
13
|
-
i as
|
|
8
|
+
n as useBubbleBoxRenderer,
|
|
9
|
+
t as useBubbleContentRenderer,
|
|
10
|
+
B as useBubbleEventFn,
|
|
11
|
+
o as useBubbleStateChangeFn,
|
|
12
|
+
d as useMessageContent,
|
|
13
|
+
i as useOmitMessageFields,
|
|
14
|
+
g as useToolCall
|
|
14
15
|
};
|
package/dist/container/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as g, useModel as c, computed as w, withDirectives as C, openBlock as B, createElementBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as g, useModel as c, computed as w, withDirectives as C, openBlock as B, createElementBlock as y, normalizeClass as I, createElementVNode as e, renderSlot as l, toDisplayString as z, createVNode as u, unref as i, vShow as E, mergeModels as d } from "vue";
|
|
2
|
+
import { IconExitFullScreen as S, IconEnterFullScreen as $, IconClose as k } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import f from "../icon-button/index.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
4
|
+
import { _ as M } from "../_plugin-vue_export-helper.js";
|
|
5
|
+
const T = { class: "tr-container__header" }, b = { class: "tr-container__title" }, N = { class: "tr-container__header-operations" }, D = { class: "tr-container__footer" }, F = /* @__PURE__ */ g({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: /* @__PURE__ */ d({
|
|
8
8
|
show: { type: Boolean },
|
|
@@ -16,18 +16,18 @@ const E = { class: "tr-container__header" }, F = { class: "tr-container__title"
|
|
|
16
16
|
}),
|
|
17
17
|
emits: /* @__PURE__ */ d(["close"], ["update:show", "update:fullscreen"]),
|
|
18
18
|
setup(o, { emit: p }) {
|
|
19
|
-
const m = o, a = c(o, "show"), t = c(o, "fullscreen"), v = w(() => t.value ?
|
|
19
|
+
const m = o, a = c(o, "show"), t = c(o, "fullscreen"), v = w(() => t.value ? S : $), _ = p, h = () => {
|
|
20
20
|
a.value = !1, _("close");
|
|
21
21
|
};
|
|
22
|
-
return (n, s) => C((B(),
|
|
23
|
-
class:
|
|
22
|
+
return (n, s) => C((B(), y("div", {
|
|
23
|
+
class: I(["tr-container", { fullscreen: t.value }])
|
|
24
24
|
}, [
|
|
25
25
|
s[1] || (s[1] = e("div", { class: "tr-container__dragging-bar-wrapper" }, [
|
|
26
26
|
e("div", { class: "tr-container__dragging-bar" })
|
|
27
27
|
], -1)),
|
|
28
|
-
e("div",
|
|
28
|
+
e("div", T, [
|
|
29
29
|
l(n.$slots, "title", {}, () => [
|
|
30
|
-
e("h3",
|
|
30
|
+
e("h3", b, z(m.title), 1)
|
|
31
31
|
], !0),
|
|
32
32
|
e("div", N, [
|
|
33
33
|
l(n.$slots, "operations", {}, void 0, !0),
|
|
@@ -40,20 +40,20 @@ const E = { class: "tr-container__header" }, F = { class: "tr-container__title"
|
|
|
40
40
|
u(i(f), {
|
|
41
41
|
size: "28",
|
|
42
42
|
"svg-size": "20",
|
|
43
|
-
icon: i(
|
|
43
|
+
icon: i(k),
|
|
44
44
|
onClick: h
|
|
45
45
|
}, null, 8, ["icon"])
|
|
46
46
|
])
|
|
47
47
|
]),
|
|
48
48
|
l(n.$slots, "default", {}, void 0, !0),
|
|
49
|
-
e("div",
|
|
49
|
+
e("div", D, [
|
|
50
50
|
l(n.$slots, "footer", {}, void 0, !0)
|
|
51
51
|
])
|
|
52
52
|
], 2)), [
|
|
53
|
-
[
|
|
53
|
+
[E, a.value]
|
|
54
54
|
]);
|
|
55
55
|
}
|
|
56
|
-
}), r = /* @__PURE__ */
|
|
56
|
+
}), r = /* @__PURE__ */ M(F, [["__scopeId", "data-v-8bd84c90"]]);
|
|
57
57
|
r.name = "TrContainer";
|
|
58
58
|
const V = function(o) {
|
|
59
59
|
o.component(r.name, r);
|
|
@@ -5,8 +5,8 @@ import { u as F } from "../utils.js";
|
|
|
5
5
|
import { _ as G } from "../_plugin-vue_export-helper.js";
|
|
6
6
|
const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.bottom, N = (o, t, g = !1) => {
|
|
7
7
|
if (t.length < 3) return !1;
|
|
8
|
-
const l = o.x,
|
|
9
|
-
let
|
|
8
|
+
const l = o.x, f = o.y;
|
|
9
|
+
let d = !1;
|
|
10
10
|
const r = (s, c, a, n, i, e) => {
|
|
11
11
|
const m = (i - a) * (c - n) - (e - n) * (s - a);
|
|
12
12
|
if (Math.abs(m) > 1e-10) return !1;
|
|
@@ -15,14 +15,14 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
15
15
|
};
|
|
16
16
|
for (let s = 0, c = t.length - 1; s < t.length; c = s++) {
|
|
17
17
|
const a = t[s].x, n = t[s].y, i = t[c].x, e = t[c].y;
|
|
18
|
-
if (g && r(l,
|
|
18
|
+
if (g && r(l, f, a, n, i, e))
|
|
19
19
|
return !0;
|
|
20
|
-
if (n >
|
|
21
|
-
const u = (i - a) * (
|
|
22
|
-
l < u && (
|
|
20
|
+
if (n > f && e <= f || e > f && n <= f) {
|
|
21
|
+
const u = (i - a) * (f - n) / (e - n) + a;
|
|
22
|
+
l < u && (d = !d);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return d;
|
|
26
26
|
}, U = (o, t) => t.bottom < o.top ? [
|
|
27
27
|
{ x: o.left, y: o.top },
|
|
28
28
|
{ x: o.right, y: o.top },
|
|
@@ -34,7 +34,7 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
34
34
|
{ x: t.right, y: t.top },
|
|
35
35
|
{ x: t.left, y: t.top }
|
|
36
36
|
] : [], { x: V, y: q } = F(), z = (o, t, g) => {
|
|
37
|
-
const { delayEnter: l = 0, delayLeave:
|
|
37
|
+
const { delayEnter: l = 0, delayLeave: f = 0 } = g || {}, d = k(!1), r = k("outside");
|
|
38
38
|
let s = null;
|
|
39
39
|
const c = () => {
|
|
40
40
|
s && (clearTimeout(s), s = null);
|
|
@@ -43,8 +43,8 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
43
43
|
c();
|
|
44
44
|
});
|
|
45
45
|
const a = (n) => {
|
|
46
|
-
const i = n ? l :
|
|
47
|
-
c(), i ? s = setTimeout(() =>
|
|
46
|
+
const i = n ? l : f;
|
|
47
|
+
c(), i ? s = setTimeout(() => d.value = n, i) : d.value = n;
|
|
48
48
|
};
|
|
49
49
|
return C(
|
|
50
50
|
r,
|
|
@@ -71,7 +71,7 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
71
71
|
N({ x: n, y: i }, U(u, h), !0) ? r.value = "polygon" : r.value = "outside";
|
|
72
72
|
},
|
|
73
73
|
{ throttle: 10 }
|
|
74
|
-
),
|
|
74
|
+
), d;
|
|
75
75
|
}, J = { class: "tr-dropdown-menu__list" }, K = ["onClick"], Q = /* @__PURE__ */ E({
|
|
76
76
|
__name: "index",
|
|
77
77
|
props: /* @__PURE__ */ M({
|
|
@@ -85,10 +85,10 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
85
85
|
}),
|
|
86
86
|
emits: /* @__PURE__ */ M(["item-click", "click-outside"], ["update:show"]),
|
|
87
87
|
setup(o, { expose: t, emit: g }) {
|
|
88
|
-
const l = o,
|
|
89
|
-
get: () => l.trigger === "manual" ? l.show :
|
|
88
|
+
const l = o, f = g, d = H(o, "show"), r = p({
|
|
89
|
+
get: () => l.trigger === "manual" ? l.show : d.value,
|
|
90
90
|
set: (e) => {
|
|
91
|
-
l.trigger !== "manual" && (
|
|
91
|
+
l.trigger !== "manual" && (d.value = e);
|
|
92
92
|
}
|
|
93
93
|
}), s = k(null), c = p(() => {
|
|
94
94
|
var e;
|
|
@@ -101,7 +101,7 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
101
101
|
$(
|
|
102
102
|
a,
|
|
103
103
|
(e) => {
|
|
104
|
-
|
|
104
|
+
f("click-outside", e), r.value = !1;
|
|
105
105
|
},
|
|
106
106
|
{ ignore: [c] }
|
|
107
107
|
);
|
|
@@ -114,7 +114,7 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
114
114
|
const n = () => {
|
|
115
115
|
l.trigger === "click" && (r.value = !r.value);
|
|
116
116
|
}, i = (e) => {
|
|
117
|
-
r.value = !1,
|
|
117
|
+
r.value = !1, f("item-click", e);
|
|
118
118
|
};
|
|
119
119
|
return t({
|
|
120
120
|
update: () => {
|
|
@@ -148,7 +148,7 @@ const P = (o, t) => o.x >= t.left && o.x <= t.right && o.y >= t.top && o.y <= t.
|
|
|
148
148
|
_: 3
|
|
149
149
|
}, 8, ["show", "append-to", "trigger-events"]));
|
|
150
150
|
}
|
|
151
|
-
}), v = /* @__PURE__ */ G(Q, [["__scopeId", "data-v-
|
|
151
|
+
}), v = /* @__PURE__ */ G(Q, [["__scopeId", "data-v-6fc07009"]]);
|
|
152
152
|
v.name = "TrDropdownMenu";
|
|
153
153
|
const W = function(o) {
|
|
154
154
|
o.component(v.name, v);
|
package/dist/feedback/index.js
CHANGED
|
@@ -50,7 +50,7 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
|
|
|
50
50
|
])) : k("", !0)
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}), ee = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-
|
|
53
|
+
}), ee = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-0a3b7acb"]]), te = { class: "tr-feedback" }, oe = { class: "tr-feedback__operations" }, se = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, re = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "tr-feedback__footer"
|
|
56
56
|
}, ae = { key: 0 }, ie = /* @__PURE__ */ V({
|
|
@@ -181,7 +181,7 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
|
|
|
181
181
|
]);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
}), C = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-
|
|
184
|
+
}), C = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-80a60d78"]]);
|
|
185
185
|
C.name = "TrFeedback";
|
|
186
186
|
const ce = function(h) {
|
|
187
187
|
h.component(C.name, C);
|
|
@@ -115,7 +115,7 @@ const P = ["onClick"], Q = {
|
|
|
115
115
|
])
|
|
116
116
|
], 512));
|
|
117
117
|
}
|
|
118
|
-
}), p = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-
|
|
118
|
+
}), p = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-66224781"]]);
|
|
119
119
|
p.name = "TrFlowLayout";
|
|
120
120
|
const te = function(d) {
|
|
121
121
|
d.component(p.name, p);
|