@melaya/runner 1.0.87 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistantHost.py +5 -0
- package/package.json +1 -1
package/dist/assistantHost.py
CHANGED
|
@@ -169,6 +169,11 @@ def _build_agent():
|
|
|
169
169
|
# explodes context. Bounded to the selected services so the model can't reach
|
|
170
170
|
# a connector the user didn't enable / has no creds for.
|
|
171
171
|
connector_services = [s.strip().lower() for s in os.environ.get("MEL_ASSISTANT_CONNECTORS", "").split(",") if s.strip()]
|
|
172
|
+
# Self-arm the write-approval gate whenever connectors are active, so it can't
|
|
173
|
+
# be silently OFF on an older runner build that didn't set this env. Writes
|
|
174
|
+
# then ALWAYS require the in-chat approval card (fail-safe).
|
|
175
|
+
if connector_services and not os.environ.get("MEL_ASSISTANT_CONNECTOR_HITL"):
|
|
176
|
+
os.environ["MEL_ASSISTANT_CONNECTOR_HITL"] = "1"
|
|
172
177
|
try:
|
|
173
178
|
if connector_services:
|
|
174
179
|
from shared.orchestration.lazy_registry import build_lazy_toolkit
|