llmasaservice-ui 0.10.13 → 0.10.15

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/index.js CHANGED
@@ -479,6 +479,9 @@ var ChatPanel = ({
479
479
  }, [cssUrl]);
480
480
  const toolUseCallback = (match, groups) => __async(void 0, null, function* () {
481
481
  var _a2, _b;
482
+ console.log("toolUseCallback", match, groups);
483
+ console.log("mcpClients", mcpClients);
484
+ console.log("mcpServers", mcpServers);
482
485
  for (const client of mcpClients) {
483
486
  console.log("tool", groups[1]);
484
487
  console.log("input", groups[2]);
@@ -610,8 +613,10 @@ var ChatPanel = ({
610
613
  if (button) {
611
614
  if (!button.onclick) {
612
615
  button.onclick = () => {
616
+ console.log("button clicked", buttonId, match, groups);
613
617
  toolUseCallbackRef.current(match, groups);
614
618
  if (action.callback) {
619
+ console.log("action callback", action.callback);
615
620
  action.callback(match, groups);
616
621
  }
617
622
  if (action.clickCode) {
package/dist/index.mjs CHANGED
@@ -450,6 +450,9 @@ var ChatPanel = ({
450
450
  }, [cssUrl]);
451
451
  const toolUseCallback = (match, groups) => __async(void 0, null, function* () {
452
452
  var _a2, _b;
453
+ console.log("toolUseCallback", match, groups);
454
+ console.log("mcpClients", mcpClients);
455
+ console.log("mcpServers", mcpServers);
453
456
  for (const client of mcpClients) {
454
457
  console.log("tool", groups[1]);
455
458
  console.log("input", groups[2]);
@@ -581,8 +584,10 @@ var ChatPanel = ({
581
584
  if (button) {
582
585
  if (!button.onclick) {
583
586
  button.onclick = () => {
587
+ console.log("button clicked", buttonId, match, groups);
584
588
  toolUseCallbackRef.current(match, groups);
585
589
  if (action.callback) {
590
+ console.log("action callback", action.callback);
586
591
  action.callback(match, groups);
587
592
  }
588
593
  if (action.clickCode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llmasaservice-ui",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "description": "Prebuilt UI components for LLMAsAService.io",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/ChatPanel.tsx CHANGED
@@ -402,6 +402,12 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
402
402
  }, [cssUrl]);
403
403
 
404
404
  const toolUseCallback = async (match: string, groups: any[]) => {
405
+
406
+ console.log("toolUseCallback", match, groups);
407
+ console.log("mcpClients", mcpClients);
408
+ console.log("mcpServers", mcpServers);
409
+
410
+
405
411
  for (const client of mcpClients) {
406
412
  console.log("tool", groups[1]);
407
413
  console.log("input", groups[2]);
@@ -573,8 +579,10 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
573
579
  if (button) {
574
580
  if (!button.onclick) {
575
581
  button.onclick = () => {
582
+ console.log("button clicked", buttonId, match, groups);
576
583
  toolUseCallbackRef.current(match, groups);
577
584
  if (action.callback) {
585
+ console.log("action callback", action.callback);
578
586
  action.callback(match, groups);
579
587
  }
580
588
  if (action.clickCode) {