alpiecode 8.0.2__tar.gz → 8.0.3__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.
- {alpiecode-8.0.2 → alpiecode-8.0.3}/PKG-INFO +1 -1
- {alpiecode-8.0.2 → alpiecode-8.0.3}/pyproject.toml +1 -1
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/PKG-INFO +1 -1
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/__init__.py +1 -1
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/extension/alpiecode.vsix +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/orchestrator.py +22 -2
- {alpiecode-8.0.2 → alpiecode-8.0.3}/README.md +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/setup.cfg +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode/__init__.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/requires.txt +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/agent.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/backends/__init__.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/backends/base.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/backends/local_backend.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/backends/openai_backend.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/cache.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/cli.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/client.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/compaction.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/config.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/context.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/discovery.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/doctor.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/executor.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/git_ops.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/github.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/guardian.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/guardrails.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/ipython_ext.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/local_model.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/media.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/memory.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/progress.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/prompt.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/rephraser.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/server.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/session.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/tools.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/updater.py +0 -0
- {alpiecode-8.0.2 → alpiecode-8.0.3}/src/codeagent/vscode_installer.py +0 -0
|
Binary file
|
|
@@ -329,7 +329,17 @@ class AgentOrchestrator:
|
|
|
329
329
|
})
|
|
330
330
|
session.context.add_tool_result(res.tool_call_id, res.content)
|
|
331
331
|
|
|
332
|
-
|
|
332
|
+
if resp.content:
|
|
333
|
+
# Clean duplicate DONE: if repeated
|
|
334
|
+
if resp.content.upper().count("DONE:") > 1:
|
|
335
|
+
parts = re.split(r"(?i)\bDONE:\s*", resp.content)
|
|
336
|
+
if len(parts) >= 3 and parts[1].strip() == parts[2].strip():
|
|
337
|
+
resp.content = parts[0] + "DONE: " + parts[1].strip()
|
|
338
|
+
|
|
339
|
+
# Only yield 'message' if tokens were NOT already streamed chunk-by-chunk
|
|
340
|
+
if not (hasattr(self.backend, "chat_completion_stream") and not is_offline):
|
|
341
|
+
yield AgentEvent("message", {"content": resp.content})
|
|
342
|
+
|
|
333
343
|
extract_and_save_memories(session.workdir, session.context.messages)
|
|
334
344
|
|
|
335
345
|
# Generate and write real walkthrough.md file to the project workspace
|
|
@@ -423,7 +433,17 @@ class AgentOrchestrator:
|
|
|
423
433
|
except Exception:
|
|
424
434
|
pass
|
|
425
435
|
|
|
426
|
-
|
|
436
|
+
if resp.content:
|
|
437
|
+
# Clean duplicate DONE: if repeated
|
|
438
|
+
if resp.content.upper().count("DONE:") > 1:
|
|
439
|
+
parts = re.split(r"(?i)\bDONE:\s*", resp.content)
|
|
440
|
+
if len(parts) >= 3 and parts[1].strip() == parts[2].strip():
|
|
441
|
+
resp.content = parts[0] + "DONE: " + parts[1].strip()
|
|
442
|
+
|
|
443
|
+
# Only yield 'message' if tokens were NOT already streamed chunk-by-chunk
|
|
444
|
+
if not (hasattr(self.backend, "chat_completion_stream") and not is_offline):
|
|
445
|
+
yield AgentEvent("message", {"content": resp.content})
|
|
446
|
+
|
|
427
447
|
extract_and_save_memories(session.workdir, session.context.messages)
|
|
428
448
|
yield AgentEvent("done", {"summary": resp.content})
|
|
429
449
|
return
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|