Repository navigation
refactor!: split the Rust SDK, runtime, and component crates - #1589
Conversation
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
|
Important Review skippedToo many files! This PR contains 691 files, which is 391 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.
|
Signed-off-by: Will Killian <[email protected]>
Signed-off-by: Will Killian <[email protected]>
greysonlalonde
left a comment
There was a problem hiding this comment.
looking really good so far, huge thanks for undertaking this. I should be finished reviewing sometime later today
Signed-off-by: Will Killian <[email protected]>
|
Clean-container testing found an existing npm declaration issue: the generated root declarations reference Json without defining/exporting it, while model_pricing.d.ts:4 imports both Json and JsonObject. A strict TypeScript consumer produces the same 233 diagnostics on the PR base and head, so this isn’t a refactor regression. Could we export these types through the root declaration assembly and add a compilation check against the packaged npm artifact, either here or in a follow-up? |
|
Did a preliminary upgrade of hermes to relay after this refactor and did not find any immediate regressions: https://github.com/bbednarski9/hermes-agent/tree/bbednarski/nemo-relay-1.0-migration |
|
@greysonlalonde for your node follow-up(s): #1589 (comment) |
Signed-off-by: Will Killian <[email protected]>
Overview
Separate the public Rust SDK from execution internals and move first-party components into their owning crates. All SDKs and the CLI share default registration of observability, pricing, resource metrics, adaptive, and PII redaction; configuration controls activation.
Details
crates/coretocrates/sdk, still published asnemo-relay, and expose flat SDK modules plus the shared request, response, error, and codec contracts.nemo-relay-runtime,nemo-relay-codecs,nemo-relay-model-pricing,nemo-relay-resource-metrics,nemo-relay-observability,nemo-relay-plugin-host,nemo-relay-logging, andnemo-relay-diagnostics.nemo-relay-builtinscomposes the default plugins across Rust, Python, Node.js, Go/FFI, and the CLI.nemo-relay-typesand plugin authoring contracts innemo-relay-plugin. Implementation crates depend on runtime and component crates rather than the public SDK.just docs-examples, keep repository-only test targets out of registry archives, and cover SDK contracts, default composition, context propagation, and exporter pricing policies.Validation
/etc/nemo-relay/plugins.toml; 24 plugin example tests passed.Where should the reviewer start?
Start with
Cargo.tomlfor the dependency graph andcrates/sdk/src/lib.rsfor the public API. Then inspectcrates/builtins/src/{lib,plugin,exporter}.rsfor default composition andcrates/runtime/src/composition.rsfor the runtime service boundary. SDK contract tests live incrates/sdk/tests; component tests live with their implementations.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)