@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-config"
|
||||
version = "1.2.3b1+1019"
|
||||
version = "1.2.4b1+1019"
|
||||
description = "Profile-based configuration compiler for JWeBot"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
|
||||
@@ -36,4 +36,4 @@ __all__ = [
|
||||
"write_default_profile",
|
||||
]
|
||||
|
||||
__version__ = "1.2.3b1+1019"
|
||||
__version__ = "1.2.4b1+1019"
|
||||
|
||||
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-extension-host"
|
||||
version = "1.2.3b1+1019"
|
||||
version = "1.2.4b1+1019"
|
||||
description = "Single-release, single-invocation process host for JWeBot extensions"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"jwebot-sdk==1.2.3b1+1019",
|
||||
"jwebot-kernel==1.2.3b1+1019",
|
||||
"jwebot-sdk==1.2.4b1+1019",
|
||||
"jwebot-kernel==1.2.4b1+1019",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
|
||||
@@ -16,4 +16,4 @@ __all__ = [
|
||||
"process_request",
|
||||
]
|
||||
|
||||
__version__ = "1.2.3b1+1019"
|
||||
__version__ = "1.2.4b1+1019"
|
||||
|
||||
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-kernel"
|
||||
version = "1.2.3b1+1019"
|
||||
version = "1.2.4b1+1019"
|
||||
description = "Stable routing and extension authority for JWeBot"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"jwebot-config==1.2.3b1+1019",
|
||||
"jwebot-sdk==1.2.3b1+1019",
|
||||
"jwebot-official-extensions==1.2.3b1+1019",
|
||||
"jwebot-config==1.2.4b1+1019",
|
||||
"jwebot-sdk==1.2.4b1+1019",
|
||||
"jwebot-official-extensions==1.2.4b1+1019",
|
||||
"tomli>=2; python_version < '3.11'",
|
||||
]
|
||||
|
||||
|
||||
@@ -107,4 +107,4 @@ __all__ = [
|
||||
"verify_installed_release_signature",
|
||||
]
|
||||
|
||||
__version__ = "1.2.3b1+1019"
|
||||
__version__ = "1.2.4b1+1019"
|
||||
|
||||
@@ -104,7 +104,7 @@ EXTENSION_SOCKET_ROOT = Path("/run/jwebot-extension-host")
|
||||
|
||||
MAX_EVENT_TEXT = 5_000
|
||||
MAX_REPLY_CHARS = 900
|
||||
MAX_CONTEXT_TURNS = 15
|
||||
MAX_CONTEXT_TURNS = 25
|
||||
MULTI_REPLY_DELAY_MIN_SECONDS = 0.5
|
||||
MULTI_REPLY_DELAY_MAX_SECONDS = 1.0
|
||||
OCR_EVENT_SOURCES = frozenset({"ocr", "rapidocr-local"})
|
||||
@@ -1666,7 +1666,7 @@ class Ledger:
|
||||
with self.lock:
|
||||
rows = self.connection.execute(
|
||||
"""
|
||||
SELECT question, response_text, route, route_reason
|
||||
SELECT question, response_text, route, route_reason, sender
|
||||
FROM events
|
||||
WHERE group_fingerprint = ?
|
||||
AND event_id != ?
|
||||
@@ -1689,9 +1689,17 @@ class Ledger:
|
||||
continue
|
||||
response_text = str(row["response_text"])
|
||||
parts = unpack_reply_parts(response_text)
|
||||
question = str(row["question"])
|
||||
if row["route"] == "local":
|
||||
question = (
|
||||
"[本地命令结果]"
|
||||
f"[发送者:{bounded_text(row['sender'], limit=40) or 'unknown'}]"
|
||||
f"[类型:{str(row['route_reason']).removeprefix('local_')}] "
|
||||
f"{question}"
|
||||
)
|
||||
result.append(
|
||||
(
|
||||
str(row["question"]),
|
||||
question,
|
||||
"\n".join(parts) if parts is not None else response_text,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-official-extensions"
|
||||
version = "1.2.3b1+1019"
|
||||
version = "1.2.4b1+1019"
|
||||
description = "Reviewed local command adapters and broker implementation for JWeBot"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = [
|
||||
"jwebot-sdk==1.2.3b1+1019",
|
||||
"jwebot-sdk==1.2.4b1+1019",
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
|
||||
@@ -90,4 +90,4 @@ __all__ = [
|
||||
"render_feature_list",
|
||||
]
|
||||
|
||||
__version__ = "1.2.3b1+1019"
|
||||
__version__ = "1.2.4b1+1019"
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "jwebot-sdk"
|
||||
version = "1.2.3b1+1019"
|
||||
version = "1.2.4b1+1019"
|
||||
description = "Typed, capability-limited extension API for JWeBot plugins"
|
||||
requires-python = ">=3.9"
|
||||
dependencies = []
|
||||
|
||||
@@ -38,4 +38,4 @@ __all__ = [
|
||||
"SingleGroupContext",
|
||||
]
|
||||
|
||||
__version__ = "1.2.3b1+1019"
|
||||
__version__ = "1.2.4b1+1019"
|
||||
|
||||
Reference in New Issue
Block a user