forked from retoor/devplacepy
feat: add tool scoping and orchestration markers to agent tool registry
Introduce `mark_orchestration_tools`, `set_tool_scope`, and `reset_tool_scope` in `agents/agent.py` to allow runtime filtering of tool payloads by scope and orchestration flag. Refactor `get_tool_payloads` to respect the active scope and exclude orchestration-only tools. Update `agents/core/__init__.py` with `worker_tool_names` helper that returns read/reasoning tools plus conditional write/verify tools per mode, replacing the old `payloads_for` exclusion logic. Modify `agents/maestro.py` to call `mark_orchestration_tools` and wire per-agent result recording via `on_result` callback in `run_fleet`. Extend `agents/orchestrator.py` `run_fleet` signature to accept an optional `on_result` callable and invoke it after each agent run. Revise `agents/style.py` em-dash rule to distinguish prose from data occurrences, and add repository layout guidance to `agents/base.py` MAINT_HEADER.
This commit is contained in:
@@ -538,7 +538,7 @@ pre.code-pre > .code-gutter {
|
||||
text-align: right;
|
||||
white-space: pre;
|
||||
user-select: none;
|
||||
color: #5c6370;
|
||||
color: var(--text-muted);
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
||||
font: inherit;
|
||||
@@ -557,7 +557,7 @@ pre.code-has-copy > .code-copy-btn {
|
||||
z-index: 1;
|
||||
padding: 0.2rem 0.6rem;
|
||||
font-size: 0.7rem;
|
||||
color: #abb2bf;
|
||||
color: var(--text-secondary);
|
||||
background: rgba(40, 44, 52, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
border-radius: var(--radius);
|
||||
|
||||
@@ -111,8 +111,8 @@
|
||||
.rendered-content pre code {
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
background: #1a1a2e;
|
||||
color: #e0e0e0;
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
border-radius: var(--radius);
|
||||
|
||||
Reference in New Issue
Block a user