Skip to content

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

test(rpcMethods): add memory engine RPCs to test schema sources

Steven Enamakel67b2d7e8c40b
diff --git a/app/src/services/__tests__/rpcMethods.test.ts b/app/src/services/__tests__/rpcMethods.test.ts
index a21b774c12..3fbac724ef 100644
--- a/app/src/services/__tests__/rpcMethods.test.ts
+++ b/app/src/services/__tests__/rpcMethods.test.ts
@@ -174,6 +174,8 @@ describe('rpcMethods catalog', () => {
readWithParts('../../../../crates/openhuman-core/src/channels/controllers/schemas.rs'),
// The credential handoff RPCs (`auth_set_credential` / `auth_clear_credential`).
readWithParts('../../../../crates/openhuman-core/src/security/credentials/schemas.rs'),
+ // The selectable memory-engine RPCs (`memory_engine_*` / `memory_engines_list`).
+ readWithParts('../../../../crates/openhuman-core/src/memory/schemas/engine.rs'),
// The channels_* namespace/function literals now live in the vendored
// tinychannels workspace (`ChannelControllerSchema`), not in the thin
// `crates/openhuman-core/src/channels/controllers/schemas.rs` adapter above, which
@@ -213,7 +215,9 @@ describe('rpcMethods catalog', () => {
? 'channels'
: methodRoot.startsWith('tool_registry_')
? 'tool_registry'
- : 'config';
+ : methodRoot.startsWith('memory_engine')
+ ? 'memory'
+ : 'config';
const fnName = methodRoot.slice(`${namespace}_`.length);
expect(schemaSources).toContain(`namespace: "${namespace}"`);
expect(schemaSources).toContain(`function: "${fnName}"`);