feat: add agor-pro commercial plugin crate and dual-repo infrastructure
agor-pro Tauri 2.x plugin (feature-gated via --features pro), commercial Tauri config overlay, asymmetric test setup, CI workflows (leak-check, commercial-build, PAT health), pre-push hook, Makefile, CONTRIBUTING/MAINTENANCE/LICENSE-COMMERCIAL.
This commit is contained in:
parent
a63e6711ac
commit
5fadd1c022
14 changed files with 682 additions and 0 deletions
13
agor-pro/Cargo.toml
Normal file
13
agor-pro/Cargo.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[package]
|
||||
name = "agor-pro"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Commercial plugin for Agents Orchestrator"
|
||||
license = "LicenseRef-Commercial"
|
||||
|
||||
[dependencies]
|
||||
agor-core = { path = "../agor-core" }
|
||||
tauri = { version = "2.10.3", features = [] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
log = "0.4"
|
||||
35
agor-pro/src/lib.rs
Normal file
35
agor-pro/src/lib.rs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Commercial
|
||||
//
|
||||
// agor-pro — Commercial plugin for Agents Orchestrator.
|
||||
// This crate is NOT open-source. It is distributed only via the
|
||||
// agents-orchestrator/agents-orchestrator private repository.
|
||||
|
||||
use tauri::{
|
||||
plugin::{Builder, TauriPlugin},
|
||||
Runtime,
|
||||
};
|
||||
|
||||
/// Initialize the agor-pro Tauri plugin.
|
||||
/// Registers all commercial commands and managed state.
|
||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
Builder::new("agor-pro")
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
pro_status,
|
||||
])
|
||||
.build()
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn pro_status() -> String {
|
||||
"active".to_string()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_pro_status() {
|
||||
assert_eq!(pro_status(), "active");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue