@foris/ai-agent 0.4.0 → 0.5.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/dist/ai-agent.es.js +5 -4
- package/dist/ai-agent.umd.js +715 -679
- package/dist/ai-chat-panel/chatPanel.constants.d.ts +6 -0
- package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +7 -2
- package/dist/ai-prompt-code-editor/editable-code-block.d.ts +8 -0
- package/dist/{arc-CYayZuAl.js → arc-D_-oet3c.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-CqFKxLlH.js → architectureDiagram-VXUJARFQ-C6CtNZvz.js} +3 -3
- package/dist/{blockDiagram-VD42YOAC-DEi-xIcu.js → blockDiagram-VD42YOAC-BN4EYxD1.js} +4 -4
- package/dist/{c4Diagram-YG6GDRKO-mFZhX_-U.js → c4Diagram-YG6GDRKO-Ce7OiVQF.js} +3 -3
- package/dist/{channel-CbDO3juL.js → channel-QYxMtnsn.js} +1 -1
- package/dist/{chunk-4BX2VUAB-D5qkn5BA.js → chunk-4BX2VUAB-BsZHyUha.js} +1 -1
- package/dist/{chunk-55IACEB6-CR8xZK7z.js → chunk-55IACEB6-CZsgyr6W.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Cm3F2ypm.js → chunk-B4BG7PRW-DmAf9Bg4.js} +4 -4
- package/dist/{chunk-DI55MBZ5-CxISwEU9.js → chunk-DI55MBZ5-CYpWecaH.js} +3 -3
- package/dist/{chunk-FMBD7UC4-DZxSUJCY.js → chunk-FMBD7UC4-hAr3qyfB.js} +1 -1
- package/dist/{chunk-QN33PNHL-5NUdQ31M.js → chunk-QN33PNHL-DcBFIin-.js} +1 -1
- package/dist/{chunk-QZHKN3VN-CSeHgX9s.js → chunk-QZHKN3VN-BHGyZr5a.js} +1 -1
- package/dist/{chunk-TZMSLE5B-DfqMo2XK.js → chunk-TZMSLE5B-Bpgc9un7.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-6wC7c07U.js → classDiagram-2ON5EDUG-C7yqWY_k.js} +6 -6
- package/dist/{classDiagram-v2-WZHVMYZB-6wC7c07U.js → classDiagram-v2-WZHVMYZB-C7yqWY_k.js} +6 -6
- package/dist/{code-block-QI2IAROF-zqFu2qJj.js → code-block-QI2IAROF-CgpwhTuu.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BzL4MMWZ.js → cose-bilkent-S5V4N54A-D08Qi7bf.js} +2 -2
- package/dist/{dagre-6UL2VRFP-CwTDE2RX.js → dagre-6UL2VRFP-Cr_pTcr9.js} +2 -2
- package/dist/{diagram-PSM6KHXK-UeQhynP7.js → diagram-PSM6KHXK-BzxR51_i.js} +4 -4
- package/dist/{diagram-QEK2KX5R-DZy1cp9G.js → diagram-QEK2KX5R-CHVrvEIL.js} +3 -3
- package/dist/{diagram-S2PKOQOG-DyT7Ss8-.js → diagram-S2PKOQOG-xLYTLf61.js} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-CpzaErVm.js → erDiagram-Q2GNP2WA-7KDN7wbO.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-BHP6h-eN.js → flowDiagram-NV44I4VS-Bo4TCep6.js} +6 -6
- package/dist/{ganttDiagram-JELNMOA3-0qqei9Bz.js → ganttDiagram-JELNMOA3-DA9gBZfe.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-DGukWnfa.js → gitGraphDiagram-NY62KEGX-Dg38MsLl.js} +4 -4
- package/dist/hooks/useChat.d.ts +2 -0
- package/dist/hooks/useCodeTransform.d.ts +3 -2
- package/dist/index-DKlfdpwA.js +71125 -0
- package/dist/index.d.ts +2 -1
- package/dist/{infoDiagram-WHAUD3N6-CRWuQBon.js → infoDiagram-WHAUD3N6-XMcODCSn.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-Bl-asDPd.js → journeyDiagram-XKPGCS4Q-BfoN8cUu.js} +5 -5
- package/dist/{kanban-definition-3W4ZIXB7-IdguZzXg.js → kanban-definition-3W4ZIXB7-CI6EFr6V.js} +3 -3
- package/dist/{linear-CRqCHTKs.js → linear-BOHxJJ-f.js} +1 -1
- package/dist/{mermaid-NA5CF7SZ-CkTMfgBy.js → mermaid-NA5CF7SZ-BFjG4ERj.js} +1 -1
- package/dist/{mermaid.core-DyFxH-Px.js → mermaid.core-DOeoWyvq.js} +31 -31
- package/dist/{mindmap-definition-VGOIOE7T-C8jP5oWr.js → mindmap-definition-VGOIOE7T-Fm6PleR-.js} +4 -4
- package/dist/{pieDiagram-ADFJNKIX-DuP0zFKX.js → pieDiagram-ADFJNKIX-N3jjTAEE.js} +4 -4
- package/dist/{quadrantDiagram-AYHSOK5B-ACKBMWQA.js → quadrantDiagram-AYHSOK5B-CCjFyL81.js} +3 -3
- package/dist/{requirementDiagram-UZGBJVZJ-DAH6cyPg.js → requirementDiagram-UZGBJVZJ-DVQd9-Lj.js} +4 -4
- package/dist/{sankeyDiagram-TZEHDZUN-DpLK8yNI.js → sankeyDiagram-TZEHDZUN-B0Dw7zTE.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-CslcsjON.js → sequenceDiagram-WL72ISMW-DTD_bz7R.js} +4 -4
- package/dist/services/fetch-api/FetchApi.d.ts +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-oVuJ6JZY.js → stateDiagram-FKZM4ZOC-CFd7dRxd.js} +5 -5
- package/dist/{stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js → stateDiagram-v2-4FDKWEC3-BblxzJoH.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/tailwind.css +50 -9
- package/dist/{timeline-definition-IT6M3QCI-D_aGDXh0.js → timeline-definition-IT6M3QCI-DvvVcf9K.js} +3 -3
- package/dist/{xychartDiagram-PRI3JC2R-u3osfT09.js → xychartDiagram-PRI3JC2R-BRuIqGMD.js} +3 -3
- package/package.json +3 -1
- package/dist/index-Zd10d_CE.js +0 -52486
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface ToolCall {
|
|
2
|
+
tool: string;
|
|
3
|
+
input?: any;
|
|
4
|
+
result?: any;
|
|
5
|
+
}
|
|
1
6
|
export type MessageType = {
|
|
2
7
|
key: string;
|
|
3
8
|
from: 'user' | 'assistant';
|
|
@@ -13,5 +18,6 @@ export type MessageType = {
|
|
|
13
18
|
content: string;
|
|
14
19
|
duration: number;
|
|
15
20
|
};
|
|
21
|
+
tool?: ToolCall;
|
|
16
22
|
};
|
|
17
23
|
export declare const INITIAL_MESSAGES: MessageType[];
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type BundledLanguage } from 'shiki';
|
|
3
|
-
interface
|
|
4
|
-
|
|
3
|
+
export interface RequestConfig {
|
|
4
|
+
url: string;
|
|
5
|
+
method?: 'post' | 'put';
|
|
5
6
|
headers?: any;
|
|
7
|
+
body?: any;
|
|
8
|
+
}
|
|
9
|
+
interface PromptCodeEditorProps {
|
|
10
|
+
requestConfig: RequestConfig;
|
|
6
11
|
language: BundledLanguage;
|
|
7
12
|
disabled?: boolean;
|
|
8
13
|
inputLabel?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface EditableCodeBlockProps {
|
|
2
|
+
language?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const EditableCodeBlock: (notFrontProps: EditableCodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default EditableCodeBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ln, N as an, O as y, P as tn, Q as Y, R as O, S as _, T as un, V as rn, W as j, X as o, Y as Q, Z as sn, $ as on, a0 as fn } from "./mermaid.core-
|
|
1
|
+
import { M as ln, N as an, O as y, P as tn, Q as Y, R as O, S as _, T as un, V as rn, W as j, X as o, Y as Q, Z as sn, $ as on, a0 as fn } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
function cn(l) {
|
|
3
3
|
return l.innerRadius;
|
|
4
4
|
}
|
package/dist/{architectureDiagram-VXUJARFQ-CqFKxLlH.js → architectureDiagram-VXUJARFQ-C6CtNZvz.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as Ze, s as ke, g as qe, o as Qe, p as Je, b as Ke, c as je, _ as dt, v as _e, F as tr, G as er, ax as rr, ay as ir, l as Re, j as ar, K as nr, ad as or, t as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-
|
|
2
|
-
import { p as lr } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { E as Ze, s as ke, g as qe, o as Qe, p as Je, b as Ke, c as je, _ as dt, v as _e, F as tr, G as er, ax as rr, ay as ir, l as Re, j as ar, K as nr, ad as or, t as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-DOeoWyvq.js";
|
|
2
|
+
import { p as lr } from "./chunk-4BX2VUAB-BsZHyUha.js";
|
|
3
3
|
import { p as fr } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
4
4
|
import { c as Se } from "./cytoscape.esm-ClN43hhW.js";
|
|
5
|
-
import { c as me, g as cr } from "./index-
|
|
5
|
+
import { c as me, g as cr } from "./index-DKlfdpwA.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var Fe = { exports: {} }, ue = { exports: {} }, de = { exports: {} }, we;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as Ce } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { aG as Ie, aH as Be, aI as Oe, aJ as Jt, aK as Qt, aL as Rt, aM as Ae, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, G as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, a9 as Xe, a4 as Ve, k as Ge, v as $e, B as Ze, aa as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-
|
|
1
|
+
import { g as Ce } from "./chunk-FMBD7UC4-hAr3qyfB.js";
|
|
2
|
+
import { aG as Ie, aH as Be, aI as Oe, aJ as Jt, aK as Qt, aL as Rt, aM as Ae, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, G as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, a9 as Xe, a4 as Ve, k as Ge, v as $e, B as Ze, aa as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-DOeoWyvq.js";
|
|
3
3
|
import { G as tr } from "./graph-DB2UxkYH.js";
|
|
4
|
-
import { c as er } from "./channel-
|
|
5
|
-
import "./index-
|
|
4
|
+
import { c as er } from "./channel-QYxMtnsn.js";
|
|
5
|
+
import "./index-DKlfdpwA.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
function rr(e, t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as Se, g as De } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { d as Se, g as De } from "./chunk-TZMSLE5B-Bpgc9un7.js";
|
|
2
|
+
import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-DOeoWyvq.js";
|
|
3
|
+
import "./index-DKlfdpwA.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var Ft = function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as l } from "./mermaid.core-
|
|
1
|
+
import { _ as l } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
function m(e, c) {
|
|
3
3
|
var i, t, o;
|
|
4
4
|
e.accDescr && ((i = c.setAccDescription) == null || i.call(c, e.accDescr)), e.accTitle && ((t = c.setAccTitle) == null || t.call(c, e.accTitle)), e.title && ((o = c.setDiagramTitle) == null || o.call(c, e.title));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, j as o } from "./mermaid.core-
|
|
1
|
+
import { _ as a, j as o } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
var g = /* @__PURE__ */ a((t, e) => {
|
|
3
3
|
let n;
|
|
4
4
|
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as et } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { g as tt } from "./chunk-55IACEB6-
|
|
3
|
-
import { s as st } from "./chunk-QN33PNHL-
|
|
4
|
-
import { _ as f, i as it, d as F, a8 as R, j as Z, s as at, g as nt, c as rt, b as ut, o as lt, p as ot, e as v, v as ct, l as Oe, u as we, t as ht, z as dt, A as pt } from "./mermaid.core-
|
|
1
|
+
import { g as et } from "./chunk-FMBD7UC4-hAr3qyfB.js";
|
|
2
|
+
import { g as tt } from "./chunk-55IACEB6-CZsgyr6W.js";
|
|
3
|
+
import { s as st } from "./chunk-QN33PNHL-DcBFIin-.js";
|
|
4
|
+
import { _ as f, i as it, d as F, a8 as R, j as Z, s as at, g as nt, c as rt, b as ut, o as lt, p as ot, e as v, v as ct, l as Oe, u as we, t as ht, z as dt, A as pt } from "./mermaid.core-DOeoWyvq.js";
|
|
5
5
|
var Ve = function() {
|
|
6
6
|
var s = /* @__PURE__ */ f(function(I, o, h, p) {
|
|
7
7
|
for (h = h || {}, p = I.length; p--; h[I[p]] = o)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as te } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as ee } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-
|
|
1
|
+
import { g as te } from "./chunk-55IACEB6-CZsgyr6W.js";
|
|
2
|
+
import { s as ee } from "./chunk-QN33PNHL-DcBFIin-.js";
|
|
3
|
+
import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-DOeoWyvq.js";
|
|
4
4
|
var vt = function() {
|
|
5
5
|
var e = /* @__PURE__ */ f(function(V, o, h, n) {
|
|
6
6
|
for (h = h || {}, n = V.length; n--; h[V[n]] = o)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n, n as c, m as l } from "./mermaid.core-
|
|
1
|
+
import { _ as n, n as c, m as l } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
var o = /* @__PURE__ */ n((a, t) => {
|
|
3
3
|
const e = a.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-
|
|
2
|
-
import { _ as i } from "./mermaid.core-
|
|
3
|
-
import "./chunk-FMBD7UC4-
|
|
4
|
-
import "./chunk-55IACEB6-
|
|
5
|
-
import "./chunk-QN33PNHL-
|
|
6
|
-
import "./index-
|
|
1
|
+
import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-DmAf9Bg4.js";
|
|
2
|
+
import { _ as i } from "./mermaid.core-DOeoWyvq.js";
|
|
3
|
+
import "./chunk-FMBD7UC4-hAr3qyfB.js";
|
|
4
|
+
import "./chunk-55IACEB6-CZsgyr6W.js";
|
|
5
|
+
import "./chunk-QN33PNHL-DcBFIin-.js";
|
|
6
|
+
import "./index-DKlfdpwA.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var f = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-
|
|
2
|
-
import { _ as i } from "./mermaid.core-
|
|
3
|
-
import "./chunk-FMBD7UC4-
|
|
4
|
-
import "./chunk-55IACEB6-
|
|
5
|
-
import "./chunk-QN33PNHL-
|
|
6
|
-
import "./index-
|
|
1
|
+
import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-DmAf9Bg4.js";
|
|
2
|
+
import { _ as i } from "./mermaid.core-DOeoWyvq.js";
|
|
3
|
+
import "./chunk-FMBD7UC4-hAr3qyfB.js";
|
|
4
|
+
import "./chunk-55IACEB6-CZsgyr6W.js";
|
|
5
|
+
import "./chunk-QN33PNHL-DcBFIin-.js";
|
|
6
|
+
import "./index-DKlfdpwA.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var f = {
|
|
@@ -12,7 +12,7 @@ var $ = (e, r, t) => (Ce(e, r, "read from private field"), t ? t.call(e) : r.get
|
|
|
12
12
|
r instanceof WeakSet ? r.add(e) : r.set(e, t);
|
|
13
13
|
}, M = (e, r, t, n) => (Ce(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t);
|
|
14
14
|
var be = (e, r, t) => (Ce(e, r, "access private method"), t), Ve = (e, r, t) => Br(Tr(e), t, r);
|
|
15
|
-
import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-
|
|
15
|
+
import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-DKlfdpwA.js";
|
|
16
16
|
import { memo as Xr, useMemo as pr, useContext as Zr, useState as Qr, useEffect as qr } from "react";
|
|
17
17
|
import "react-dom";
|
|
18
18
|
function ne(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as V, j as lt, l as k } from "./mermaid.core-
|
|
1
|
+
import { _ as V, j as lt, l as k } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
import { c as J } from "./cytoscape.esm-ClN43hhW.js";
|
|
3
|
-
import { c as $, g as gt } from "./index-
|
|
3
|
+
import { c as $, g as gt } from "./index-DKlfdpwA.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
var tt = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, q;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as X, al as j, am as F, an as Y, ao as H, l as i, d as V, ap as q, aq as U, ai as $, ar as z, aj as P, ah as K, as as Q, at as W, au as Z } from "./mermaid.core-
|
|
1
|
+
import { _ as X, al as j, am as F, an as Y, ao as H, l as i, d as V, ap as q, aq as U, ai as $, ar as z, aj as P, ah as K, as as Q, at as W, au as Z } from "./mermaid.core-DOeoWyvq.js";
|
|
2
2
|
import { i as x, G as B } from "./graph-DB2UxkYH.js";
|
|
3
3
|
import { b as L, m as A, l as I } from "./layout-Q6wQN5dr.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-DKlfdpwA.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var ee = 4;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-
|
|
2
|
-
import { s as we } from "./chunk-QN33PNHL-
|
|
3
|
-
import { p as Ce } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-DOeoWyvq.js";
|
|
2
|
+
import { s as we } from "./chunk-QN33PNHL-DcBFIin-.js";
|
|
3
|
+
import { p as Ce } from "./chunk-4BX2VUAB-BsZHyUha.js";
|
|
4
4
|
import { p as Te } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
5
5
|
import { b as I } from "./defaultLocale-DcQU6Vee.js";
|
|
6
6
|
import { o as Z } from "./ordinal-MUacOSdK.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-DKlfdpwA.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "./init-DjUOC4st.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-
|
|
2
|
-
import { p as W } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-DOeoWyvq.js";
|
|
2
|
+
import { p as W } from "./chunk-4BX2VUAB-BsZHyUha.js";
|
|
3
3
|
import { p as B } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-DKlfdpwA.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var h = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as m, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-
|
|
2
|
-
import { p as _ } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as m, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-DOeoWyvq.js";
|
|
2
|
+
import { p as _ } from "./chunk-4BX2VUAB-BsZHyUha.js";
|
|
3
3
|
import { p as N } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
4
|
-
import "./index-
|
|
4
|
+
import "./index-DKlfdpwA.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var L = B.packet, u, v = (u = class {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as Dt } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as wt } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-
|
|
4
|
-
import { c as Qt } from "./channel-
|
|
5
|
-
import "./index-
|
|
1
|
+
import { g as Dt } from "./chunk-55IACEB6-CZsgyr6W.js";
|
|
2
|
+
import { s as wt } from "./chunk-QN33PNHL-DcBFIin-.js";
|
|
3
|
+
import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-DOeoWyvq.js";
|
|
4
|
+
import { c as Qt } from "./channel-QYxMtnsn.js";
|
|
5
|
+
import "./index-DKlfdpwA.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var dt = function() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as qt } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-
|
|
3
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
4
|
-
import { s as ce } from "./chunk-QN33PNHL-
|
|
5
|
-
import { c as he } from "./channel-
|
|
6
|
-
import "./index-
|
|
1
|
+
import { g as qt } from "./chunk-FMBD7UC4-hAr3qyfB.js";
|
|
2
|
+
import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-DOeoWyvq.js";
|
|
3
|
+
import { g as le } from "./chunk-55IACEB6-CZsgyr6W.js";
|
|
4
|
+
import { s as ce } from "./chunk-QN33PNHL-DcBFIin-.js";
|
|
5
|
+
import { c as he } from "./channel-QYxMtnsn.js";
|
|
6
|
+
import "./index-DKlfdpwA.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var de = "flowchart-", O1, pe = (O1 = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b4 as Je, b5 as Ke, b6 as tn, b7 as en, b8 as In, b9 as se, ba as Ln, _ as d, bb as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-
|
|
2
|
-
import { c as ne, g as re } from "./index-
|
|
3
|
-
import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-
|
|
1
|
+
import { b4 as Je, b5 as Ke, b6 as tn, b7 as en, b8 as In, b9 as se, ba as Ln, _ as d, bb as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-DOeoWyvq.js";
|
|
2
|
+
import { c as ne, g as re } from "./index-DKlfdpwA.js";
|
|
3
|
+
import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-BOHxJJ-f.js";
|
|
4
4
|
import { i as jn } from "./init-DjUOC4st.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as Z } from "./chunk-4BX2VUAB-
|
|
2
|
-
import { I as F } from "./chunk-QZHKN3VN-
|
|
3
|
-
import { E as U, _ as h, d as rr, F as er, G as tr, H as ar, l as m, s as nr, g as sr, b as or, c as cr, o as ir, p as dr, e as B, v as hr, j as lr, u as $r, I as fr } from "./mermaid.core-
|
|
1
|
+
import { p as Z } from "./chunk-4BX2VUAB-BsZHyUha.js";
|
|
2
|
+
import { I as F } from "./chunk-QZHKN3VN-BHGyZr5a.js";
|
|
3
|
+
import { E as U, _ as h, d as rr, F as er, G as tr, H as ar, l as m, s as nr, g as sr, b as or, c as cr, o as ir, p as dr, e as B, v as hr, j as lr, u as $r, I as fr } from "./mermaid.core-DOeoWyvq.js";
|
|
4
4
|
import { p as gr } from "./treemap-KMMF4GRG-D_L55G0b.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-DKlfdpwA.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var u = {
|
package/dist/hooks/useChat.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { MutableRefObject } from 'react';
|
|
2
|
+
import { ToolCall } from '../ai-chat-panel/chatPanel.constants';
|
|
2
3
|
type Role = 'user' | 'assistant';
|
|
3
4
|
interface ChatMessage {
|
|
4
5
|
role: Role;
|
|
5
6
|
content: string;
|
|
7
|
+
tool?: ToolCall;
|
|
6
8
|
}
|
|
7
9
|
interface OnSubmitProps {
|
|
8
10
|
input: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { RequestConfig } from '../ai-prompt-code-editor/PromptCodeEditor';
|
|
1
2
|
export interface CodeTransformResponse {
|
|
2
3
|
codeWithAnnotations: string;
|
|
3
4
|
modifiedCode: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const useCodeTransform: (
|
|
6
|
-
onSubmit: (
|
|
6
|
+
export declare const useCodeTransform: (requestConfig: RequestConfig) => {
|
|
7
|
+
onSubmit: (componentBody: {
|
|
7
8
|
code: string;
|
|
8
9
|
prompt: string;
|
|
9
10
|
}) => Promise<void>;
|