@invergent/agent-chat-react 2.5.6 → 2.5.7

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.d.cts CHANGED
@@ -430,6 +430,13 @@ interface AgentChatSlashCommand {
430
430
  * specialist consultation from a body-inline skill.
431
431
  */
432
432
  isExpert?: boolean;
433
+ /**
434
+ * True when this entry is a platform built-in (e.g. docx, pdf, pptx,
435
+ * xlsx, kanban) baked into the worker image rather than an org/user
436
+ * skill. The composer hides these from the slash menu so it lists
437
+ * only the skills a tenant actually authored or attached.
438
+ */
439
+ isBuiltin?: boolean;
433
440
  }
434
441
  interface AgentChatWorkspaceEntry {
435
442
  name: string;
package/dist/index.d.ts CHANGED
@@ -430,6 +430,13 @@ interface AgentChatSlashCommand {
430
430
  * specialist consultation from a body-inline skill.
431
431
  */
432
432
  isExpert?: boolean;
433
+ /**
434
+ * True when this entry is a platform built-in (e.g. docx, pdf, pptx,
435
+ * xlsx, kanban) baked into the worker image rather than an org/user
436
+ * skill. The composer hides these from the slash menu so it lists
437
+ * only the skills a tenant actually authored or attached.
438
+ */
439
+ isBuiltin?: boolean;
433
440
  }
434
441
  interface AgentChatWorkspaceEntry {
435
442
  name: string;
package/dist/index.js CHANGED
@@ -5966,7 +5966,7 @@ function ChatComposerInner({
5966
5966
  }, [buttonMenuOpen, textInput.value]);
5967
5967
  useEffect(() => {
5968
5968
  if (showSlashMenu && (menuMode === "skills" || menuMode === "all")) {
5969
- adapter.listSlashCommands?.().then(setAdapterCommands).catch(() => {
5969
+ adapter.listSlashCommands?.().then((commands) => setAdapterCommands(commands.filter((c) => !c.isBuiltin))).catch(() => {
5970
5970
  });
5971
5971
  }
5972
5972
  }, [adapter, showSlashMenu, menuMode]);