@notebook-intelligence/notebook-intelligence 3.0.0 → 3.1.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.
@@ -689,7 +689,6 @@ function SidebarComponent(props) {
689
689
  useEffect(() => {
690
690
  var _a;
691
691
  const prefixes = [];
692
- prefixes.push('/clear');
693
692
  if (chatMode === 'ask') {
694
693
  const chatParticipants = NBIAPI.config.chatParticipants;
695
694
  for (const participant of chatParticipants) {
@@ -705,6 +704,9 @@ function SidebarComponent(props) {
705
704
  }
706
705
  }
707
706
  }
707
+ else {
708
+ prefixes.push('/clear');
709
+ }
708
710
  const mcpServers = NBIAPI.config.toolConfig.mcpServers;
709
711
  const mcpServerSettings = NBIAPI.config.mcpServerSettings;
710
712
  for (const mcpServer of mcpServers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notebook-intelligence/notebook-intelligence",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "AI coding assistant for JupyterLab",
5
5
  "keywords": [
6
6
  "AI",
@@ -1168,7 +1168,6 @@ function SidebarComponent(props: any) {
1168
1168
 
1169
1169
  useEffect(() => {
1170
1170
  const prefixes: string[] = [];
1171
- prefixes.push('/clear');
1172
1171
 
1173
1172
  if (chatMode === 'ask') {
1174
1173
  const chatParticipants = NBIAPI.config.chatParticipants;
@@ -1185,6 +1184,8 @@ function SidebarComponent(props: any) {
1185
1184
  prefixes.push(`${commandPrefix}/${command}`);
1186
1185
  }
1187
1186
  }
1187
+ } else {
1188
+ prefixes.push('/clear');
1188
1189
  }
1189
1190
 
1190
1191
  const mcpServers = NBIAPI.config.toolConfig.mcpServers;