@camunda/copilot-chat 0.2.0 → 0.2.2
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/CopilotChat.d.ts +2 -1
- package/dist/CopilotChat.d.ts.map +1 -1
- package/dist/{codemirror-runtime-DG1oyAYz.mjs → codemirror-runtime-D-DsJ-_a.mjs} +27 -27
- package/dist/{index-swVYgqRa.mjs → index-0OL6F4q8.mjs} +3 -3
- package/dist/{index-EZ70zV16.mjs → index-2b0AN-Sm.mjs} +2 -2
- package/dist/{index-YFCNVqAA.mjs → index-4sa8V10p.mjs} +5 -5
- package/dist/{index-DOLNMxFu.mjs → index-B-5TPQ8A.mjs} +4 -4
- package/dist/{index-gpudq5bw.mjs → index-BO4XF7pS.mjs} +2 -2
- package/dist/{index-D1uAK93Q.mjs → index-BOiWMoFV.mjs} +1 -1
- package/dist/{index-CoA9dcx3.mjs → index-BP4d_XM8.mjs} +2 -2
- package/dist/{index-CscYHy6h.mjs → index-BYd8n6VK.mjs} +4 -4
- package/dist/{index-BFgl6E1o.mjs → index-BiZUzuwb.mjs} +4 -4
- package/dist/{index-Leh-YxAM.mjs → index-CT4z-F-Z.mjs} +2 -2
- package/dist/{index-yQ8LcfAr.mjs → index-CWHzMlNI.mjs} +3 -3
- package/dist/{index-BGGZNrRl.mjs → index-D0G717xH.mjs} +3 -3
- package/dist/{index-QdLWcCgS.mjs → index-D8hYztB7.mjs} +2 -2
- package/dist/{index-BSHG_DM8.mjs → index-DHh-NnqB.mjs} +2 -2
- package/dist/{index-euY2lOJT.mjs → index-DLfTnhPo.mjs} +2707 -2744
- package/dist/{index-C9zW6Z2_.mjs → index-DeT4a01O.mjs} +3 -3
- package/dist/{index-CD6reXSQ.mjs → index-Dh4YMenD.mjs} +4 -4
- package/dist/{index-CgazZahl.mjs → index-DiYttnPR.mjs} +3 -3
- package/dist/{index-C475hKkO.mjs → index-DkN3fEo5.mjs} +2 -2
- package/dist/{index-_I5fuzUF.mjs → index-GnHsKY_1.mjs} +3 -3
- package/dist/{index-Cw-SuhdT.mjs → index-Ot288CPH.mjs} +2 -2
- package/dist/{index-DTywnZ8_.mjs → index-nPKiqutn.mjs} +2 -2
- package/dist/{index-D3YkDr74.mjs → index-rw6j6PYy.mjs} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -11
- package/dist/package.json +1 -1
- package/dist/registry/index.d.ts +1 -3
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/toolDefinitions.d.ts +1 -3
- package/dist/registry/toolDefinitions.d.ts.map +1 -1
- package/dist/registry/toolRegistry.d.ts +19 -9
- package/dist/registry/toolRegistry.d.ts.map +1 -1
- package/dist/store/agentStoreEventProcessor.d.ts.map +1 -1
- package/dist/{table-runtime-DiEr9AuB.mjs → table-runtime-AWA-WeL9.mjs} +1 -1
- package/dist/utils/toolResultFormatter.d.ts +2 -2
- package/dist/utils/toolResultFormatter.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/registry/toolNames.d.ts +0 -10
- package/dist/registry/toolNames.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as t, L as i, i as n, c as $, f as y, j as P, s as X, t as O } from "./codemirror-runtime-
|
|
2
|
-
import { defineCSSCompletionSource as m } from "./index-
|
|
3
|
-
import { L as c, E as S } from "./index-
|
|
1
|
+
import { a as t, L as i, i as n, c as $, f as y, j as P, s as X, t as O } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
2
|
+
import { defineCSSCompletionSource as m } from "./index-DkN3fEo5.mjs";
|
|
3
|
+
import { L as c, E as S } from "./index-BOiWMoFV.mjs";
|
|
4
4
|
const f = 110, l = 1, s = 2, r = [
|
|
5
5
|
9,
|
|
6
6
|
10,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as g, a as P, p as l, s as q, t as r } from "./codemirror-runtime-
|
|
2
|
-
import { html as c } from "./index-
|
|
3
|
-
import { javascriptLanguage as i } from "./index-
|
|
4
|
-
import { L as R, E as p } from "./index-
|
|
1
|
+
import { L as g, a as P, p as l, s as q, t as r } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
2
|
+
import { html as c } from "./index-4sa8V10p.mjs";
|
|
3
|
+
import { javascriptLanguage as i } from "./index-D0G717xH.mjs";
|
|
4
|
+
import { L as R, E as p } from "./index-BOiWMoFV.mjs";
|
|
5
5
|
const b = 1, $ = 33, m = 34, v = 35, x = 36, W = /* @__PURE__ */ new p((O) => {
|
|
6
6
|
let t = O.pos;
|
|
7
7
|
for (; ; ) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as P, L as z, P as st, E as it } from "./index-
|
|
2
|
-
import { P as ot, l as Q, m as v, T as at, n as Ee, s as Ie, o as H, p as lt, t as m, e as X, a as fe, q as ht, E as ft, r as ut, u as dt, v as pt, w as ct, C as mt, f as Me, i as gt, x as kt, y as ue, z as Lt } from "./codemirror-runtime-
|
|
3
|
-
import { html as bt, htmlCompletionSource as wt } from "./index-
|
|
1
|
+
import { t as P, L as z, P as st, E as it } from "./index-DLfTnhPo.mjs";
|
|
2
|
+
import { P as ot, l as Q, m as v, T as at, n as Ee, s as Ie, o as H, p as lt, t as m, e as X, a as fe, q as ht, E as ft, r as ut, u as dt, v as pt, w as ct, C as mt, f as Me, i as gt, x as kt, y as ue, z as Lt } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
3
|
+
import { html as bt, htmlCompletionSource as wt } from "./index-4sa8V10p.mjs";
|
|
4
4
|
class _ {
|
|
5
5
|
static create(e, r, n, s, i) {
|
|
6
6
|
let o = s + (s << 8) + e + (r << 4) | 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as w, E as p, a as Y } from "./index-
|
|
2
|
-
import { s as x, t as r, a as q, L as j, i as G, c as R, f as T, j as E, e as _, N as C, I as U } from "./codemirror-runtime-
|
|
1
|
+
import { L as w, E as p, a as Y } from "./index-BOiWMoFV.mjs";
|
|
2
|
+
import { s as x, t as r, a as q, L as j, i as G, c as R, f as T, j as E, e as _, N as C, I as U } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
3
3
|
const V = 122, g = 1, Z = 123, W = 124, b = 2, N = 125, I = 3, F = 4, X = [
|
|
4
4
|
9,
|
|
5
5
|
10,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as G, E as z, C as N } from "./index-
|
|
2
|
-
import { s as I, t as p, E as Y, e as k, a as j, L as U, i as Z, f as B, A as D } from "./codemirror-runtime-
|
|
3
|
-
import { t as M } from "./index-
|
|
1
|
+
import { L as G, E as z, C as N } from "./index-BOiWMoFV.mjs";
|
|
2
|
+
import { s as I, t as p, E as Y, e as k, a as j, L as U, i as Z, f as B, A as D } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
3
|
+
import { t as M } from "./index-DLfTnhPo.mjs";
|
|
4
4
|
const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
|
|
5
5
|
function re(e) {
|
|
6
6
|
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as s, E as R, a as Y, C as x } from "./index-
|
|
2
|
-
import { s as w, t as O, a as d, b as k, d as h, L as f, i as u, g as y, c as l, h as g, f as j, j as U, e as G, k as X, N as b, I as Z } from "./codemirror-runtime-
|
|
1
|
+
import { L as s, E as R, a as Y, C as x } from "./index-BOiWMoFV.mjs";
|
|
2
|
+
import { s as w, t as O, a as d, b as k, d as h, L as f, i as u, g as y, c as l, h as g, f as j, j as U, e as G, k as X, N as b, I as Z } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
3
3
|
const _ = 177, q = 179, E = 184, v = 12, C = 13, D = 17, z = 20, F = 25, B = 53, N = 95, I = 142, L = 144, A = 145, J = 148, M = 10, H = 13, K = 32, OO = 9, $ = 47, QO = 41, eO = 125, aO = new R((Q, e) => {
|
|
4
4
|
for (let n = 0, a = Q.next; (e.context && (a < 0 || a == M || a == H || a == $ && Q.peek(n + 1) == $) || a == QO || a == eO) && Q.acceptToken(_), !(a != K && a != OO); )
|
|
5
5
|
a = Q.peek(++n);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as W, E as i, C as B } from "./index-
|
|
2
|
-
import { s as U, t as n, a as b, p as E, L as C, i as u, h as v, f as M, j as N } from "./codemirror-runtime-
|
|
1
|
+
import { L as W, E as i, C as B } from "./index-BOiWMoFV.mjs";
|
|
2
|
+
import { s as U, t as n, a as b, p as E, L as C, i as u, h as v, f as M, j as N } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
3
3
|
const c = 63, D = 64, j = 1, A = 2, y = 3, H = 4, Z = 5, F = 6, I = 7, z = 65, K = 66, J = 8, OO = 9, eO = 10, aO = 11, rO = 12, V = 13, tO = 19, nO = 20, oO = 29, PO = 33, QO = 34, sO = 47, lO = 0, T = 1, g = 2, d = 3, m = 4;
|
|
4
4
|
class s {
|
|
5
5
|
constructor(e, a, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as O, L as r, i as b, h as s, f as a, j as t, s as P, t as e } from "./codemirror-runtime-
|
|
2
|
-
import { L as n } from "./index-
|
|
1
|
+
import { a as O, L as r, i as b, h as s, f as a, j as t, s as P, t as e } from "./codemirror-runtime-D-DsJ-_a.mjs";
|
|
2
|
+
import { L as n } from "./index-BOiWMoFV.mjs";
|
|
3
3
|
const S = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 }, i = /* @__PURE__ */ n.deserialize({
|
|
4
4
|
version: 14,
|
|
5
5
|
states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._container_1ryui_9{width:100%}._inputContainer_17dk2_9{display:flex;align-items:flex-end;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-04, .75rem) var(--cds-spacing-05, 1rem);background-color:var(--cds-background, #fff);border-block-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1));position:relative}._textArea_17dk2_19{flex:1;padding:var(--cds-spacing-03, .5rem) 0;border:none;margin:0;background:transparent;color:var(--cds-text-primary, #161616);font-family:var( --cds-font-family-sans, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif );font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;resize:none;outline:none;overflow-y:auto;min-height:40px;max-height:var(--chat-input-max-height, 150px);box-shadow:none;scrollbar-width:thin;scrollbar-color:var(--cds-border-strong-01, #8d8d8d) transparent}._textArea_17dk2_19::-webkit-scrollbar{width:6px}._textArea_17dk2_19::-webkit-scrollbar-track{background:transparent}._textArea_17dk2_19::-webkit-scrollbar-thumb{background-color:var(--cds-border-strong-01, #8d8d8d);border-radius:4px}._textArea_17dk2_19:focus{border:none;outline:none;box-shadow:none}._textArea_17dk2_19::placeholder{color:var(--cds-text-placeholder, #a8a8a8);font-weight:400}._textArea_17dk2_19:disabled{color:var(--cds-text-disabled, #c6c6c6);cursor:not-allowed;opacity:.5}._actionButton_17dk2_77{flex-shrink:0;min-width:32px;min-height:32px;padding:var(--cds-spacing-02, .25rem);color:var(--cds-ai-aura-start, #8a3ffc);border-radius:8px;transition:all var(--cds-duration-fast-02, .11s) ease-in-out}._actionButton_17dk2_77:hover:not(:disabled){background-color:#8a3ffc1a;color:var(--cds-ai-aura-hover, #7a34e4)}._actionButton_17dk2_77:active:not(:disabled){background-color:#8a3ffc33;transform:scale(.95)}._actionButton_17dk2_77:disabled{color:var(--cds-text-disabled, #c6c6c6);cursor:not-allowed;opacity:.5}._container_cy4gr_9{display:block;inline-size:100%;overflow:hidden;margin-top:var(--cds-spacing-04, .75rem)}._toggleButton_cy4gr_16{padding-inline-start:2px}._cardWrapper_cy4gr_20{margin-top:var(--cds-spacing-03, .5rem);animation:_fade-in_cy4gr_1 .2s ease-out}._cardBody_cy4gr_25{display:flex;flex-direction:column;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-05, 1rem)}._cardTitle_cy4gr_32{font-size:14px;font-weight:600;line-height:18px;color:var(--cds-text-primary, #161616);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._cardPreview_cy4gr_42{font-size:12px;font-weight:400;line-height:16px;color:var(--cds-text-secondary, #525252);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}._viewSourceLink_cy4gr_53{font-size:12px;color:var(--cds-link-primary, #0f62fe);text-decoration:none;cursor:pointer}._viewSourceLink_cy4gr_53:hover{text-decoration:underline}._pagination_cy4gr_64{display:flex;align-items:center;justify-content:flex-end;gap:var(--cds-spacing-02, .25rem);padding:var(--cds-spacing-02, .25rem) 0;margin-top:var(--cds-spacing-02, .25rem)}._paginationButton_cy4gr_73{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:var(--cds-spacing-02, .25rem);cursor:pointer;color:var(--cds-text-secondary, #525252);border-radius:2px}._paginationButton_cy4gr_73:hover:not(:disabled){color:var(--cds-text-primary, #161616);background:var(--cds-layer-hover, #e8e8e8)}._paginationButton_cy4gr_73:disabled{opacity:.25;cursor:not-allowed}._paginationLabel_cy4gr_95{font-size:12px;color:var(--cds-text-secondary, #525252);min-inline-size:2rem;text-align:center}._launchIcon_cy4gr_102{display:inline-flex;align-items:center;justify-content:center;padding:var(--cds-spacing-02, .25rem);color:var(--cds-text-secondary, #525252);cursor:pointer;margin-inline-start:var(--cds-spacing-02, .25rem)}._launchIcon_cy4gr_102:hover{color:var(--cds-text-primary, #161616)}@keyframes _fade-in_cy4gr_1{0%{opacity:0}to{opacity:1}}._streamingIndicator_1d1l1_9{display:flex;align-items:center;gap:var(--cds-spacing-03, 8px);padding-block-start:var(--cds-spacing-02, 4px);color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px)}._processingLabel_1d1l1_18{color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px)}._collapsibleContainer_1d1l1_23{display:flex;flex-direction:column;gap:var(--cds-spacing-02, 4px);padding-block:var(--cds-spacing-02, 4px)}._collapseToggle_1d1l1_30{display:flex;align-items:center;gap:var(--cds-spacing-02, 4px);padding:var(--cds-spacing-02, 4px) var(--cds-spacing-03, 8px);border:none;background:transparent;color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px);cursor:pointer;border-radius:4px}._collapseToggle_1d1l1_30:hover{background-color:var(--cds-layer-hover-01, rgba(0, 0, 0, .06))}._collapseToggle_1d1l1_30:focus{outline:2px solid var(--cds-focus, #0f62fe);outline-offset:-2px}._completedLabel_1d1l1_52{font-weight:500}._collapsedContent_1d1l1_56{padding:var(--cds-spacing-03, 8px) var(--cds-spacing-04, 12px);margin-inline-start:var(--cds-spacing-05, 20px);background-color:var(--cds-layer-01, #f4f4f4);border-radius:4px;font-size:var(--cds-helper-text-01-font-size, 12px);line-height:1.5;color:var(--cds-text-secondary, #525252);white-space:pre-wrap;word-break:break-word;max-block-size:200px;overflow-y:auto}._message_1kl9c_9{display:flex;flex-direction:column;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-05, 1rem) var(--cds-spacing-05, 1.25rem)}._userMessage_1kl9c_16{align-items:flex-end}._assistantMessage_1kl9c_20{align-items:flex-start}._userBubble_1kl9c_24{max-inline-size:90%;padding:var(--cds-spacing-04, .75rem) var(--cds-spacing-05, 1rem);background-color:var(--cds-layer-01, #f4f4f4);color:var(--cds-text-primary, #161616);border-radius:16px 16px 4px;font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;word-wrap:break-word}._assistantBubble_1kl9c_36{max-inline-size:90%;font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;color:var(--cds-text-primary, #161616);word-wrap:break-word}._container_1jf8y_9{display:flex;flex-direction:column;flex:1;overflow:hidden}._list_1jf8y_16{flex:1;overflow-y:auto;padding:var(--cds-spacing-05, 1rem) 0;padding-bottom:80vh}._emptyState_1jf8y_24{display:flex;flex-direction:column;align-items:center;justify-content:center;block-size:100%;padding:var(--cds-spacing-07, 2rem);text-align:center;color:var(--cds-text-secondary, #525252)}._emptyTitle_1jf8y_35{margin-block-end:var(--cds-spacing-03, .5rem);font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:600;color:var(--cds-text-primary, #161616)}._emptyDescription_1jf8y_42{font-size:var(--cds-body-compact-01-font-size, .875rem)}._header_b44mx_9{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;block-size:var(--copilot-header-height, 57px);padding-inline:var(--cds-spacing-05, 1rem);background-color:var(--cds-background, #fff);border-block-end:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1));flex-shrink:0}._titleContainer_b44mx_22{display:flex;align-items:center;gap:var(--cds-spacing-03, .5rem)}._titleWrapper_b44mx_28{display:flex;flex-direction:column;gap:var(--cds-spacing-01, .125rem)}._icon_b44mx_34{inline-size:var(--copilot-icon-size, 20px);block-size:var(--copilot-icon-size, 20px);color:var(--cds-purple-60, #7c3aed)}._title_b44mx_22{font-size:var(--cds-body-compact-01-font-size, .875rem);font-weight:600;color:var(--cds-text-primary, #161616)}._subtitle_b44mx_46{font-size:var(--cds-label-01-font-size, .75rem);color:var(--cds-text-secondary, #525252);line-height:1.2}._headerActions_b44mx_52{display:flex;align-items:center;gap:var(--cds-spacing-02, .25rem)}._launcher_frhar_9{position:fixed;inset-block-end:var(--copilot-launcher-offset, var(--cds-spacing-06, 24px));inset-inline-end:var(--copilot-launcher-offset, var(--cds-spacing-06, 24px));z-index:var(--z-index-launcher, 10000);inline-size:var(--copilot-launcher-size, 56px);block-size:var(--copilot-launcher-size, 56px);border-radius:50%;background-color:var(--cds-ai-aura-start, #8a3ffc);border:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color var(--cds-duration-moderate-01, .2s) ease-in-out,opacity var(--cds-duration-moderate-01, .2s) ease-in-out}._launcher_frhar_9:hover{background-color:var(--cds-ai-aura-hover, #7a34e4)}._launcher_frhar_9:active{background-color:var(--cds-ai-aura-end, #5c24aa)}._launcher_frhar_9:disabled{opacity:.5;cursor:not-allowed}._launcher--hidden_frhar_41{opacity:0;pointer-events:none}._icon_frhar_46{inline-size:28px;block-size:28px}body[data-copilot-chat-layout=bottom-sheet] ._launcher_frhar_9{inset-inline-end:var(--cds-spacing-05, 16px);inset-block-end:var(--cds-spacing-05, 16px)}._stopButton_a8mmh_9{position:absolute;inset-block-end:var(--spacing-px-16, 16px);inset-inline-end:0;transform:translate(-50%);z-index:var(--z-index-stop-button, 10000)}:root{--copilot-chat-sidecar-width: var(--sidecar-width, 416px);--copilot-chat-panel-z-index: var(--z-index-panel, 9999);--copilot-chat-transition: var(--cds-duration-moderate-01, .15s) cubic-bezier(.2, 0, .38, .9);--copilot-header-height: var(--header-height, 57px);--sidecar-width: 416px;--sidecar-min-width: 320px;--sidecar-max-width: 512px}body[data-copilot-chat-layout=sidecar],[data-copilot-chat-host]{margin-inline-end:var(--copilot-chat-sidecar-width);transition:margin-inline-end var(--copilot-chat-transition);box-sizing:border-box}body[data-copilot-chat-layout=bottom-sheet]{margin-inline-end:0}body[data-copilot-chat-layout=bottom-sheet] .copilot-chat-wrapper{inset-inline:0;inset-block-start:auto;inset-block-end:0;block-size:min(70vh,520px);inline-size:100%;border-inline-start:none;border-block-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1))}._container_r1y9j_9{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;background-color:var(--cds-background, #fff);font-family:var( --cds-font-family-sans, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif )}._body_r1y9j_27{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}._footer_r1y9j_35{flex-shrink:0}._wrapper_64wqf_9{position:fixed;inset-block-start:var(--copilot-chat-offset-top, 0);inset-inline-end:0;inset-block-end:0;inline-size:var(--copilot-sidecar-width, 416px);z-index:12;transform:translate(100%);transition:transform .3s ease-in-out;display:flex;flex-direction:column}._wrapperOpen_64wqf_22{transform:translate(0)}._panel_64wqf_26{display:flex;flex-direction:column;block-size:100%;background-color:var(--cds-background, #fff);border-inline-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1))}
|
|
1
|
+
._container_1ryui_9{width:100%}._inputContainer_jibag_9{display:flex;align-items:flex-end;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-04, .75rem) var(--cds-spacing-05, 1rem);background-color:var(--cds-background, #fff);border-block-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1));position:relative}._textArea_jibag_19{flex:1;padding:var(--cds-spacing-03, .5rem) 0;border:none;margin:0;background:transparent;color:var(--cds-text-primary, #161616);font-family:var( --cds-font-family-sans, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif );font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;resize:none;outline:none;overflow-y:auto;min-height:40px;max-height:var(--chat-input-max-height, 150px);box-shadow:none;scrollbar-width:thin;scrollbar-color:var(--cds-border-strong-01, #8d8d8d) transparent}._textArea_jibag_19::-webkit-scrollbar{width:6px}._textArea_jibag_19::-webkit-scrollbar-track{background:transparent}._textArea_jibag_19::-webkit-scrollbar-thumb{background-color:var(--cds-border-strong-01, #8d8d8d);border-radius:4px}._textArea_jibag_19:focus{border:none;outline:none;box-shadow:none}._inputContainer_jibag_9:focus-within{outline:1px solid var(--cds-focus, #0f62fe);outline-offset:-1px}._textArea_jibag_19::placeholder{color:var(--cds-text-placeholder, #a8a8a8);font-weight:400}._textArea_jibag_19:disabled{color:var(--cds-text-disabled, #c6c6c6);cursor:not-allowed;opacity:.5}._actionButton_jibag_82{flex-shrink:0;min-width:32px;min-height:32px;padding:var(--cds-spacing-02, .25rem);color:var(--cds-ai-aura-start, #8a3ffc);border-radius:8px;transition:all var(--cds-duration-fast-02, .11s) ease-in-out}._actionButton_jibag_82:hover:not(:disabled){background-color:#8a3ffc1a;color:var(--cds-ai-aura-hover, #7a34e4)}._actionButton_jibag_82:active:not(:disabled){background-color:#8a3ffc33;transform:scale(.95)}._actionButton_jibag_82:disabled{color:var(--cds-text-disabled, #c6c6c6);cursor:not-allowed;opacity:.5}._container_cy4gr_9{display:block;inline-size:100%;overflow:hidden;margin-top:var(--cds-spacing-04, .75rem)}._toggleButton_cy4gr_16{padding-inline-start:2px}._cardWrapper_cy4gr_20{margin-top:var(--cds-spacing-03, .5rem);animation:_fade-in_cy4gr_1 .2s ease-out}._cardBody_cy4gr_25{display:flex;flex-direction:column;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-05, 1rem)}._cardTitle_cy4gr_32{font-size:14px;font-weight:600;line-height:18px;color:var(--cds-text-primary, #161616);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._cardPreview_cy4gr_42{font-size:12px;font-weight:400;line-height:16px;color:var(--cds-text-secondary, #525252);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}._viewSourceLink_cy4gr_53{font-size:12px;color:var(--cds-link-primary, #0f62fe);text-decoration:none;cursor:pointer}._viewSourceLink_cy4gr_53:hover{text-decoration:underline}._pagination_cy4gr_64{display:flex;align-items:center;justify-content:flex-end;gap:var(--cds-spacing-02, .25rem);padding:var(--cds-spacing-02, .25rem) 0;margin-top:var(--cds-spacing-02, .25rem)}._paginationButton_cy4gr_73{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:var(--cds-spacing-02, .25rem);cursor:pointer;color:var(--cds-text-secondary, #525252);border-radius:2px}._paginationButton_cy4gr_73:hover:not(:disabled){color:var(--cds-text-primary, #161616);background:var(--cds-layer-hover, #e8e8e8)}._paginationButton_cy4gr_73:disabled{opacity:.25;cursor:not-allowed}._paginationLabel_cy4gr_95{font-size:12px;color:var(--cds-text-secondary, #525252);min-inline-size:2rem;text-align:center}._launchIcon_cy4gr_102{display:inline-flex;align-items:center;justify-content:center;padding:var(--cds-spacing-02, .25rem);color:var(--cds-text-secondary, #525252);cursor:pointer;margin-inline-start:var(--cds-spacing-02, .25rem)}._launchIcon_cy4gr_102:hover{color:var(--cds-text-primary, #161616)}@keyframes _fade-in_cy4gr_1{0%{opacity:0}to{opacity:1}}._streamingIndicator_1d1l1_9{display:flex;align-items:center;gap:var(--cds-spacing-03, 8px);padding-block-start:var(--cds-spacing-02, 4px);color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px)}._processingLabel_1d1l1_18{color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px)}._collapsibleContainer_1d1l1_23{display:flex;flex-direction:column;gap:var(--cds-spacing-02, 4px);padding-block:var(--cds-spacing-02, 4px)}._collapseToggle_1d1l1_30{display:flex;align-items:center;gap:var(--cds-spacing-02, 4px);padding:var(--cds-spacing-02, 4px) var(--cds-spacing-03, 8px);border:none;background:transparent;color:var(--cds-text-secondary, #525252);font-size:var(--cds-helper-text-01-font-size, 12px);cursor:pointer;border-radius:4px}._collapseToggle_1d1l1_30:hover{background-color:var(--cds-layer-hover-01, rgba(0, 0, 0, .06))}._collapseToggle_1d1l1_30:focus{outline:2px solid var(--cds-focus, #0f62fe);outline-offset:-2px}._completedLabel_1d1l1_52{font-weight:500}._collapsedContent_1d1l1_56{padding:var(--cds-spacing-03, 8px) var(--cds-spacing-04, 12px);margin-inline-start:var(--cds-spacing-05, 20px);background-color:var(--cds-layer-01, #f4f4f4);border-radius:4px;font-size:var(--cds-helper-text-01-font-size, 12px);line-height:1.5;color:var(--cds-text-secondary, #525252);white-space:pre-wrap;word-break:break-word;max-block-size:200px;overflow-y:auto}._message_ntlg1_9{display:flex;flex-direction:column;gap:var(--cds-spacing-03, .5rem);padding:var(--cds-spacing-05, 1rem) var(--cds-spacing-05, 1.25rem)}._userMessage_ntlg1_16{align-items:flex-end}._assistantMessage_ntlg1_20{align-items:flex-start}._userBubble_ntlg1_24{max-inline-size:90%;padding:var(--cds-spacing-04, .75rem) var(--cds-spacing-05, 1rem);background-color:var(--cds-background-inverse, #393939);color:var(--cds-text-inverse, #fff);border-radius:16px 16px 4px;font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;word-wrap:break-word}._assistantBubble_ntlg1_36{max-inline-size:90%;font-size:var(--cds-body-compact-01-font-size, .875rem);line-height:1.5;color:var(--cds-text-primary, #161616);word-wrap:break-word}._timestamp_ntlg1_44{font-size:var(--cds-helper-text-01-font-size, .75rem);color:var(--cds-text-helper, #6f6f6f);line-height:1}._container_1jf8y_9{display:flex;flex-direction:column;flex:1;overflow:hidden}._list_1jf8y_16{flex:1;overflow-y:auto;padding:var(--cds-spacing-05, 1rem) 0;padding-bottom:80vh}._emptyState_1jf8y_24{display:flex;flex-direction:column;align-items:center;justify-content:center;block-size:100%;padding:var(--cds-spacing-07, 2rem);text-align:center;color:var(--cds-text-secondary, #525252)}._emptyTitle_1jf8y_35{margin-block-end:var(--cds-spacing-03, .5rem);font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:600;color:var(--cds-text-primary, #161616)}._emptyDescription_1jf8y_42{font-size:var(--cds-body-compact-01-font-size, .875rem)}._header_b44mx_9{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;block-size:var(--copilot-header-height, 57px);padding-inline:var(--cds-spacing-05, 1rem);background-color:var(--cds-background, #fff);border-block-end:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1));flex-shrink:0}._titleContainer_b44mx_22{display:flex;align-items:center;gap:var(--cds-spacing-03, .5rem)}._titleWrapper_b44mx_28{display:flex;flex-direction:column;gap:var(--cds-spacing-01, .125rem)}._icon_b44mx_34{inline-size:var(--copilot-icon-size, 20px);block-size:var(--copilot-icon-size, 20px);color:var(--cds-purple-60, #7c3aed)}._title_b44mx_22{font-size:var(--cds-body-compact-01-font-size, .875rem);font-weight:600;color:var(--cds-text-primary, #161616)}._subtitle_b44mx_46{font-size:var(--cds-label-01-font-size, .75rem);color:var(--cds-text-secondary, #525252);line-height:1.2}._headerActions_b44mx_52{display:flex;align-items:center;gap:var(--cds-spacing-02, .25rem)}._launcher_frhar_9{position:fixed;inset-block-end:var(--copilot-launcher-offset, var(--cds-spacing-06, 24px));inset-inline-end:var(--copilot-launcher-offset, var(--cds-spacing-06, 24px));z-index:var(--z-index-launcher, 10000);inline-size:var(--copilot-launcher-size, 56px);block-size:var(--copilot-launcher-size, 56px);border-radius:50%;background-color:var(--cds-ai-aura-start, #8a3ffc);border:none;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color var(--cds-duration-moderate-01, .2s) ease-in-out,opacity var(--cds-duration-moderate-01, .2s) ease-in-out}._launcher_frhar_9:hover{background-color:var(--cds-ai-aura-hover, #7a34e4)}._launcher_frhar_9:active{background-color:var(--cds-ai-aura-end, #5c24aa)}._launcher_frhar_9:disabled{opacity:.5;cursor:not-allowed}._launcher--hidden_frhar_41{opacity:0;pointer-events:none}._icon_frhar_46{inline-size:28px;block-size:28px}body[data-copilot-chat-layout=bottom-sheet] ._launcher_frhar_9{inset-inline-end:var(--cds-spacing-05, 16px);inset-block-end:var(--cds-spacing-05, 16px)}._stopButton_a8mmh_9{position:absolute;inset-block-end:var(--spacing-px-16, 16px);inset-inline-end:0;transform:translate(-50%);z-index:var(--z-index-stop-button, 10000)}:root{--copilot-chat-sidecar-width: var(--sidecar-width, 416px);--copilot-chat-panel-z-index: var(--z-index-panel, 9999);--copilot-chat-transition: var(--cds-duration-moderate-01, .15s) cubic-bezier(.2, 0, .38, .9);--copilot-header-height: var(--header-height, 57px);--sidecar-width: 416px;--sidecar-min-width: 320px;--sidecar-max-width: 512px}[data-copilot-chat-host=sidecar]{margin-inline-end:var(--copilot-chat-sidecar-width);transition:margin-inline-end var(--copilot-chat-transition);box-sizing:border-box}body[data-copilot-chat-layout=bottom-sheet]{margin-inline-end:0}body[data-copilot-chat-layout=bottom-sheet] .copilot-chat-wrapper{inset-inline:0;inset-block-start:auto;inset-block-end:0;block-size:min(70vh,520px);inline-size:100%;border-inline-start:none;border-block-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1))}._container_r1y9j_9{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;background-color:var(--cds-background, #fff);font-family:var( --cds-font-family-sans, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif )}._body_r1y9j_27{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}._footer_r1y9j_35{flex-shrink:0}._wrapper_64wqf_9{position:fixed;inset-block-start:var(--copilot-chat-offset-top, 0);inset-inline-end:0;inset-block-end:0;inline-size:var(--copilot-sidecar-width, 416px);z-index:12;transform:translate(100%);transition:transform .3s ease-in-out;display:flex;flex-direction:column}._wrapperOpen_64wqf_22{transform:translate(0)}._panel_64wqf_26{display:flex;flex-direction:column;block-size:100%;background-color:var(--cds-background, #fff);border-inline-start:1px solid var(--cds-border-subtle-00, rgba(0, 0, 0, .1))}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export { AgentState, EventType, EventStatus, ResultType } from './types';
|
|
|
10
10
|
export type { AgentStateType, EventTypeValue, EventStatusValue, ResultTypeValue, AgentEvent, AgentResult, ToolInvokeResult, ToolHandler, AgentTransport, AgentAdapterConfig, AgentAdapterReturn, SendMessagePayload, ToolResultPayload, } from './types';
|
|
11
11
|
export { useAgentAdapter } from './hooks';
|
|
12
12
|
export { getDefaultStatusLabel } from './utils';
|
|
13
|
-
export { toolRegistry
|
|
14
|
-
export type { ToolType, ContentType,
|
|
13
|
+
export { toolRegistry } from './registry';
|
|
14
|
+
export type { ToolType, ContentType, ToolCategory, ToolRegistration, ToolDefinition } from './registry';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EACL,SAAS,EACT,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE/F,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtF,YAAY,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACzE,YAAY,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"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E,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as s, W as o, X as n, Y as r, Z as i, $ as
|
|
1
|
+
import { V as s, W as o, X as n, Y as r, Z as i, $ as p, a0 as l, a1 as u, a2 as C, a3 as g, a4 as S, a5 as d, a6 as h, a7 as c, a8 as A, a9 as y, aa as I, ab as L, ac as M, ad as R, ae as T } from "./index-DLfTnhPo.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
s as AgentState,
|
|
@@ -6,8 +6,8 @@ export {
|
|
|
6
6
|
n as ChatMessage,
|
|
7
7
|
r as ChatMessageList,
|
|
8
8
|
i as CopilotChat,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
p as CopilotHeader,
|
|
10
|
+
l as CopilotLauncher,
|
|
11
11
|
u as CopilotSidecar,
|
|
12
12
|
C as CopilotStopButton,
|
|
13
13
|
g as EventStatus,
|
|
@@ -15,12 +15,11 @@ export {
|
|
|
15
15
|
d as MarkdownRenderer,
|
|
16
16
|
h as ResultType,
|
|
17
17
|
c as ThinkingIndicator,
|
|
18
|
-
A as
|
|
19
|
-
y as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
M as useChatStore
|
|
18
|
+
A as getDefaultStatusLabel,
|
|
19
|
+
y as selectAgentState,
|
|
20
|
+
I as selectIsBusy,
|
|
21
|
+
L as toolRegistry,
|
|
22
|
+
M as useAgentAdapter,
|
|
23
|
+
R as useAgentStore,
|
|
24
|
+
T as useChatStore
|
|
26
25
|
};
|
package/dist/package.json
CHANGED
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { toolRegistry, type ToolType, type ContentType } from './toolRegistry';
|
|
2
|
-
export { ToolName, type ToolNameValue, isToolNameValue } from './toolNames';
|
|
3
|
-
export { TOOL_DEFINITIONS, type ToolDefinition } from './toolDefinitions';
|
|
1
|
+
export { toolRegistry, type ToolType, type ContentType, type ToolCategory, type ToolDefinition, type ToolRegistration, } from './toolRegistry';
|
|
4
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ToolNameValue } from './toolNames';
|
|
2
1
|
import { ContentType, ToolCategory, ToolType } from './toolRegistry';
|
|
3
2
|
export interface ToolDefinition {
|
|
4
|
-
readonly name:
|
|
3
|
+
readonly name: string;
|
|
5
4
|
readonly description: string;
|
|
6
5
|
readonly parameters: Record<string, unknown>;
|
|
7
6
|
readonly type: ToolType;
|
|
8
7
|
readonly contentType: ContentType;
|
|
9
8
|
readonly category: ToolCategory;
|
|
10
9
|
}
|
|
11
|
-
export declare const TOOL_DEFINITIONS: Record<ToolNameValue, ToolDefinition>;
|
|
12
10
|
//# sourceMappingURL=toolDefinitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolDefinitions.d.ts","sourceRoot":"","sources":["../../src/registry/toolDefinitions.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"toolDefinitions.d.ts","sourceRoot":"","sources":["../../src/registry/toolDefinitions.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CACjC"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import { MixedToolHandler, ToolHandler } from '../types/toolTypes';
|
|
2
2
|
import { BackendToolPayload } from '../types/transportTypes';
|
|
3
|
-
import { ToolNameValue } from './toolNames';
|
|
4
3
|
export type ToolType = 'frontend' | 'mixed';
|
|
5
4
|
export type ContentType = 'TEXT' | 'BPMN';
|
|
6
5
|
export type ToolCategory = 'BPMN_CORE' | 'BPMN_MODIFICATION' | 'BPMN_QUERY' | 'FEEL_CORE' | 'FORM_CORE' | 'INTEGRATION' | 'FILE_OPERATION' | 'GENERAL';
|
|
6
|
+
export interface ToolDefinition {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly parameters: Record<string, unknown>;
|
|
10
|
+
readonly type: ToolType;
|
|
11
|
+
readonly contentType: ContentType;
|
|
12
|
+
readonly category: ToolCategory;
|
|
13
|
+
}
|
|
14
|
+
export interface ToolRegistration extends ToolDefinition {
|
|
15
|
+
readonly handler: ToolHandler | MixedToolHandler;
|
|
16
|
+
}
|
|
7
17
|
export declare const toolRegistry: {
|
|
8
|
-
registerTool: (
|
|
9
|
-
has: (name:
|
|
10
|
-
hasHandler: (name:
|
|
11
|
-
isMixed: (name:
|
|
12
|
-
getContentType: (name:
|
|
13
|
-
getMixedHandler: (name:
|
|
14
|
-
getHandler: (name:
|
|
15
|
-
executeHandler: (name:
|
|
18
|
+
registerTool: (registration: ToolRegistration) => void;
|
|
19
|
+
has: (name: string) => boolean;
|
|
20
|
+
hasHandler: (name: string) => boolean;
|
|
21
|
+
isMixed: (name: string) => boolean;
|
|
22
|
+
getContentType: (name: string) => ContentType;
|
|
23
|
+
getMixedHandler: (name: string) => MixedToolHandler | undefined;
|
|
24
|
+
getHandler: (name: string) => ToolHandler | undefined;
|
|
25
|
+
executeHandler: (name: string, args: Record<string, unknown>, onError: (toolName: string, error: Error) => void) => Promise<unknown>;
|
|
16
26
|
getToolsForBackend: () => readonly BackendToolPayload[];
|
|
17
27
|
clear: () => void;
|
|
18
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolRegistry.d.ts","sourceRoot":"","sources":["../../src/registry/toolRegistry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,
|
|
1
|
+
{"version":3,"file":"toolRegistry.d.ts","sourceRoot":"","sources":["../../src/registry/toolRegistry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,YAAY,GACpB,WAAW,GACX,mBAAmB,GACnB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,SAAS,CAAC;AAEd,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,Q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CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC9C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAmHD,eAAO,MAAM,iBAAiB,GAAI,OAAO,UAAU,EAAE,OAAO,eAAe,KAAG,kBAM7E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as Ze, H as K, i as x, p as t, b as p, s as M, _ as i, r as H, n as a, a as T, c as $, A as Ye, d as J, F as ve, f as D, g as I, h as ce, o as oe, j as ye, k as Ie, l as De, m as Qe, q as Je } from "./index-
|
|
1
|
+
import { e as Ze, H as K, i as x, p as t, b as p, s as M, _ as i, r as H, n as a, a as T, c as $, A as Ye, d as J, F as ve, f as D, g as I, h as ce, o as oe, j as ye, k as Ie, l as De, m as Qe, q as Je } from "./index-DLfTnhPo.mjs";
|
|
2
2
|
let et;
|
|
3
3
|
function tt(n) {
|
|
4
4
|
return (e, s) => Ze(e, s, { get() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ContentType
|
|
2
|
-
export declare const formatToolResult: (toolName:
|
|
1
|
+
import { ContentType } from '../registry';
|
|
2
|
+
export declare const formatToolResult: (toolName: string, result: unknown) => {
|
|
3
3
|
contentType: ContentType;
|
|
4
4
|
resultString: string;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolResultFormatter.d.ts","sourceRoot":"","sources":["../../src/utils/toolResultFormatter.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"toolResultFormatter.d.ts","sourceRoot":"","sources":["../../src/utils/toolResultFormatter.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAE7D,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAChB,QAAQ,OAAO,KACd;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAGjD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ToolName: {
|
|
2
|
-
readonly KAPA_AI_SEARCH: "kapa_ai_search";
|
|
3
|
-
readonly KAPA_AI_CHAT: "kapa_ai_chat";
|
|
4
|
-
readonly LAYOUT_BPMN_XML: "layout_bpmn_xml";
|
|
5
|
-
readonly SYNC_ARTIFACT_STATE_UI: "sync_artifact_state_ui";
|
|
6
|
-
readonly GET_FILE_CONTENT_FROM_FILE_ID: "get_file_content_from_file_id";
|
|
7
|
-
};
|
|
8
|
-
export type ToolNameValue = (typeof ToolName)[keyof typeof ToolName];
|
|
9
|
-
export declare const isToolNameValue: (name: string) => name is ToolNameValue;
|
|
10
|
-
//# sourceMappingURL=toolNames.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolNames.d.ts","sourceRoot":"","sources":["../../src/registry/toolNames.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAIrE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,IAAI,IAAI,aAAyC,CAAC"}
|