@foris/ai-agent 0.7.1-beta.2 → 0.7.1

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.
Files changed (62) hide show
  1. package/dist/ai-agent.es.js +1 -1
  2. package/dist/ai-agent.umd.js +495 -495
  3. package/dist/{arc-D6vW-5z7.js → arc-3b5kKT49.js} +1 -1
  4. package/dist/{architectureDiagram-VXUJARFQ-aNTRrbg8.js → architectureDiagram-VXUJARFQ-D6g65mfN.js} +6 -8
  5. package/dist/{blockDiagram-VD42YOAC-D__rdg-y.js → blockDiagram-VD42YOAC-CiBSfeNI.js} +937 -801
  6. package/dist/{c4Diagram-YG6GDRKO-Ad-zGtIo.js → c4Diagram-YG6GDRKO-C2SvHhVr.js} +3 -3
  7. package/dist/{channel-CJ6nZxxi.js → channel-Ba6LM9RW.js} +1 -1
  8. package/dist/{chunk-4BX2VUAB-sv6CSdNg.js → chunk-4BX2VUAB-ChLKiYxA.js} +1 -1
  9. package/dist/{chunk-55IACEB6-tWLXzb2x.js → chunk-55IACEB6-CzJAr65b.js} +1 -1
  10. package/dist/{chunk-B4BG7PRW-wp7Bc04i.js → chunk-B4BG7PRW-B3N8xL4J.js} +4 -4
  11. package/dist/{chunk-DI55MBZ5-BAXA-Ihc.js → chunk-DI55MBZ5-DuKwM-Dr.js} +3 -3
  12. package/dist/{chunk-FMBD7UC4-CqgCvnFf.js → chunk-FMBD7UC4-CykbdCbD.js} +1 -1
  13. package/dist/{chunk-QN33PNHL-Xr4FEi7o.js → chunk-QN33PNHL-Ix1fHful.js} +1 -1
  14. package/dist/{chunk-QZHKN3VN-CW0xSatw.js → chunk-QZHKN3VN-C-A3GtWM.js} +1 -1
  15. package/dist/{chunk-TZMSLE5B-CG4p6VwM.js → chunk-TZMSLE5B-CRvycpJ3.js} +1 -1
  16. package/dist/{classDiagram-2ON5EDUG-BwMk_mJR.js → classDiagram-2ON5EDUG-CRcVcWGB.js} +6 -6
  17. package/dist/{classDiagram-v2-WZHVMYZB-BwMk_mJR.js → classDiagram-v2-WZHVMYZB-CRcVcWGB.js} +6 -6
  18. package/dist/{code-block-QI2IAROF-Dmk5lA1i.js → code-block-QI2IAROF-C2OuH8wK.js} +1 -1
  19. package/dist/{cose-bilkent-S5V4N54A-CQVvTQey.js → cose-bilkent-S5V4N54A-CrNSP1jY.js} +2 -2
  20. package/dist/{dagre-6UL2VRFP-CZLotLZh.js → dagre-6UL2VRFP-CO0hHILI.js} +55 -54
  21. package/dist/{diagram-PSM6KHXK-99LoQEL6.js → diagram-PSM6KHXK-DXu-cNdc.js} +7 -9
  22. package/dist/{diagram-QEK2KX5R-Bcf8pK3Z.js → diagram-QEK2KX5R-0nHoVxVh.js} +6 -8
  23. package/dist/{diagram-S2PKOQOG-Bc7Lic_C.js → diagram-S2PKOQOG-WMvh1Jj5.js} +10 -12
  24. package/dist/{erDiagram-Q2GNP2WA-Bdr3nWHa.js → erDiagram-Q2GNP2WA-C6aLC3WS.js} +5 -5
  25. package/dist/{flowDiagram-NV44I4VS-By1cH5Mx.js → flowDiagram-NV44I4VS-BuvQadkj.js} +6 -6
  26. package/dist/{ganttDiagram-JELNMOA3-DBUWvf88.js → ganttDiagram-JELNMOA3-BYs_DXFl.js} +3 -3
  27. package/dist/{gitGraphDiagram-NY62KEGX-D201ZDzD.js → gitGraphDiagram-NY62KEGX-BoFOSdni.js} +69 -71
  28. package/dist/graph-DB2UxkYH.js +1190 -0
  29. package/dist/{index-2q9HQ6jv.js → index-CwqNOQGX.js} +1835 -1822
  30. package/dist/infoDiagram-WHAUD3N6-DgHHY7Vc.js +27 -0
  31. package/dist/{journeyDiagram-XKPGCS4Q-BO4UASto.js → journeyDiagram-XKPGCS4Q-CBkCm0nc.js} +5 -5
  32. package/dist/{kanban-definition-3W4ZIXB7-zTTXrQZo.js → kanban-definition-3W4ZIXB7-Bb9dfdyn.js} +3 -3
  33. package/dist/layout-Q6wQN5dr.js +1730 -0
  34. package/dist/{linear-DQjYFf2K.js → linear-YQRFy-ez.js} +25 -25
  35. package/dist/{mermaid-NA5CF7SZ-Dxy04QGl.js → mermaid-NA5CF7SZ-DmCeHokA.js} +1 -1
  36. package/dist/{mermaid.core-D77TS0_l.js → mermaid.core-Dc2YHLjC.js} +88 -112
  37. package/dist/{mindmap-definition-VGOIOE7T-C4eFUgdU.js → mindmap-definition-VGOIOE7T-QwM61xbj.js} +15 -15
  38. package/dist/pieDiagram-ADFJNKIX-KcmZc4jk.js +166 -0
  39. package/dist/{quadrantDiagram-AYHSOK5B-CBbS2k6R.js → quadrantDiagram-AYHSOK5B-Dnfn2rNK.js} +3 -3
  40. package/dist/{requirementDiagram-UZGBJVZJ-BubvO9b2.js → requirementDiagram-UZGBJVZJ-CKxG_xjw.js} +4 -4
  41. package/dist/{sankeyDiagram-TZEHDZUN-2TYAQPq1.js → sankeyDiagram-TZEHDZUN-BXMx1gW-.js} +2 -2
  42. package/dist/{sequenceDiagram-WL72ISMW-C5LXKyO6.js → sequenceDiagram-WL72ISMW-DYz-lfiq.js} +4 -4
  43. package/dist/{stateDiagram-FKZM4ZOC-tqWNEvX8.js → stateDiagram-FKZM4ZOC-DPc-ZPj3.js} +9 -11
  44. package/dist/{stateDiagram-v2-4FDKWEC3-DwNtkzmN.js → stateDiagram-v2-4FDKWEC3-CbEwc3Y7.js} +5 -5
  45. package/dist/{timeline-definition-IT6M3QCI-DsDBzGHV.js → timeline-definition-IT6M3QCI-CZuEKE0b.js} +3 -3
  46. package/dist/{mermaid-parser.core-3bjcG0rb.js → treemap-KMMF4GRG-D_L55G0b.js} +5422 -5563
  47. package/dist/{xychartDiagram-PRI3JC2R-C96721pe.js → xychartDiagram-PRI3JC2R-BUt0Iczl.js} +3 -3
  48. package/package.json +1 -1
  49. package/dist/_baseUniq-Bo-J_G8t.js +0 -479
  50. package/dist/architecture-U656AL7Q-CPDaOg6H.js +0 -11
  51. package/dist/clone-42WwOfNY.js +0 -8
  52. package/dist/gitGraph-F6HP7TQM-DyZaN85C.js +0 -11
  53. package/dist/graph-vxIytVZ1.js +0 -381
  54. package/dist/info-NVLQJR56-Bk44kkrd.js +0 -11
  55. package/dist/infoDiagram-WHAUD3N6-CQvG7eEX.js +0 -29
  56. package/dist/layout-CFP0NQPV.js +0 -1443
  57. package/dist/min-D8aWZ538.js +0 -38
  58. package/dist/packet-BFZMPI3H-BXyr1-Ur.js +0 -11
  59. package/dist/pie-7BOR55EZ-BdDEpKOx.js +0 -11
  60. package/dist/pieDiagram-ADFJNKIX-Cagn8I7E.js +0 -168
  61. package/dist/radar-NHE76QYJ-rrlsBycr.js +0 -11
  62. package/dist/treemap-KMMF4GRG-BNrkQfZw.js +0 -11
@@ -1,38 +0,0 @@
1
- import { b, a as m, c as d, d as h, i as l } from "./_baseUniq-Bo-J_G8t.js";
2
- import { aD as g, aE as o, aF as p } from "./mermaid.core-D77TS0_l.js";
3
- function L(a) {
4
- var n = a == null ? 0 : a.length;
5
- return n ? b(a) : [];
6
- }
7
- function v(a, n) {
8
- var s = -1, t = g(a) ? Array(a.length) : [];
9
- return m(a, function(f, i, e) {
10
- t[++s] = n(f, i, e);
11
- }), t;
12
- }
13
- function M(a, n) {
14
- var s = o(a) ? h : v;
15
- return s(a, d(n));
16
- }
17
- function x(a, n) {
18
- return a < n;
19
- }
20
- function A(a, n, s) {
21
- for (var t = -1, f = a.length; ++t < f; ) {
22
- var i = a[t], e = n(i);
23
- if (e != null && (r === void 0 ? e === e && !l(e) : s(e, r)))
24
- var r = e, u = i;
25
- }
26
- return u;
27
- }
28
- function k(a) {
29
- return a && a.length ? A(a, p, x) : void 0;
30
- }
31
- export {
32
- x as a,
33
- A as b,
34
- v as c,
35
- k as d,
36
- L as f,
37
- M as m
38
- };
@@ -1,11 +0,0 @@
1
- import { P as c, a as s } from "./mermaid-parser.core-3bjcG0rb.js";
2
- import "./min-D8aWZ538.js";
3
- import "./_baseUniq-Bo-J_G8t.js";
4
- import "./mermaid.core-D77TS0_l.js";
5
- import "./index-2q9HQ6jv.js";
6
- import "react";
7
- import "react-dom";
8
- export {
9
- c as PacketModule,
10
- s as createPacketServices
11
- };
@@ -1,11 +0,0 @@
1
- import { b as s, d as c } from "./mermaid-parser.core-3bjcG0rb.js";
2
- import "./min-D8aWZ538.js";
3
- import "./_baseUniq-Bo-J_G8t.js";
4
- import "./mermaid.core-D77TS0_l.js";
5
- import "./index-2q9HQ6jv.js";
6
- import "react";
7
- import "react-dom";
8
- export {
9
- s as PieModule,
10
- c as createPieServices
11
- };
@@ -1,168 +0,0 @@
1
- import { Y as S, P as F, aB as K, E as Y, o as Z, p as q, s as H, g as J, c as Q, b as X, _ as g, l as z, v as tt, d as et, F as at, K as rt, a6 as nt, k as it } from "./mermaid.core-D77TS0_l.js";
2
- import { p as st } from "./chunk-4BX2VUAB-sv6CSdNg.js";
3
- import { p as lt } from "./mermaid-parser.core-3bjcG0rb.js";
4
- import { d as I } from "./arc-D6vW-5z7.js";
5
- import { o as ot } from "./ordinal-MUacOSdK.js";
6
- import "./index-2q9HQ6jv.js";
7
- import "react";
8
- import "react-dom";
9
- import "./min-D8aWZ538.js";
10
- import "./_baseUniq-Bo-J_G8t.js";
11
- import "./init-DjUOC4st.js";
12
- function ct(t, a) {
13
- return a < t ? -1 : a > t ? 1 : a >= t ? 0 : NaN;
14
- }
15
- function ut(t) {
16
- return t;
17
- }
18
- function pt() {
19
- var t = ut, a = ct, f = null, x = S(0), s = S(F), o = S(0);
20
- function l(e) {
21
- var n, c = (e = K(e)).length, u, y, h = 0, p = new Array(c), i = new Array(c), v = +x.apply(this, arguments), w = Math.min(F, Math.max(-F, s.apply(this, arguments) - v)), m, C = Math.min(Math.abs(w) / c, o.apply(this, arguments)), $ = C * (w < 0 ? -1 : 1), d;
22
- for (n = 0; n < c; ++n)
23
- (d = i[p[n] = n] = +t(e[n], n, e)) > 0 && (h += d);
24
- for (a != null ? p.sort(function(A, D) {
25
- return a(i[A], i[D]);
26
- }) : f != null && p.sort(function(A, D) {
27
- return f(e[A], e[D]);
28
- }), n = 0, y = h ? (w - c * $) / h : 0; n < c; ++n, v = m)
29
- u = p[n], d = i[u], m = v + (d > 0 ? d * y : 0) + $, i[u] = {
30
- data: e[u],
31
- index: n,
32
- value: d,
33
- startAngle: v,
34
- endAngle: m,
35
- padAngle: C
36
- };
37
- return i;
38
- }
39
- return l.value = function(e) {
40
- return arguments.length ? (t = typeof e == "function" ? e : S(+e), l) : t;
41
- }, l.sortValues = function(e) {
42
- return arguments.length ? (a = e, f = null, l) : a;
43
- }, l.sort = function(e) {
44
- return arguments.length ? (f = e, a = null, l) : f;
45
- }, l.startAngle = function(e) {
46
- return arguments.length ? (x = typeof e == "function" ? e : S(+e), l) : x;
47
- }, l.endAngle = function(e) {
48
- return arguments.length ? (s = typeof e == "function" ? e : S(+e), l) : s;
49
- }, l.padAngle = function(e) {
50
- return arguments.length ? (o = typeof e == "function" ? e : S(+e), l) : o;
51
- }, l;
52
- }
53
- var L = Y.pie, G = {
54
- sections: /* @__PURE__ */ new Map(),
55
- showData: !1,
56
- config: L
57
- }, T = G.sections, N = G.showData, gt = structuredClone(L), dt = /* @__PURE__ */ g(() => structuredClone(gt), "getConfig"), ft = /* @__PURE__ */ g(() => {
58
- T = /* @__PURE__ */ new Map(), N = G.showData, tt();
59
- }, "clear"), mt = /* @__PURE__ */ g(({ label: t, value: a }) => {
60
- if (a < 0)
61
- throw new Error(
62
- `"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`
63
- );
64
- T.has(t) || (T.set(t, a), z.debug(`added new section: ${t}, with value: ${a}`));
65
- }, "addSection"), ht = /* @__PURE__ */ g(() => T, "getSections"), vt = /* @__PURE__ */ g((t) => {
66
- N = t;
67
- }, "setShowData"), St = /* @__PURE__ */ g(() => N, "getShowData"), _ = {
68
- getConfig: dt,
69
- clear: ft,
70
- setDiagramTitle: Z,
71
- getDiagramTitle: q,
72
- setAccTitle: H,
73
- getAccTitle: J,
74
- setAccDescription: Q,
75
- getAccDescription: X,
76
- addSection: mt,
77
- getSections: ht,
78
- setShowData: vt,
79
- getShowData: St
80
- }, xt = /* @__PURE__ */ g((t, a) => {
81
- st(t, a), a.setShowData(t.showData), t.sections.map(a.addSection);
82
- }, "populateDb"), yt = {
83
- parse: /* @__PURE__ */ g(async (t) => {
84
- const a = await lt("pie", t);
85
- z.debug(a), xt(a, _);
86
- }, "parse")
87
- }, wt = /* @__PURE__ */ g((t) => `
88
- .pieCircle{
89
- stroke: ${t.pieStrokeColor};
90
- stroke-width : ${t.pieStrokeWidth};
91
- opacity : ${t.pieOpacity};
92
- }
93
- .pieOuterCircle{
94
- stroke: ${t.pieOuterStrokeColor};
95
- stroke-width: ${t.pieOuterStrokeWidth};
96
- fill: none;
97
- }
98
- .pieTitleText {
99
- text-anchor: middle;
100
- font-size: ${t.pieTitleTextSize};
101
- fill: ${t.pieTitleTextColor};
102
- font-family: ${t.fontFamily};
103
- }
104
- .slice {
105
- font-family: ${t.fontFamily};
106
- fill: ${t.pieSectionTextColor};
107
- font-size:${t.pieSectionTextSize};
108
- // fill: white;
109
- }
110
- .legend text {
111
- fill: ${t.pieLegendTextColor};
112
- font-family: ${t.fontFamily};
113
- font-size: ${t.pieLegendTextSize};
114
- }
115
- `, "getStyles"), At = wt, Dt = /* @__PURE__ */ g((t) => {
116
- const a = [...t.values()].reduce((s, o) => s + o, 0), f = [...t.entries()].map(([s, o]) => ({ label: s, value: o })).filter((s) => s.value / a * 100 >= 1).sort((s, o) => o.value - s.value);
117
- return pt().value((s) => s.value)(f);
118
- }, "createPieArcs"), Ct = /* @__PURE__ */ g((t, a, f, x) => {
119
- z.debug(`rendering pie chart
120
- ` + t);
121
- const s = x.db, o = et(), l = at(s.getConfig(), o.pie), e = 40, n = 18, c = 4, u = 450, y = u, h = rt(a), p = h.append("g");
122
- p.attr("transform", "translate(" + y / 2 + "," + u / 2 + ")");
123
- const { themeVariables: i } = o;
124
- let [v] = nt(i.pieOuterStrokeWidth);
125
- v ?? (v = 2);
126
- const w = l.textPosition, m = Math.min(y, u) / 2 - e, C = I().innerRadius(0).outerRadius(m), $ = I().innerRadius(m * w).outerRadius(m * w);
127
- p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", m + v / 2).attr("class", "pieOuterCircle");
128
- const d = s.getSections(), A = Dt(d), D = [
129
- i.pie1,
130
- i.pie2,
131
- i.pie3,
132
- i.pie4,
133
- i.pie5,
134
- i.pie6,
135
- i.pie7,
136
- i.pie8,
137
- i.pie9,
138
- i.pie10,
139
- i.pie11,
140
- i.pie12
141
- ];
142
- let E = 0;
143
- d.forEach((r) => {
144
- E += r;
145
- });
146
- const P = A.filter((r) => (r.data.value / E * 100).toFixed(0) !== "0"), b = ot(D);
147
- p.selectAll("mySlices").data(P).enter().append("path").attr("d", C).attr("fill", (r) => b(r.data.label)).attr("class", "pieCircle"), p.selectAll("mySlices").data(P).enter().append("text").text((r) => (r.data.value / E * 100).toFixed(0) + "%").attr("transform", (r) => "translate(" + $.centroid(r) + ")").style("text-anchor", "middle").attr("class", "slice"), p.append("text").text(s.getDiagramTitle()).attr("x", 0).attr("y", -(u - 50) / 2).attr("class", "pieTitleText");
148
- const W = [...d.entries()].map(([r, M]) => ({
149
- label: r,
150
- value: M
151
- })), k = p.selectAll(".legend").data(W).enter().append("g").attr("class", "legend").attr("transform", (r, M) => {
152
- const R = n + c, V = R * W.length / 2, U = 12 * n, j = M * R - V;
153
- return "translate(" + U + "," + j + ")";
154
- });
155
- k.append("rect").attr("width", n).attr("height", n).style("fill", (r) => b(r.label)).style("stroke", (r) => b(r.label)), k.append("text").attr("x", n + c).attr("y", n - c).text((r) => s.getShowData() ? `${r.label} [${r.value}]` : r.label);
156
- const B = Math.max(
157
- ...k.selectAll("text").nodes().map((r) => (r == null ? void 0 : r.getBoundingClientRect().width) ?? 0)
158
- ), O = y + e + n + c + B;
159
- h.attr("viewBox", `0 0 ${O} ${u}`), it(h, u, O, l.useMaxWidth);
160
- }, "draw"), $t = { draw: Ct }, Ot = {
161
- parser: yt,
162
- db: _,
163
- renderer: $t,
164
- styles: At
165
- };
166
- export {
167
- Ot as diagram
168
- };
@@ -1,11 +0,0 @@
1
- import { R as d, g as s } from "./mermaid-parser.core-3bjcG0rb.js";
2
- import "./min-D8aWZ538.js";
3
- import "./_baseUniq-Bo-J_G8t.js";
4
- import "./mermaid.core-D77TS0_l.js";
5
- import "./index-2q9HQ6jv.js";
6
- import "react";
7
- import "react-dom";
8
- export {
9
- d as RadarModule,
10
- s as createRadarServices
11
- };
@@ -1,11 +0,0 @@
1
- import { T as s, h as T } from "./mermaid-parser.core-3bjcG0rb.js";
2
- import "./min-D8aWZ538.js";
3
- import "./_baseUniq-Bo-J_G8t.js";
4
- import "./mermaid.core-D77TS0_l.js";
5
- import "./index-2q9HQ6jv.js";
6
- import "react";
7
- import "react-dom";
8
- export {
9
- s as TreemapModule,
10
- T as createTreemapServices
11
- };