Agent Zero AI framework
text_editor: route file I/O through RFC for dev mode
linuztx4b7572ca629e
diff --git a/plugins/text_editor/helpers/file_ops.py b/plugins/text_editor/helpers/file_ops.pyindex a1dc959b9..aa002c865 100644--- a/plugins/text_editor/helpers/file_ops.py+++ b/plugins/text_editor/helpers/file_ops.py@@ -1,19 +1,13 @@"""-File operations for the text_editor plugin.--Split into two layers:- - _impl functions in python/helpers/rfc_text_editor.py: pure filesystem- I/O with only stdlib deps. These run inside the Docker container- when routed via RFC.- - Public async functions here: orchestrate _impl calls through- runtime.call_development_function and apply token budgeting- (which requires tiktoken, a framework-only dependency).+Async file operations for the text_editor plugin. Routes I/O to the+Docker container via rfc_text_editor._impl functions and applies+token budgeting host-side."""from dataclasses import dataclassfrom python.helpers import tokens, runtime-from python.helpers.rfc_text_editor import (+from plugins.text_editor.helpers.rfc_text_editor import (is_binary_impl as _is_binary_impl,read_file_raw_impl as _read_file_raw_impl,write_file_impl as _write_file_impl,diff --git a/python/helpers/rfc_text_editor.py b/plugins/text_editor/helpers/rfc_text_editor.pysimilarity index 95%rename from python/helpers/rfc_text_editor.pyrename to plugins/text_editor/helpers/rfc_text_editor.pyindex c21b2cbd7..f3e15099b 100644--- a/python/helpers/rfc_text_editor.py+++ b/plugins/text_editor/helpers/rfc_text_editor.py@@ -1,11 +1,7 @@"""-RFC-routable filesystem operations for the text_editor plugin.--These functions run inside the Docker container when invoked via-runtime.call_development_function. They use only stdlib — no-framework dependencies (no tiktoken, no agent context, etc.).--All args and return values must be JSON-serializable.+Filesystem operations for the text_editor plugin, executed on the+Docker container via RFC. Stdlib only — args and return values+must be JSON-serializable."""import os