Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Merge commit 'bb096947a2319278bf83a13313d223c95eb6b863' into epic-7964-136-native-ingress

Steven Enamakel7c3d4dbe544c
diff --cc crates/openhuman-app/Cargo.lock
index 1920d2ce0f,6a4d4ca3b0..0af02b9d99
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@@ -6755,29 -6799,10 +6823,31 @@@ dependencies =
"serde",
"serde_json",
"thiserror 2.0.20",
+ "tinystoragedrivers-core",
+ "tokio",
]
+[[package]]
+name = "tinychannels-runtime"
+version = "0.1.34"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "base64 0.23.1",
+ "hex",
+ "hmac 0.13.0",
+ "parking_lot",
+ "rand 0.10.2",
+ "serde",
+ "serde_json",
+ "sha2 0.11.0",
+ "tinychannels-bus",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "uuid",
+]
+
[[package]]
name = "tinycomputer-bus"
version = "0.14.0"
@@@ -7858,9 -7906,19 +7957,19 @@@ checksum = "f2f6fb2847f6742cd76af783a2a
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
+ [[package]]
+ name = "ulid"
+ version = "1.2.1"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ checksum = "470dbf6591da1b39d43c14523b2b469c86879a53e8b758c8e090a470fe7b1fbe"
+ dependencies = [
+ "rand 0.9.5",
+ "web-time",
+ ]
+
[[package]]
name = "uname"
version = "0.1.1"
diff --cc crates/openhuman-core/Cargo.toml
index 0ab502d4e1,d2b364913b..428b582cf1
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@@ -238,9 -238,7 +238,9 @@@ tinymcp-bus = { path = "../../vendor/ti
# `ChannelInboundEnvelope`, `config/schema/channels.rs` re-exports the config
# types, so this vocabulary is always-on kernel surface. It costs serde/schemars and nothing
# this build did not already have.
- tinychannels-bus = { version = "0.1", path = "../../vendor/tinychannels/crates/tinychannels-bus" }
+ tinychannels-bus = { version = "0.1", path = "../../vendor/tinychannels/crates/tinychannels-bus", features = ["storage"] }
+# Channel/ChatMessage traits and the web adapter live in the runtime library.
+tinychannels-runtime = { path = "../../vendor/tinychannels/crates/tinychannels-runtime" }
# tinybus — the message bus. Owns what `crates/openhuman-core/src/core/event_bus/` used to: the typed
# pub/sub surface (`EventBus`, `EventHandler`, `SubscriptionHandle`), the
# in-process zero-serialization request registry (`NativeRegistry`), and peer
diff --cc crates/openhuman-core/src/threads/store/legacy_import.rs
index d2d27de34e,b9ef725aba..8f8a110e51
--- a/crates/openhuman-core/src/threads/store/legacy_import.rs
+++ b/crates/openhuman-core/src/threads/store/legacy_import.rs
@@@ -155,14 -160,10 +160,10 @@@ pub(super) fn import_once
Ok(_) => return Ok(()),
Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(()),
Err(error) => {
- return Err(anyhow::Error::new(error).context("stat the legacy threads log"))
+ return Err(anyhow::Error::new(error).context("stat the legacy threads log"));
}
}
- let marked = repo.run(|docs| {
- let marker_id = marker_id.clone();
- async move { docs.get(MARKERS, &marker_id).await }
- })?;
- if marked.is_some() {
+ if import_state::is_done(repo, OWNER, &step)? {
log::debug!("{LOG_PREFIX} already imported");
return Ok(());
}
diff --cc crates/openhuman-core/src/threads/store/mod.rs
index 58af866392,bf08aa6884..c7be4009a2
--- a/crates/openhuman-core/src/threads/store/mod.rs
+++ b/crates/openhuman-core/src/threads/store/mod.rs
@@@ -31,12 -31,10 +31,14 @@@
pub mod backend;
pub mod blocking;
+#[allow(
+ deprecated,
+ reason = "v21 ChannelMessage/SendMessage shims stay until the native channel path moves to canonical v22 content"
+)]
mod bus;
mod legacy_import;
+ mod storage_schema;
+ pub use storage_schema::storage_schema;
#[cfg(test)]
#[path = "legacy_import_tests.rs"]
mod legacy_import_tests;
diff --cc package.json
index 82fd5cda53,48fa8745d1..13e5a1acd3
--- a/package.json
+++ b/package.json
@@@ -7,10 -7,8 +7,10 @@@
},
"scripts": {
"build": "pnpm --filter openhuman-app build",
- "docs:generate": "node scripts/generate-architecture-docs.mjs",
+ "docs:generate": "node scripts/generate-architecture-docs.mjs && node scripts/ci/check-storage-schema.mjs --write",
+ "chat-wire:generate": "node scripts/generate-chat-wire-types.mjs && node scripts/generate-thread-wire-types.mjs",
+ "chat-wire:check": "node scripts/generate-chat-wire-types.mjs --check && node scripts/generate-thread-wire-types.mjs --check",
- "docs:check": "node scripts/generate-architecture-docs.mjs --check",
+ "docs:check": "node scripts/generate-architecture-docs.mjs --check && node scripts/ci/check-storage-schema.mjs",
"docs:test": "node --test scripts/__tests__/generate-architecture-docs.test.mjs scripts/__tests__/generate-embed-docs.test.mjs",
"test:scripts": "node --test scripts/__tests__/*.test.mjs scripts/mock-api/*.test.mjs scripts/mock-api/routes/__tests__/*.test.mjs",
"test:inventory": "node scripts/generate-test-inventory.mjs",
diff --cc scripts/ci/check-openhuman-rust-layout.mjs
index 1184363cde,02ca6c67e6..20ed47edbb
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@@ -33,8 -33,9 +33,8 @@@ const LEGACY_LIMIT_ENTRIES =
// state moved to tinyagents-runtime; this remaining composition is split in
// a follow-up without reintroducing an old harness/session exception.
["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 965],
- ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1233],
- ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1033],
++ ["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 1031],
["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1045],
- ["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1171],
// These established external test modules grew with upstream coverage. Pin
// their current sizes while follow-up work separates their test concerns.
// `core/` was pruned from the line limit by name until these pins; its
diff --cc vendor/tinyagents
index e85cbc6ade,6fa6ff7688..26309a929f
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit e85cbc6ade494b8d72f89f05bdeee829cb094057
-Subproject commit 6fa6ff7688018ccf3fd35fe31aebf0dda7e92c2f
++Subproject commit 26309a929fd60db13982e3e82c433c30951bc884
diff --cc vendor/tinychannels
index de6c833d3f,7ce043029d..6454d0680b
--- a/vendor/tinychannels
+++ b/vendor/tinychannels
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit de6c833d3f16326d141ff068d57f09f14b1f0e6c
-Subproject commit 7ce043029dbcd4adf6db8ae2e37482ad4172e98b
++Subproject commit 6454d0680b06c5b4a0121d8135c6ae8405c918e4
diff --cc vendor/tinyflows
index c1f4402f8c,cad43f9799..328aecfb66
--- a/vendor/tinyflows
+++ b/vendor/tinyflows
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit c1f4402f8c0b92a3d1a342ebd1c1ba40bba9d8f8
-Subproject commit cad43f9799cf20f2815325a1a50b2116d6942642
++Subproject commit 328aecfb66b16d43c6e2f2f881c9b2ae7840e29d
diff --cc vendor/tinystoragedrivers
index 9eeef54aea,141fd9ed0a..be94f7568f
--- a/vendor/tinystoragedrivers
+++ b/vendor/tinystoragedrivers
@@@ -1,1 -1,1 +1,1 @@@
- Subproject commit 9eeef54aea403ac07461a612189bdf4982782823
-Subproject commit 141fd9ed0ad5d14a8fb5a1b3e837a719e81ac08d
++Subproject commit be94f7568fe7650b0729be55128f48270414b9a7