From 16931a28d254db936a22681198394cb3a1db0d68 Mon Sep 17 00:00:00 2001 From: Steven Enamakel <31011319+senamakel@users.noreply.github.com> Date: Fri, 3 Jul 2026 22:22:46 -0700 Subject: [PATCH] chore(vendor): add tinyflows and tinycortex submodules (#4491) --- .github/workflows/release-production.yml | 6 +++--- .github/workflows/release-staging.yml | 6 +++--- .gitmodules | 6 ++++++ Cargo.lock | 6 ++++-- Cargo.toml | 7 ++++++- app/src-tauri/Cargo.lock | 6 ++++-- app/src-tauri/Cargo.toml | 4 ++++ vendor/tinycortex | 1 + vendor/tinyflows | 1 + 9 files changed, 32 insertions(+), 11 deletions(-) create mode 160000 vendor/tinycortex create mode 160000 vendor/tinyflows diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 87044c4ea..3a3510be2 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -416,9 +416,9 @@ jobs: fetch-depth: 1 # Targeted init (not `submodules: true`) so we skip the large tauri-cef # fork the core image doesn't need. The Dockerfile COPYs vendor/ because - # [patch.crates-io] resolves tinyagents from vendor/tinyagents. - - name: Init tinyagents submodule - run: git submodule update --init vendor/tinyagents + # [patch.crates-io] resolves Rust SDK crates from vendor/. + - name: Init vendored Rust submodules + run: git submodule update --init vendor/tinyagents vendor/tinyflows vendor/tinycortex - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to GHCR diff --git a/.github/workflows/release-staging.yml b/.github/workflows/release-staging.yml index 16ec1c9a1..cef9d1dde 100644 --- a/.github/workflows/release-staging.yml +++ b/.github/workflows/release-staging.yml @@ -281,9 +281,9 @@ jobs: fetch-depth: 1 # Targeted init (not `submodules: true`) so we skip the large tauri-cef # fork the core image doesn't need. The Dockerfile COPYs vendor/ because - # [patch.crates-io] resolves tinyagents from vendor/tinyagents. - - name: Init tinyagents submodule - run: git submodule update --init vendor/tinyagents + # [patch.crates-io] resolves Rust SDK crates from vendor/. + - name: Init vendored Rust submodules + run: git submodule update --init vendor/tinyagents vendor/tinyflows vendor/tinycortex - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build image (no push) diff --git a/.gitmodules b/.gitmodules index 8f61e06ed..670ad0703 100644 --- a/.gitmodules +++ b/.gitmodules @@ -8,3 +8,9 @@ [submodule "vendor/tinyagents"] path = vendor/tinyagents url = https://github.com/tinyhumansai/tinyagents +[submodule "vendor/tinyflows"] + path = vendor/tinyflows + url = https://github.com/tinyhumansai/tinyflows +[submodule "vendor/tinycortex"] + path = vendor/tinycortex + url = https://github.com/tinyhumansai/tinycortex diff --git a/Cargo.lock b/Cargo.lock index 6aec97037..e4d044759 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6692,8 +6692,6 @@ dependencies = [ [[package]] name = "tinyflows" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ea75c3f90edabea59dc15f5a43d290bc4175bc6f1e2e930da32a304a5844d9" dependencies = [ "async-trait", "futures-timer", @@ -9053,3 +9051,7 @@ checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" dependencies = [ "zune-core", ] + +[[patch.unused]] +name = "tinycortex" +version = "0.1.1" diff --git a/Cargo.toml b/Cargo.toml index b3dfbe01c..ce29dfdfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,8 @@ tinyplace = "1.0.1" # tinyflows — host-agnostic workflow engine (typed node graph → validate → compile → # run on tinyagents). Powers the "Workflows" feature via the seam in # `src/openhuman/tinyflows/` + the `flows::` domain. Pulls tinyagents 1.5 transitively -# (same version openhuman already uses — no conflict). Published on crates.io. +# (same version openhuman already uses — no conflict). Published on crates.io +# and patched below to the vendored submodule. tinyflows = "0.3" # TinyAgents — Rust LLM orchestration framework (LangGraph/LangChain-style): # durable state graphs, agent-loop harness, model/tool registries, REPL + @@ -337,6 +338,10 @@ whisper-rs-sys = { git = "https://github.com/tinyhumansai/whisper-rs-sys.git", b # version in lockstep with the `tinyagents` requirement above. After cloning: # `git submodule update --init vendor/tinyagents` (worktrees included). tinyagents = { path = "vendor/tinyagents" } +# TinyFlows and TinyCortex are vendored beside TinyAgents so integration work can +# test workflow and memory-layer changes against OpenHuman before publishing. +tinyflows = { path = "vendor/tinyflows" } +tinycortex = { path = "vendor/tinycortex" } # Emit just enough DWARF in release builds for Sentry to symbolicate Rust # panics + render surrounding source lines. `line-tables-only` keeps the diff --git a/app/src-tauri/Cargo.lock b/app/src-tauri/Cargo.lock index 12d74d045..28b58e793 100644 --- a/app/src-tauri/Cargo.lock +++ b/app/src-tauri/Cargo.lock @@ -9093,8 +9093,6 @@ dependencies = [ [[package]] name = "tinyflows" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ea75c3f90edabea59dc15f5a43d290bc4175bc6f1e2e930da32a304a5844d9" dependencies = [ "async-trait", "futures-timer", @@ -11756,3 +11754,7 @@ dependencies = [ "syn 2.0.117", "winnow 1.0.2", ] + +[[patch.unused]] +name = "tinycortex" +version = "0.1.1" diff --git a/app/src-tauri/Cargo.toml b/app/src-tauri/Cargo.toml index 4b7f9fe47..98af179e4 100644 --- a/app/src-tauri/Cargo.toml +++ b/app/src-tauri/Cargo.toml @@ -211,6 +211,10 @@ whisper-rs-sys = { git = "https://github.com/tinyhumansai/whisper-rs-sys.git", b # released tag) — same patch as the root Cargo world so both resolve the # in-tree SDK source. `git submodule update --init vendor/tinyagents` first. tinyagents = { path = "../../vendor/tinyagents" } +# TinyFlows and TinyCortex are vendored beside TinyAgents so integration work can +# test workflow and memory-layer changes against OpenHuman before publishing. +tinyflows = { path = "../../vendor/tinyflows" } +tinycortex = { path = "../../vendor/tinycortex" } # CEF support lives on the `feat/cef` branch of tauri-apps/tauri. We carry our # own fork at tinyhumansai/tauri-cef on `feat/cef-notification-intercept` which diff --git a/vendor/tinycortex b/vendor/tinycortex new file mode 160000 index 000000000..d1a8c7be2 --- /dev/null +++ b/vendor/tinycortex @@ -0,0 +1 @@ +Subproject commit d1a8c7be2babc8fff7a72ed93861f459f3d6fa58 diff --git a/vendor/tinyflows b/vendor/tinyflows new file mode 160000 index 000000000..2dcddfd11 --- /dev/null +++ b/vendor/tinyflows @@ -0,0 +1 @@ +Subproject commit 2dcddfd111709fbdfdfcc118d88bbc6b8ea1b496