dsh-py-codeact 0.3.4 → 0.3.5
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/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -712,8 +712,8 @@ export function apply(ctx, config = {}) {
|
|
|
712
712
|
})
|
|
713
713
|
|
|
714
714
|
// Injected at the seam rather than carried as a prompt section, because the position IS the information: everything above the notice ran in an interpreter that no longer exists, everything below runs in the new one. A section states the fact but cannot say where the boundary fell — and the model reads the transcript in order.
|
|
715
|
-
ctx.on('agent/
|
|
716
|
-
// `
|
|
715
|
+
ctx.on('agent/created', ({ agent }) => {
|
|
716
|
+
// `agent/created` also fires for `compact` and `clear`, where the interpreter is very much alive — and a resume inside the SAME process finds its kernel still running. Only an actually-absent interpreter means the bindings died.
|
|
717
717
|
if (kernels.get(agent.id)?.kernel.alive === true) return
|
|
718
718
|
if (!needsRestartNotice(agent.session, toolName, PLUGIN_NAME)) return
|
|
719
719
|
agent.inject(createUserMessage({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-py-codeact",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "CodeAct agent loop for the DeepSeek Harness: a persistent IPython session as the model's action space, with harness tools bridged in as a virtual `__dsh__.tools` module.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|