refactor(tools): join short implicit string concatenations (AST-verified)
This commit is contained in:
@@ -157,8 +157,7 @@ registry.register(
|
||||
"this chat into it — pass path to anchor it to a repo/folder (the "
|
||||
"chat's workspace moves there, the sidebar follows). switch: move "
|
||||
"this chat into an existing project by name/slug/id — the "
|
||||
"intentional way to move the session, not `cd`. list: all "
|
||||
"projects + which is active."
|
||||
"intentional way to move the session, not `cd`. list: all projects + which is active."
|
||||
),
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
|
||||
+3
-6
@@ -316,8 +316,7 @@ def _run_check_fn_uncached(fn: Callable, *, unresolved_scope: bool = False) -> b
|
||||
# No traceback so this cannot be mistaken for a crashed check_fn.
|
||||
logger.debug(
|
||||
"check_fn %s hit the multiplex fail-closed path with no "
|
||||
"profile secret scope active; dependent tools re-probe on "
|
||||
"the first scoped turn",
|
||||
"profile secret scope active; dependent tools re-probe on the first scoped turn",
|
||||
_fn_label(fn))
|
||||
else:
|
||||
# The scope resolved but the read still failed closed: a genuinely lost scope.
|
||||
@@ -806,10 +805,8 @@ class ToolRegistry:
|
||||
and not self._plugin_override_allowed(caller_scope, caller_owner)):
|
||||
logger.error(
|
||||
"Tool deregistration REJECTED: plugin %r attempted to "
|
||||
"remove tool %r (toolset %r) it does not own, without "
|
||||
"operator opt-in. Set "
|
||||
"plugins.entries.%s.allow_tool_override: true in "
|
||||
"config.yaml to allow it.",
|
||||
"remove tool %r (toolset %r) it does not own, without operator opt-in. Set "
|
||||
"plugins.entries.%s.allow_tool_override: true in config.yaml to allow it.",
|
||||
caller_mod, name, entry.toolset, caller_mod)
|
||||
raise PermissionError(
|
||||
f"Plugin module {caller_mod!r} cannot deregister tool "
|
||||
|
||||
@@ -317,8 +317,7 @@ def _sanitize_node(node: Any, path: str) -> Any:
|
||||
if isinstance(node, str):
|
||||
if node in _BARE_TYPE_NAMES:
|
||||
logger.debug(
|
||||
"schema_sanitizer[%s]: replacing bare-string schema %r "
|
||||
"with {'type': %r}",
|
||||
"schema_sanitizer[%s]: replacing bare-string schema %r with {'type': %r}",
|
||||
path, node, node)
|
||||
return _empty_object() if node == "object" else {"type": node}
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user