clikernel 0.2.12__tar.gz → 0.2.13__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.
- {clikernel-0.2.12 → clikernel-0.2.13}/CHANGELOG.md +7 -0
- {clikernel-0.2.12/clikernel.egg-info → clikernel-0.2.13}/PKG-INFO +5 -4
- {clikernel-0.2.12 → clikernel-0.2.13}/README.md +2 -2
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/__init__.py +1 -1
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/cli.py +1 -1
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/skill.py +3 -3
- {clikernel-0.2.12 → clikernel-0.2.13/clikernel.egg-info}/PKG-INFO +5 -4
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel.egg-info/requires.txt +2 -1
- {clikernel-0.2.12 → clikernel-0.2.13}/pyproject.toml +2 -1
- {clikernel-0.2.12 → clikernel-0.2.13}/LICENSE +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/MANIFEST.in +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/_modidx.py +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/core.py +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/mcp.py +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel/stream.py +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel.egg-info/SOURCES.txt +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel.egg-info/dependency_links.txt +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel.egg-info/entry_points.txt +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/clikernel.egg-info/top_level.txt +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/setup.cfg +0 -0
- {clikernel-0.2.12 → clikernel-0.2.13}/tests/test_stream.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clikernel
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: Serve persistent Jupyter kernels to LLMs as concise text, over MCP or a plain stream protocol
|
|
5
5
|
Author: clikernel contributors
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,7 +15,8 @@ Requires-Dist: fastcore>=2.2.2
|
|
|
15
15
|
Requires-Dist: jupyasyncclient>=0.2.10
|
|
16
16
|
Requires-Dist: jupywire>=0.1.9
|
|
17
17
|
Requires-Dist: mcpmini>=0.0.5
|
|
18
|
-
Requires-Dist: rustygate>=0.1.
|
|
18
|
+
Requires-Dist: rustygate>=0.1.22
|
|
19
|
+
Requires-Dist: ipymini>=0.1.23
|
|
19
20
|
Requires-Dist: httpx
|
|
20
21
|
Provides-Extra: dev
|
|
21
22
|
Requires-Dist: fastship; extra == "dev"
|
|
@@ -55,11 +56,11 @@ claude mcp add clikernel -- clikernel-mcp
|
|
|
55
56
|
Choose a kernel, then execute code:
|
|
56
57
|
|
|
57
58
|
``` python
|
|
58
|
-
create(kernel="
|
|
59
|
+
create(kernel="py")
|
|
59
60
|
exec(code="6*7")
|
|
60
61
|
```
|
|
61
62
|
|
|
62
|
-
Use `kernel="luau"` for bundled Luau, or `kernel="
|
|
63
|
+
Use `kernel="luau"` for bundled Luau, or `kernel="apl"` for APL when `basedpl` is installed in the gateway’s environment. `create` accepts any kernelspec the gateway finds. `exec` never creates or switches kernels. See [MCP](https://AnswerDotAI.github.io/clikernel/mcp.html) for named gateways, dialog bindings, and other tools.
|
|
63
64
|
|
|
64
65
|
## Configuration
|
|
65
66
|
|
|
@@ -32,11 +32,11 @@ claude mcp add clikernel -- clikernel-mcp
|
|
|
32
32
|
Choose a kernel, then execute code:
|
|
33
33
|
|
|
34
34
|
``` python
|
|
35
|
-
create(kernel="
|
|
35
|
+
create(kernel="py")
|
|
36
36
|
exec(code="6*7")
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Use `kernel="luau"` for bundled Luau, or `kernel="
|
|
39
|
+
Use `kernel="luau"` for bundled Luau, or `kernel="apl"` for APL when `basedpl` is installed in the gateway’s environment. `create` accepts any kernelspec the gateway finds. `exec` never creates or switches kernels. See [MCP](https://AnswerDotAI.github.io/clikernel/mcp.html) for named gateways, dialog bindings, and other tools.
|
|
40
40
|
|
|
41
41
|
## Configuration
|
|
42
42
|
|
|
@@ -8,4 +8,4 @@ Modules:
|
|
|
8
8
|
- `clikernel.skill`: Use the `clikernel` MCP session as the default workspace for Python work: reading and changing files, notebook work, trying things out, checking how a library behaves, and reshaping data. One session stays open, so imports and variables carry between calls. Read this before writing, running, or debugging Python code in a session with `clikernel` connected.
|
|
9
9
|
- `clikernel.stream`: Streaming JSON-lines worker protocol: nbformat-shaped output events, and a supervisor for select-based UIs."""
|
|
10
10
|
|
|
11
|
-
__version__ = "0.2.
|
|
11
|
+
__version__ = "0.2.13"
|
|
@@ -139,7 +139,7 @@ def main(
|
|
|
139
139
|
url, token, verify = resolve(host)
|
|
140
140
|
return await Gateway(url, token, verify).initialize(session_defaults(local=False)), None
|
|
141
141
|
g, child = run(_open())
|
|
142
|
-
info = run(g.text('use_kernel', kernel=kernel) if kernel else g.text('create', kernel='
|
|
142
|
+
info = run(g.text('use_kernel', kernel=kernel) if kernel else g.text('create', kernel='py'))
|
|
143
143
|
stop = False
|
|
144
144
|
def execute(code):
|
|
145
145
|
nonlocal stop
|
|
@@ -4,9 +4,9 @@ Prefer it over one-off Python scripts (`python -c`, shell heredocs). Prefer in-k
|
|
|
4
4
|
|
|
5
5
|
# Starting and stopping
|
|
6
6
|
|
|
7
|
-
Call `create(kernel="
|
|
7
|
+
Call `create(kernel="py")` before executing Python code. Creation reports what startup imported: read that banner, it says what to do next. New kernels require an explicit implementation. Add `dlgname` to bind a kernel to a dialog. Omit `kernel` only to reuse an existing binding. An explicit implementation must match that binding.
|
|
8
8
|
|
|
9
|
-
A kernel this conversation creates stops when the conversation ends, unless created with `autoclose=false`. Use `create(kernel="
|
|
9
|
+
A kernel this conversation creates stops when the conversation ends, unless created with `autoclose=false`. Use `create(kernel="py", dlgname="work", autoclose=false)` when a kernel should stay running afterwards, and tell the user its id. This requires a gateway that keeps running. Mention it if the reply shows a conversation-started gateway.
|
|
10
10
|
|
|
11
11
|
To continue earlier work, or to use the user's solveit kernel, `list_kernels` then `use_kernel` with the id. Attaching runs no setup and claims no ownership: the kernel's live state is the point, and it is never stopped for you.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Remote gateways are the same tools with a `host` argument on `list_kernels`, `us
|
|
|
18
18
|
|
|
19
19
|
Run code with `exec(code=...)` in the selected kernel. For native Luau work, select `create(kernel="luau")` first. The same execution tool and autoclose rules apply to every implementation. A `dlgname` execution override uses an existing binding for that call without changing the current selection. These rules also apply on named remote gateways.
|
|
20
20
|
|
|
21
|
-
For APL, use `create(kernel="
|
|
21
|
+
For APL, use `create(kernel="apl")` then `exec(code="avg←+/÷≢ ⋄ avg 2 4 9")`. `basedpl` must be installed in the gateway's environment. It provides the `apl` kernelspec. Python startup and inspectors do not run in APL.
|
|
22
22
|
|
|
23
23
|
Start native work with `exec(code="help()")` for the bundled guide and examples, or `exec(code='help("ex.edit_file")')` for function details.
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clikernel
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: Serve persistent Jupyter kernels to LLMs as concise text, over MCP or a plain stream protocol
|
|
5
5
|
Author: clikernel contributors
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,7 +15,8 @@ Requires-Dist: fastcore>=2.2.2
|
|
|
15
15
|
Requires-Dist: jupyasyncclient>=0.2.10
|
|
16
16
|
Requires-Dist: jupywire>=0.1.9
|
|
17
17
|
Requires-Dist: mcpmini>=0.0.5
|
|
18
|
-
Requires-Dist: rustygate>=0.1.
|
|
18
|
+
Requires-Dist: rustygate>=0.1.22
|
|
19
|
+
Requires-Dist: ipymini>=0.1.23
|
|
19
20
|
Requires-Dist: httpx
|
|
20
21
|
Provides-Extra: dev
|
|
21
22
|
Requires-Dist: fastship; extra == "dev"
|
|
@@ -55,11 +56,11 @@ claude mcp add clikernel -- clikernel-mcp
|
|
|
55
56
|
Choose a kernel, then execute code:
|
|
56
57
|
|
|
57
58
|
``` python
|
|
58
|
-
create(kernel="
|
|
59
|
+
create(kernel="py")
|
|
59
60
|
exec(code="6*7")
|
|
60
61
|
```
|
|
61
62
|
|
|
62
|
-
Use `kernel="luau"` for bundled Luau, or `kernel="
|
|
63
|
+
Use `kernel="luau"` for bundled Luau, or `kernel="apl"` for APL when `basedpl` is installed in the gateway’s environment. `create` accepts any kernelspec the gateway finds. `exec` never creates or switches kernels. See [MCP](https://AnswerDotAI.github.io/clikernel/mcp.html) for named gateways, dialog bindings, and other tools.
|
|
63
64
|
|
|
64
65
|
## Configuration
|
|
65
66
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|