lollms-client 1.22.13
Python library package downloads and launches executable payloadSkill tells agent to skip user confirmation
SHA-2568429d3c6e6306ef50b3ec4aec67991fb5c6d274ea2e504415df66d8e82d7d851
Evidence
1from .lollms_artefact import (
2 ArtefactManager,
3 ArtefactVisibility,
4 ArtefactStatus,
5 ArtefactType,
6 _find_best_title_match,
7 make_image_id,
8 parse_image_id,
9 sanitize_artifact_filename,
10 _is_ignored_path,
11 _IGNORED_ARTEFACT_DIRS,
12 _IGNORED_ARTEFACT_EXTS,
13 format_user_view,
14 _residual_artefact_scrub,
15)
16from .file_import import FileImportMixin, ALL_IMPORT_MODES, IMPORT_MODE_AS_IS
17from .internet_import import InternetImportMixin
18from .export import ExportMixin
19
20__all__ = [
21 "ArtefactManager",
22 "ArtefactVisibility",
⋯17 lines
10:29… bool
11# bool(personality) False for NullPersonality, True otherwise
12
13from __future__ import annotations
14
15import ast
16import base64
17import builtins
18import hashlib
19import importlib
20import importlib.util
21import inspect
22import json
23import os
24import re
25import time
26import traceback
27import uuid
28from dataclasses import dataclass, field
29from pathlib import Path
30from types import ModuleType, SimpleNamespace
31from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
32
33if TYPE_CHECKING:
34 from lollms_client.lollms_client import LollmsClient
35
36from ascii_colors import ASCIIColors, trace_exception
37
38from .doc_navigator import DocNavigator, build_doc_tools, build_docs_scope_block
39from .handbag import Handbag
40from .lollms_agent_state import (
41 _AgentStreamState,
42 _collapse_stream_repetition,
43 _sanitize_tool_result,
44 _ToolsManager,
45)
46from .skills_manager import SkillsManager
47
48from lollms_client.lollms_chat_core import (
49 calculate_dynamic_tool_char_limit as _calculate_dynamic_tool_char_limit,
50 inject_tool_images_for_vlm as _inject_tool_images_for_vlm_core,
51 dump_error as _core_dump_error,
52 take_workspace_snapshot as _core_take_workspace_snapshot,
53 sync_workspace_diff as _core_sync_workspace_diff,
54 execute_tool_call as _core_execute_tool_call,
55 execute_context_visibility_operation as _core_execute_context_visibility,
56 is_connection_or_server_error as _core_is_connection_or_server_error,
57 run_fast_context_compaction as _core_run_fast_context_compaction,
96:5… return
97 try:
98 declared = [str(p) for p in getattr(pers, "_extra_staging_files", []) if Path(p).exists()]
99 staging_mod.set_staging_paths(declared)
100 except Exception:
101 pass
102
103
104_TEXT_RAG_EXTS = {
105 ".txt", ".md", ".csv", ".json", ".yaml", ".yml", ".xml", ".html",
106 ".py", ".js", ".ts", ".rs", ".go", ".rb", ".php", ".java", ".kt",
107 ".swift", ".c", ".cpp", ".h", ".hpp", ".sql", ".sh", ".bash",
108 ".ps1", ".bat", ".toml", ".ini", ".cfg", ".log", ".rdf", ".ttl",
109}
110
⋯5 lines
1353:11… f"[ASSIGNED SUB-AGENT TASK]\n{instruction}\n\n"
1354 "[EXECUTION DIRECTIVE]\n"
1355 "Execute the task autonomously using your available tools and artifact tags.\n"
1356 "Do NOT ask questions or await human approval. When complete, provide your summary inside `<report>...</report>` and end with `<done/>`."
1357 )
1358
1359 # Execute child chat with live streaming relay
1360 result = child_agent.chat(
1361 prompt=task_wrapped_prom …
172:27… e.
173 """
174 try:
175 if image_path_or_url.startswith("data:image/"):
176 return image_path_or_url
177 if len(image_path_or_url) > 1000 and not image_path_or_url.startswith(("http://", "https://", "/")):
178 # Highly likely to be raw base64 data — default to JPEG
179 return f"data:image/jpeg;base64,{image_path_or_url}"
180 if image_path_or_url.startswith(("http://", "https://")):
181 resp = requests.get(image_path_or_url, timeout=15)
182 resp.raise_for_status()
183 data = resp.content
184 content_type = resp.headers.get("Content-Type", "image/jpeg").split(";")[0].strip()
185 else:
186 p = Path(image_path_or_url)
187 if not p.exists():
188 …
Showing the top 5 files — 6 more files (177 regions) not shown.
No evidence locations were recorded for this file. Raw result