@inupedia/spotlight-vue 0.5.11 → 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.
@@ -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,aAKtC,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,CAM/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"}
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(e) {
8
- return e.trim().toLowerCase();
10
+ function r(t) {
11
+ return t.trim().toLowerCase();
9
12
  }
10
- function c(e) {
11
- return d.has(r(e));
13
+ function c(t) {
14
+ return d.has(r(t));
12
15
  }
13
- function g(e) {
14
- const t = r(e);
15
- return t === "knowledge.answer" || t === "knowledge.synthesizeanswer";
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(e) {
18
- return r(e) === "knowledge.searchweb";
20
+ function f(t) {
21
+ return r(t) === "knowledge.searchweb";
19
22
  }
20
- function u(e, t) {
23
+ function u(t, e) {
21
24
  return {
22
- ...e,
23
25
  ...t,
24
- argsText: t.argsText ?? e.argsText,
25
- resultText: t.resultText ?? e.resultText,
26
- summary: t.summary ?? e.summary,
27
- status: t.status === "done" || t.status === "error" ? t.status : e.status
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(e) {
31
- const t = /* @__PURE__ */ new Map(), o = [], s = /* @__PURE__ */ new Map();
32
- for (const n of e) {
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 a = r(n.name), i = s.get(a);
35
- s.set(a, i ? u(i, n) : n);
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 l = t.get(n.id);
39
- if (l) {
40
- t.set(n.id, u(l, n));
41
+ const a = e.get(n.id);
42
+ if (a) {
43
+ e.set(n.id, u(a, n));
41
44
  continue;
42
45
  }
43
- t.set(n.id, n), o.push(n.id);
46
+ e.set(n.id, n), o.push(n.id);
44
47
  }
45
48
  return [
46
- ...o.map((n) => t.get(n)),
49
+ ...o.map((n) => e.get(n)),
47
50
  ...s.values()
48
51
  ];
49
52
  }
50
- function w(e) {
51
- const t = m(e), o = [], s = [];
52
- for (const n of t)
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.11",
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.11",
95
- "@inupedia/spotlight-protocol": "0.5.11"
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",