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:
@@ -2,18 +2,30 @@
|
||||
|
||||
import { Component } from "./Component.js";
|
||||
|
||||
const LB_CSS_ID = "lightbox-css";
|
||||
|
||||
export class AppLightbox extends Component {
|
||||
connectedCallback() {
|
||||
if (this._built) {
|
||||
return;
|
||||
}
|
||||
this._built = true;
|
||||
this._ensureCss();
|
||||
this.lastFocus = null;
|
||||
this.bodyOverflow = "";
|
||||
this.build();
|
||||
this.bind();
|
||||
}
|
||||
|
||||
_ensureCss() {
|
||||
if (document.getElementById(LB_CSS_ID)) return;
|
||||
const link = document.createElement("link");
|
||||
link.id = LB_CSS_ID;
|
||||
link.rel = "stylesheet";
|
||||
link.href = "/static/css/lightbox.css";
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
|
||||
build() {
|
||||
const overlay = document.createElement("div");
|
||||
overlay.className = "lightbox-overlay";
|
||||
|
||||
Reference in New Issue
Block a user