notebook-intelligence 2.4.1__tar.gz → 2.4.2__tar.gz
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.
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/PKG-INFO +1 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/_version.py +1 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/base_chat_participant.py +7 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/package.json +2 -2
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/schemas/@notebook-intelligence/notebook-intelligence/package.json.orig +1 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/editor.worker.js +1 -1
- notebook_intelligence-2.4.1/notebook_intelligence/labextension/static/remoteEntry.ccab414d3c2e82af2607.js → notebook_intelligence-2.4.2/notebook_intelligence/labextension/static/remoteEntry.d9d709f6862dfa2e5a69.js +1 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/package.json +1 -1
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/.copier-answers.yml +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/.gitignore +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/.prettierignore +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/.yarnrc.yml +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/CHANGELOG.md +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/CONTRIBUTING.md +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/LICENSE +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/README.md +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/RELEASE.md +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/install.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/jupyter-config/server-config/notebook_intelligence.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/__init__.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/ai_service_manager.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/api.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/built_in_toolsets.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/config.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/extension.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/github_copilot.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/github_copilot_chat_participant.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/schemas/@notebook-intelligence/notebook-intelligence/plugin.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/144.3ed487e60baf9785fae1.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/196.db3f5562c0372c6e07f6.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/1b55f12eca93ba6743e7.ttf +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/326.4de77f44c9c6c2bbad47.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/326.4de77f44c9c6c2bbad47.js.LICENSE.txt +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/327.fe6b84491254fcaf64bf.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/327.fe6b84491254fcaf64bf.js.LICENSE.txt +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/671.1797d409270b24758991.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/694.d0b052d80c0397c7f1ea.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/728.e21c211a709fe0ab1e1f.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/830.46ab52f7b558fb3c1a20.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/977.7e3d66ffc344a0af7a4e.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/be02dcbf2787b0b29ec8.module.wasm +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/e589c9ba04e3e5a90081.module.wasm +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/editor.worker.js.LICENSE.txt +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/style.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/labextension/static/third-party-licenses.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/llm_providers/github_copilot_llm_provider.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/llm_providers/litellm_compatible_llm_provider.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/llm_providers/ollama_llm_provider.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/llm_providers/openai_compatible_llm_provider.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/mcp_manager.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/prompts.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/notebook_intelligence/util.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/pyproject.toml +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/schema/plugin.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/setup.py +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/tsconfig.json +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/webpack.config.js +0 -0
- {notebook_intelligence-2.4.1 → notebook_intelligence-2.4.2}/yarn.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: notebook_intelligence
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: AI coding assistant for JupyterLab
|
|
5
5
|
Project-URL: Homepage, https://github.com/notebook-intelligence/notebook-intelligence
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/notebook-intelligence/notebook-intelligence/issues
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
4
|
from typing import Union
|
|
5
|
+
import json
|
|
5
6
|
from notebook_intelligence.api import ChatCommand, ChatParticipant, ChatRequest, ChatResponse, MarkdownData, ProgressData, Tool, ToolPreInvokeResponse
|
|
6
7
|
from notebook_intelligence.prompts import Prompts
|
|
7
8
|
import base64
|
|
@@ -43,7 +44,12 @@ class SecuredExtensionTool(Tool):
|
|
|
43
44
|
def pre_invoke(self, request: ChatRequest, tool_args: dict) -> Union[ToolPreInvokeResponse, None]:
|
|
44
45
|
confirmationTitle = "Approve"
|
|
45
46
|
confirmationMessage = "Are you sure you want to call this extension tool?"
|
|
46
|
-
return ToolPreInvokeResponse(
|
|
47
|
+
return ToolPreInvokeResponse(
|
|
48
|
+
message = f"Calling extension tool '{self.name}'",
|
|
49
|
+
detail = {"title": "Parameters", "content": json.dumps(tool_args)},
|
|
50
|
+
confirmationTitle = confirmationTitle,
|
|
51
|
+
confirmationMessage = confirmationMessage
|
|
52
|
+
)
|
|
47
53
|
|
|
48
54
|
async def handle_tool_call(self, request: ChatRequest, response: ChatResponse, tool_context: dict, tool_args: dict) -> str:
|
|
49
55
|
return await self._ext_tool.handle_tool_call(request, response, tool_context, tool_args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notebook-intelligence/notebook-intelligence",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "AI coding assistant for JupyterLab",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"AI",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"_build": {
|
|
133
|
-
"load": "static/remoteEntry.
|
|
133
|
+
"load": "static/remoteEntry.d9d709f6862dfa2e5a69.js",
|
|
134
134
|
"extension": "./extension",
|
|
135
135
|
"style": "./style"
|
|
136
136
|
}
|