From c9fa6696ba3ae17efc4d318a6f91036654ebb919 Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Fri, 6 Mar 2026 02:15:27 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(readme):=20update=20symboli?= =?UTF-8?q?c=20addressing=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - replace hard-coded path example with resolve_branch usage - add load_registry usage to show full registry retrieval ๐Ÿ› fix(pyproject): add watchdog dependency - include watchdog>=3.0 in dependencies for file watching support ๐Ÿงน chore(docs): remove obsolete Docker.md file - delete Docker cheat sheet as it is no longer relevant or maintained --- # Docker.md | 26 -------------------------- README.md | 14 ++++++++------ patrick test | 0 pyproject.toml | 1 + 4 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 # Docker.md delete mode 100644 patrick test diff --git a/# Docker.md b/# Docker.md deleted file mode 100644 index e7ab3571..00000000 --- a/# Docker.md +++ /dev/null @@ -1,26 +0,0 @@ -# Docker - - -Docker stores images at /var/lib/docker/ (managed by the Docker daemon). You don't interact with it directly โ€” Docker - handles the layers. - - Your cheat sheet: - - โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” - โ”‚ Command โ”‚ What it does โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker start aipass-vscode โ”‚ Resume container โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker stop aipass-vscode โ”‚ Pause container โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker images โ”‚ List all images โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker ps -a โ”‚ List all containers โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker system df โ”‚ Disk usage โ”‚ - โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค - โ”‚ docker system prune โ”‚ Clean up unused stuff โ”‚ - โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ - - The aipass-test image (~260MB) stays until you docker rmi aipass-test. The container stays until you docker rm it. - Both survive reboots. \ No newline at end of file diff --git a/README.md b/README.md index 2a7bf479..49acc9d7 100644 --- a/README.md +++ b/README.md @@ -134,16 +134,18 @@ def check(file_path: str, config: dict | None = None) -> CheckResult: ### Symbolic Addressing -Instead of hard-coding agent paths, register them and resolve by name: +Instead of hard-coding agent paths, resolve them by `@name`: ```python -from aipass.routing import initialize_registry, register_branch, resolve_branch - -initialize_registry() -register_branch("my_agent", "/path/to/my_agent", branch_type="agent") +from aipass.drone.apps.modules.resolver import resolve_branch +from aipass.drone.apps.modules.registry import load_registry # Resolve @name to path -path = resolve_branch("@my_agent") # "/path/to/my_agent" +path = resolve_branch("@drone") # Returns the drone module path + +# Load the full registry +registry = load_registry() +# Returns all registered branches with their paths, types, and metadata ``` ## Architecture diff --git a/patrick test b/patrick test deleted file mode 100644 index e69de29b..00000000 diff --git a/pyproject.toml b/pyproject.toml index 1b19982d..3593398b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,7 @@ classifiers = [ ] dependencies = [ "rich>=13.0", + "watchdog>=3.0", ] [project.urls]