@inupedia/spotlight-vue 0.5.10 → 0.5.12
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/assets/spotlight-vue.css +1 -1
- package/dist/components/SpotlightThinking.vue.d.ts.map +1 -1
- package/dist/components/SpotlightThinking.vue.js +2 -2
- package/dist/components/SpotlightThinking2.vue.js +187 -191
- package/dist/constants/toolNames.d.ts +1 -0
- package/dist/constants/toolNames.d.ts.map +1 -1
- package/dist/constants/toolNames.js +2 -1
- package/dist/remote/runPipeline.d.ts +83 -0
- package/dist/remote/runPipeline.d.ts.map +1 -1
- package/dist/remote/runPipeline.js +225 -218
- package/dist/store/pipeline/toolDisplay.d.ts.map +1 -1
- package/dist/store/pipeline/toolDisplay.js +32 -29
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolDisplay.d.ts","sourceRoot":"","sources":["../../../src/store/pipeline/toolDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"toolDisplay.d.ts","sourceRoot":"","sources":["../../../src/store/pipeline/toolDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,2BAA2B,aAQtC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,mDAAmD;AACnD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO/D;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErE;AAmBD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,iBAAiB,EAAE,GACzB,iBAAiB,EAAE,CA0BrB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG;IAC9D,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,eAAe,EAAE,iBAAiB,EAAE,CAAC;CACtC,CAYA"}
|
|
@@ -2,54 +2,57 @@ const d = /* @__PURE__ */ new Set([
|
|
|
2
2
|
"list_kbs",
|
|
3
3
|
"query_kb",
|
|
4
4
|
"ls",
|
|
5
|
-
"list_directory"
|
|
5
|
+
"list_directory",
|
|
6
|
+
"open_kb_document",
|
|
7
|
+
"find_kb_document",
|
|
8
|
+
"get_mindmap"
|
|
6
9
|
]);
|
|
7
|
-
function r(
|
|
8
|
-
return
|
|
10
|
+
function r(t) {
|
|
11
|
+
return t.trim().toLowerCase();
|
|
9
12
|
}
|
|
10
|
-
function c(
|
|
11
|
-
return d.has(r(
|
|
13
|
+
function c(t) {
|
|
14
|
+
return d.has(r(t));
|
|
12
15
|
}
|
|
13
|
-
function g(
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
+
function g(t) {
|
|
17
|
+
const e = r(t);
|
|
18
|
+
return e === "knowledge.answer" || e === "knowledge.synthesizeanswer" || e === "project_knowledge_search";
|
|
16
19
|
}
|
|
17
|
-
function f(
|
|
18
|
-
return r(
|
|
20
|
+
function f(t) {
|
|
21
|
+
return r(t) === "knowledge.searchweb";
|
|
19
22
|
}
|
|
20
|
-
function u(
|
|
23
|
+
function u(t, e) {
|
|
21
24
|
return {
|
|
22
|
-
...e,
|
|
23
25
|
...t,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
...e,
|
|
27
|
+
argsText: e.argsText ?? t.argsText,
|
|
28
|
+
resultText: e.resultText ?? t.resultText,
|
|
29
|
+
summary: e.summary ?? t.summary,
|
|
30
|
+
status: e.status === "done" || e.status === "error" ? e.status : t.status
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
|
-
function m(
|
|
31
|
-
const
|
|
32
|
-
for (const n of
|
|
33
|
+
function m(t) {
|
|
34
|
+
const e = /* @__PURE__ */ new Map(), o = [], s = /* @__PURE__ */ new Map();
|
|
35
|
+
for (const n of t) {
|
|
33
36
|
if (c(n.name)) {
|
|
34
|
-
const
|
|
35
|
-
s.set(
|
|
37
|
+
const l = r(n.name), i = s.get(l);
|
|
38
|
+
s.set(l, i ? u(i, n) : n);
|
|
36
39
|
continue;
|
|
37
40
|
}
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
+
const a = e.get(n.id);
|
|
42
|
+
if (a) {
|
|
43
|
+
e.set(n.id, u(a, n));
|
|
41
44
|
continue;
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
e.set(n.id, n), o.push(n.id);
|
|
44
47
|
}
|
|
45
48
|
return [
|
|
46
|
-
...o.map((n) =>
|
|
49
|
+
...o.map((n) => e.get(n)),
|
|
47
50
|
...s.values()
|
|
48
51
|
];
|
|
49
52
|
}
|
|
50
|
-
function w(
|
|
51
|
-
const
|
|
52
|
-
for (const n of
|
|
53
|
+
function w(t) {
|
|
54
|
+
const e = m(t), o = [], s = [];
|
|
55
|
+
for (const n of e)
|
|
53
56
|
c(n.name) ? s.push(n) : o.push(n);
|
|
54
57
|
return { visible: o, nestedKnowledge: s };
|
|
55
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inupedia/spotlight-vue",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"description": "Thin Vue runtime for Inupedia Spotlight Client Tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"prettier": "^3.8.1",
|
|
93
93
|
"yaml": "^2.8.4",
|
|
94
|
-
"@inupedia/spotlight-client": "0.5.
|
|
95
|
-
"@inupedia/spotlight-protocol": "0.5.
|
|
94
|
+
"@inupedia/spotlight-client": "0.5.12",
|
|
95
|
+
"@inupedia/spotlight-protocol": "0.5.12"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@inspira-ui/plugins": "^0.0.2",
|