release: cut community v0.2.0

This commit is contained in:
github-ops
2026-05-14 20:21:54 +00:00
parent c080692df5
commit c28f07901a
5 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ resolver = "3"
edition = "2024"
license = "MIT"
rust-version = "1.85"
version = "0.1.0"
version = "0.2.0"
[workspace.dependencies]
aes-gcm = "0.10"
+2
View File
@@ -161,4 +161,6 @@ Progress:
- Phase 1 / tasks `1.1``1.3`: strict-REST Community cleanup уже был закрыт ранее — non-REST adapters и `crank-proto` удалены из workspace, descriptor/premium UI surface убран из Community build, wizard и i18n приведены к REST-only baseline
- Phase 1 / task `1.4`: создан crate `crank-community-auth`; в него вынесены password hashing/session cookie primitives и `PasswordIdentityProvider`, `admin-api` переключен на этот crate, а `login()` теперь реально делегирует credential check через `IdentityProvider` seam
- Phase 1 / task `1.5`: создан crate `crank-community-mcp`; в него вынесены `build_app`, `catalog`, `jsonrpc`, `session` и `auth` из `apps/mcp-server`, а `apps/mcp-server/src/main.rs` стал thin launcher с env parsing и DI wiring
- Phase 1 / task `1.6`: Community test surface уже приведен к честному baseline — `test = false` удален ранее, premium-only tests вычищены, `just verify` проходит на текущем составе workspace
- Phase 1 / task `1.7`: workspace version bumped to `0.2.0`; release gate пройден (`just verify`, `npm run build`, `npm run e2e`), release commit и tag `v0.2.0` подготовлены в `crank-community`
- backward-compatible alias `CommunityMachineCredentialVerifier` сохранен, поведение Community не изменено
+6 -4
View File
@@ -666,6 +666,7 @@ impl AdminService {
)
}
#[cfg(test)]
pub fn new_with_runtime(
registry: PostgresRegistry,
storage_root: PathBuf,
@@ -687,10 +688,6 @@ impl AdminService {
&self.auth_settings
}
pub fn identity_provider(&self) -> Option<&Arc<dyn IdentityProvider>> {
self.identity_provider.as_ref()
}
pub fn policy_engine(&self) -> &Arc<dyn PolicyEngine> {
&self.policy_engine
}
@@ -735,21 +732,25 @@ impl AdminServiceBuilder {
self
}
#[allow(dead_code)]
pub fn with_policy_engine(mut self, policy_engine: Arc<dyn PolicyEngine>) -> Self {
self.policy_engine = Some(policy_engine);
self
}
#[allow(dead_code)]
pub fn with_audit_sink(mut self, audit_sink: Arc<dyn AuditSink>) -> Self {
self.audit_sink = Some(audit_sink);
self
}
#[allow(dead_code)]
pub fn with_token_issuer(mut self, token_issuer: Arc<dyn MachineTokenIssuer>) -> Self {
self.token_issuer = Some(token_issuer);
self
}
#[allow(dead_code)]
pub fn with_capability_profile(
mut self,
capability_profile: Arc<dyn CapabilityProfile>,
@@ -4418,6 +4419,7 @@ fn validate_response_cache_policy(
}
#[cfg(test)]
#[allow(clippy::items_after_test_module)]
mod tests {
use std::collections::BTreeMap;
+1 -1
View File
@@ -177,12 +177,12 @@ mod tests {
use tracing_subscriber::{filter::LevelFilter, fmt::MakeWriter, prelude::*};
use crank_community_mcp::{
build_app,
auth::{
CommunityMachineCredentialVerifier, MachineCredentialVerifier,
MachineCredentialVerifierError, SharedMachineCredentialVerifier,
VerifiedMachineCredential,
},
build_app,
catalog::PublishedToolCatalog,
session::{InMemorySessionStore, SharedSessionStore, TransportSessionStore},
};
+2
View File
@@ -128,6 +128,7 @@ struct AgentRoutePath {
agent_slug: String,
}
#[allow(clippy::too_many_arguments)]
pub fn build_app(
registry: PostgresRegistry,
refresh_interval: Duration,
@@ -471,6 +472,7 @@ async fn mcp_post(
with_request_id_header(response, &transport_request_id)
}
#[allow(clippy::too_many_arguments)]
async fn handle_tool_call(
state: Arc<AppState>,
session: &SessionState,