alpiecode 10.10.6__tar.gz → 10.10.8__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-10.10.6 → alpiecode-10.10.8}/PKG-INFO +1 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/pyproject.toml +1 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/PKG-INFO +1 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/__init__.py +1 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/backends/local_backend.py +4 -3
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/backends/openai_backend.py +15 -3
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/chat_tags.py +7 -4
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/local_model.py +8 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/slash.py +25 -6
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/vision.py +13 -2
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_report_convergence.py +1 -1
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_slash_and_diff.py +36 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/README.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/setup.cfg +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/setup.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode/__init__.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/SOURCES.txt +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/dependency_links.txt +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/entry_points.txt +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/requires.txt +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/alpiecode.egg-info/top_level.txt +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/__main__.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/agent.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/assessment.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/backends/__init__.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/backends/base.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/blueprints.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/cache.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/capabilities.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/cli.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/client.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/compaction.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/config.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/context.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/convergence.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/diff_preview.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/discovery.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/doctor.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/dream_rsi.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/evaluation.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/executor.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/git_ops.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/github.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/grounding.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/guardian.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/guardrails.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/ipython_ext.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/lifecycle.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/media.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/memory.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/metrics.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/onboarding.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/orchestrator.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/paths.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/progress.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/project_template.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/prompt.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/rephraser.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/server.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/session.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/accessibility-audit/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/accessibility-testing/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/accessibility-ui-components/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/agentic-workflows/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/api-design/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/architecture-design/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/backend-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/browser-automation/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/cli-development/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/cloud-infrastructure/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/code-generation/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/code-review/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/codebase-onboarding/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/cost-optimization/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/data-analysis/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/data-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/database-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/dependency-management/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/dependency-security/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/dependency-upgrades/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/devops-ci-cd/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/docker-containers/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/documentation/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/documentation-site/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/e2e-testing/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/error-handling-resilience/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/feature-development/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/frontend-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/git-workflow/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/incident-response/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/legacy-code-modernization/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/llm-application-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/localization-i18n/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/mcp-server-development/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/migration-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/mobile-development/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/model-evaluation/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/nodejs-services/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/observability/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/performance-optimization/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/privacy-data-protection/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/prompt-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/python-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/rag-retrieval/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/react-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/release-management/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/requirements-analysis/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/responsive-design/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/safe-refactoring/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/secure-coding/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/systematic-debugging/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/technical-planning/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/technical-research/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/technical-writing/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/test-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/tool-integration/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/typescript-engineering/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/visual-regression-testing/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/web-performance/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/web-security-testing/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/workflow-automation/SKILL.md +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/subagent.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/system1.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/tools.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/updater.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/verifier.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/vscode_installer.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/walkthrough.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_adaptive_resilience.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_chat_tags_and_offline_multimodal.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_cli_ui.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_context_and_trajectory.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_deloop_and_sessions.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_dream_rsi.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_frontier_architecture.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_gpu_detection.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_lifecycle_and_portfolio.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_local_model_download.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_memory_optimization.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_non_thinking_and_local_stream.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_onboarding.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_project_templates.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_release_foundations.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_security_config.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_skills_engine.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_subagents.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_task_assessment.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_token_economy_and_256k.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_truncation_resilience.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_verifier.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_visual_grounding.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_walkthrough.py +0 -0
- {alpiecode-10.10.6 → alpiecode-10.10.8}/test/test_web_resilience_and_guardrails.py +0 -0
|
@@ -17,7 +17,7 @@ Supports:
|
|
|
17
17
|
from pathlib import Path
|
|
18
18
|
from typing import Optional, Any, Dict
|
|
19
19
|
|
|
20
|
-
__version__ = "10.10.
|
|
20
|
+
__version__ = "10.10.8"
|
|
21
21
|
|
|
22
22
|
def run(task: str, workdir: str = ".", reasoning_level: str = "thinking", **kwargs):
|
|
23
23
|
"""Run an autonomous coding task programmatically."""
|
|
@@ -51,9 +51,9 @@ class LocalBackend:
|
|
|
51
51
|
|
|
52
52
|
@property
|
|
53
53
|
def capabilities(self) -> BackendCapabilities:
|
|
54
|
-
|
|
54
|
+
model_name = getattr(self._cfg, "model", None) or "alpie_seed"
|
|
55
55
|
return BackendCapabilities(
|
|
56
|
-
model=
|
|
56
|
+
model=model_name,
|
|
57
57
|
transport="gguf", mode="offline", context_window=self.context_window,
|
|
58
58
|
transport_security="local",
|
|
59
59
|
)
|
|
@@ -1345,7 +1345,8 @@ class AndroidBackend(BasePlatformBackend):
|
|
|
1345
1345
|
cmd = base_cmd
|
|
1346
1346
|
|
|
1347
1347
|
try:
|
|
1348
|
-
|
|
1348
|
+
display_name = getattr(self._cfg, "model", None) or "alpie_seed"
|
|
1349
|
+
print(f"⏳ Starting Alpie ({display_name}) in background...")
|
|
1349
1350
|
print(f" Context window: {n_ctx_val} tokens | Performance cores: 4 | Lean KV cache active")
|
|
1350
1351
|
subprocess.Popen(
|
|
1351
1352
|
cmd,
|
|
@@ -342,8 +342,9 @@ class OpenAIBackend:
|
|
|
342
342
|
|
|
343
343
|
@property
|
|
344
344
|
def capabilities(self) -> BackendCapabilities:
|
|
345
|
+
display_model = getattr(self._cfg, "model", None) or "alpie_seed"
|
|
345
346
|
return BackendCapabilities(
|
|
346
|
-
model=
|
|
347
|
+
model=display_model, transport="openai-compatible",
|
|
347
348
|
mode="offline" if self.is_local else "online", context_window=self.context_window,
|
|
348
349
|
transport_security="local" if self.is_local else ("unknown" if not self.base_url else "tls" if self.base_url.startswith("https://") else "plaintext"),
|
|
349
350
|
)
|
|
@@ -384,8 +385,19 @@ class OpenAIBackend:
|
|
|
384
385
|
self._max_model_len = getattr(m, "max_model_len", None)
|
|
385
386
|
logger.info("Resolved model: %s (max_len=%s)", self._resolved_model, self._max_model_len)
|
|
386
387
|
return self._resolved_model
|
|
387
|
-
#
|
|
388
|
-
#
|
|
388
|
+
# If configured model is alpie_seed/default and server serves alpie_9b (or another alpie variant),
|
|
389
|
+
# use the first served model — but only if it looks like an alpie model to avoid mapping to
|
|
390
|
+
# a completely unrelated model on a shared endpoint.
|
|
391
|
+
if models_list.data:
|
|
392
|
+
first_m = models_list.data[0]
|
|
393
|
+
first_id = getattr(first_m, "id", "") or ""
|
|
394
|
+
if first_id.startswith("alpie") or self._cfg.model.startswith("alpie"):
|
|
395
|
+
# Only auto-map when the served model is in the alpie family
|
|
396
|
+
if first_id.startswith("alpie"):
|
|
397
|
+
self._resolved_model = first_id
|
|
398
|
+
self._max_model_len = getattr(first_m, "max_model_len", None)
|
|
399
|
+
logger.info("Mapped configured model '%s' to remote served model '%s'", self._cfg.model, self._resolved_model)
|
|
400
|
+
return self._resolved_model
|
|
389
401
|
logger.warning("Configured model is absent from discovery; using the configured ID.")
|
|
390
402
|
except Exception as e:
|
|
391
403
|
logger.debug("Model discovery failed (%.1fs timeout), using configured model '%s': %s",
|
|
@@ -192,12 +192,15 @@ def parse_chat_tags_and_flags(
|
|
|
192
192
|
# Apply workdir change if valid
|
|
193
193
|
if parsed["workdir"]:
|
|
194
194
|
try:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if target_p.is_dir():
|
|
195
|
+
from .media import normalize_media_path
|
|
196
|
+
target_p = normalize_media_path(parsed["workdir"], workdir=current_workdir)
|
|
197
|
+
if target_p and target_p.is_dir():
|
|
199
198
|
if session:
|
|
200
199
|
session.workdir = target_p
|
|
200
|
+
if hasattr(session, "executor") and session.executor is not None:
|
|
201
|
+
session.executor.workdir = target_p
|
|
202
|
+
from .tools import make_dispatch
|
|
203
|
+
session.executor.dispatch = make_dispatch(target_p)
|
|
201
204
|
else:
|
|
202
205
|
parsed["badges"].append(f"⚠️ dir not found: {parsed['workdir']}")
|
|
203
206
|
except Exception:
|
|
@@ -622,7 +622,8 @@ class LocalModel:
|
|
|
622
622
|
except Exception:
|
|
623
623
|
pass
|
|
624
624
|
|
|
625
|
-
|
|
625
|
+
display_name = "alpie_seed"
|
|
626
|
+
print(f"🧠 Loading local GGUF model: {display_name}")
|
|
626
627
|
if mmproj_path:
|
|
627
628
|
print(f" Vision Projector: {mmproj_path.name} | Handler: {type(vision_handler).__name__} (selected; encoder initializes on first image)")
|
|
628
629
|
print(f" Context: {self.n_ctx} tokens | Mode: {accel} | Threads: {n_threads}")
|
|
@@ -644,6 +645,12 @@ class LocalModel:
|
|
|
644
645
|
except Exception:
|
|
645
646
|
_stderr_fd = None # Fallback: don't suppress if dup2 fails
|
|
646
647
|
|
|
648
|
+
try:
|
|
649
|
+
import llama_cpp._logger as llama_logger
|
|
650
|
+
llama_logger.set_verbose(False)
|
|
651
|
+
except Exception:
|
|
652
|
+
pass
|
|
653
|
+
|
|
647
654
|
# ── Build Llama kwargs with Q8_0 KV Cache for GPU ─────────────
|
|
648
655
|
llama_kwargs = dict(
|
|
649
656
|
model_path=str(model_path),
|
|
@@ -42,7 +42,17 @@ def handle_slash_command(
|
|
|
42
42
|
if not clean.startswith("/"):
|
|
43
43
|
if clean.lower() in ("exit", "quit", "q"):
|
|
44
44
|
return False
|
|
45
|
-
|
|
45
|
+
# Recognize common workspace and chat commands typed without a leading slash
|
|
46
|
+
parts = clean.split(maxsplit=1)
|
|
47
|
+
first_word = parts[0].lower() if parts else ""
|
|
48
|
+
if first_word in (
|
|
49
|
+
"cd", "workdir", "pwd", "clear", "cls", "help",
|
|
50
|
+
"status", "diff", "undo", "doctor", "subagents",
|
|
51
|
+
"sessions", "init", "save"
|
|
52
|
+
):
|
|
53
|
+
clean = "/" + clean
|
|
54
|
+
else:
|
|
55
|
+
return None
|
|
46
56
|
|
|
47
57
|
cmd_parts = clean.split(maxsplit=1)
|
|
48
58
|
cmd = cmd_parts[0].lower()
|
|
@@ -331,20 +341,29 @@ def handle_slash_command(
|
|
|
331
341
|
# ── /cd, /workdir <path> ─────────────────────────────────────────────────
|
|
332
342
|
if cmd in ("/cd", "/workdir"):
|
|
333
343
|
if not arg:
|
|
334
|
-
console.print(f"📂 Current working directory: [bold cyan]{workdir}[/bold cyan]" if has_rich else f"Current working directory: {workdir}")
|
|
344
|
+
console.print(f"📂 Current working directory: [bold cyan]{session.workdir}[/bold cyan]" if has_rich else f"Current working directory: {session.workdir}")
|
|
335
345
|
return True
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if not target_p.is_dir():
|
|
346
|
+
from .media import normalize_media_path
|
|
347
|
+
target_p = normalize_media_path(arg, workdir=Path(session.workdir))
|
|
348
|
+
if not target_p or not target_p.is_dir():
|
|
340
349
|
console.print(f"[red]⚠️ Directory not found:[/red] {arg}" if has_rich else f"Directory not found: {arg}")
|
|
341
350
|
return True
|
|
342
351
|
session.workdir = target_p
|
|
352
|
+
# Crucial: Rebind executor workdir and tool dispatch to the new directory!
|
|
353
|
+
if hasattr(session, "executor") and session.executor is not None:
|
|
354
|
+
session.executor.workdir = target_p
|
|
355
|
+
from .tools import make_dispatch
|
|
356
|
+
session.executor.dispatch = make_dispatch(target_p)
|
|
343
357
|
from .agent import _ensure_git
|
|
344
358
|
_ensure_git(target_p)
|
|
345
359
|
console.print(f"📂 [bold green]Switched working directory to:[/bold green] [cyan]{target_p}[/cyan]" if has_rich else f"Switched working directory to: {target_p}")
|
|
346
360
|
return True
|
|
347
361
|
|
|
362
|
+
# ── /pwd ─────────────────────────────────────────────────────────────────
|
|
363
|
+
if cmd == "/pwd":
|
|
364
|
+
console.print(f"📂 Current working directory: [bold cyan]{session.workdir}[/bold cyan]" if has_rich else f"Current working directory: {session.workdir}")
|
|
365
|
+
return True
|
|
366
|
+
|
|
348
367
|
# ── /offline, /local ─────────────────────────────────────────────────────
|
|
349
368
|
if cmd in ("/offline", "/local"):
|
|
350
369
|
import os
|
|
@@ -99,8 +99,19 @@ def create_vision_handler(model_path: Path, projectors: List[Path], formats: Any
|
|
|
99
99
|
# MTMD has a separate logger: verbose=False alone does not stop
|
|
100
100
|
# its native debug output from printing the entire user prompt.
|
|
101
101
|
# Share llama-cpp-python's verbosity filter; errors remain visible.
|
|
102
|
-
from llama_cpp._logger import llama_log_callback
|
|
103
|
-
|
|
102
|
+
from llama_cpp._logger import llama_log_callback, set_verbose
|
|
103
|
+
set_verbose(False)
|
|
104
|
+
import llama_cpp
|
|
105
|
+
|
|
106
|
+
@llama_cpp.llama_log_callback
|
|
107
|
+
def _clean_log_callback(level: int, text: bytes, user_data: Any):
|
|
108
|
+
if b"find_slot" in text or b"non-consecutive" in text:
|
|
109
|
+
return
|
|
110
|
+
llama_log_callback(level, text, user_data)
|
|
111
|
+
|
|
112
|
+
self._mtmd_clean_log = _clean_log_callback
|
|
113
|
+
self._mtmd_cpp.mtmd_helper_log_set(_clean_log_callback, None)
|
|
114
|
+
llama_cpp.llama_log_set(_clean_log_callback, None)
|
|
104
115
|
|
|
105
116
|
def _get_template_messages(self, messages: List[Dict[str, Any]], media_marker: str) -> List[Any]:
|
|
106
117
|
separated = []
|
|
@@ -123,7 +123,7 @@ def test_video_message_discloses_partial_coverage(tmp_path, monkeypatch):
|
|
|
123
123
|
monkeypatch.setattr(media, "extract_frames", extractor)
|
|
124
124
|
content = media.build_media_content("Compare these", video_path=[str(p) for p in paths], workdir=tmp_path)
|
|
125
125
|
assert sum(part["type"] == "image_url" for part in content) == 18
|
|
126
|
-
headers = [part["text"] for part in content if part["type"] == "text"
|
|
126
|
+
headers = [part["text"] for part in content if part["type"] == "text" and part["text"].startswith("--- Video ")]
|
|
127
127
|
assert len(headers) == 3
|
|
128
128
|
assert all("no audio or transcript" in header for header in headers)
|
|
129
129
|
|
|
@@ -76,3 +76,39 @@ def test_slash_command_routing(tmp_path: Path):
|
|
|
76
76
|
assert handle_slash_command("/exit", session, orchestrator, cfg, console) is False
|
|
77
77
|
assert handle_slash_command("exit", session, orchestrator, cfg, console) is False
|
|
78
78
|
assert handle_slash_command("/quit", session, orchestrator, cfg, console) is False
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def test_workdir_and_cd_commands_without_slash(tmp_path: Path):
|
|
82
|
+
"""Verify workdir and cd typed without slash normalize WSL UNC paths and switch workdir."""
|
|
83
|
+
target_dir = tmp_path / "subproject"
|
|
84
|
+
target_dir.mkdir()
|
|
85
|
+
|
|
86
|
+
session = MagicMock()
|
|
87
|
+
session.workdir = tmp_path
|
|
88
|
+
session.executor = MagicMock()
|
|
89
|
+
|
|
90
|
+
orchestrator = MagicMock()
|
|
91
|
+
cfg = MagicMock()
|
|
92
|
+
console = MagicMock()
|
|
93
|
+
|
|
94
|
+
# 1. workdir without slash and with Windows-style WSL UNC quotes
|
|
95
|
+
wsl_unc = f'workdir "\\\\wsl.localhost\\Ubuntu{target_dir.as_posix()}"'
|
|
96
|
+
res = handle_slash_command(wsl_unc, session, orchestrator, cfg, console)
|
|
97
|
+
assert res is True
|
|
98
|
+
assert session.workdir == target_dir
|
|
99
|
+
assert session.executor.workdir == target_dir
|
|
100
|
+
assert session.executor.dispatch is not None
|
|
101
|
+
|
|
102
|
+
# 2. cd without slash
|
|
103
|
+
target_dir2 = tmp_path / "another_dir"
|
|
104
|
+
target_dir2.mkdir()
|
|
105
|
+
res2 = handle_slash_command(f"cd {target_dir2.as_posix()}", session, orchestrator, cfg, console)
|
|
106
|
+
assert res2 is True
|
|
107
|
+
assert session.workdir == target_dir2
|
|
108
|
+
|
|
109
|
+
# 3. pwd without slash
|
|
110
|
+
console.reset_mock()
|
|
111
|
+
res3 = handle_slash_command("pwd", session, orchestrator, cfg, console)
|
|
112
|
+
assert res3 is True
|
|
113
|
+
assert console.print.call_count >= 1
|
|
114
|
+
|
|
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
|
|
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
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/accessibility-ui-components/SKILL.md
RENAMED
|
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
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/error-handling-resilience/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/legacy-code-modernization/SKILL.md
RENAMED
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/llm-application-engineering/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/mcp-server-development/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/performance-optimization/SKILL.md
RENAMED
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/privacy-data-protection/SKILL.md
RENAMED
|
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
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/typescript-engineering/SKILL.md
RENAMED
|
File without changes
|
{alpiecode-10.10.6 → alpiecode-10.10.8}/src/codeagent/skills/visual-regression-testing/SKILL.md
RENAMED
|
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
|